Welcome Guest, Not a member yet? Register   Sign In
Annoying DB_Driver behaviour
#1

[eluser]Bjørn Børresen[/eluser]
Don't know if this is a bug or not but it's kinda annoying.

Whenever I have a typo in my table name (or someting similar wrong with the SQL) I get this:

Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in \wwwdocs\system\codeigniter\system\database\DB_driver.php on line 1176

The line causing it:

Code:
$this->EE->db->get('lol');

Of course, running the same code in the mysql shell will tell me:

Code:
Table 'lol' doesn't exist

It's this code in DB_Driver.php that fails:

Code:
$trace = debug_backtrace();

        foreach($trace as $call)
        {
            if (isset($call['file']) && strpos($call['file'], BASEPATH.'database') === FALSE)
            {
                // Found it - use a relative path for safety
                $message[] = 'Filename: '.str_replace(array(BASEPATH, APPPATH), '', $call['file']);
                $message[] = 'Line Number: '.$call['line'];

                break;
            }
        }

This might be EE related cause the information returned by debug_backtrace() is so huge that it will consume all server memory.

Anyone else experiencing this?


Messages In This Thread
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:07 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:19 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:28 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:36 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:41 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 09:45 AM
Annoying DB_Driver behaviour - by El Forum - 12-09-2010, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB