Welcome Guest, Not a member yet? Register   Sign In
Upgrading "system/database" folder breaks my application
#25

[eluser]TheFuzzy0ne[/eluser]
I've added a line which, in theory, should fix it. I haven't tested it though. It should add a space either side of the "=".
Code:
function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifiers = NULL, $field_exists = TRUE)
{
    if ( ! is_bool($protect_identifiers))
    {
        $protect_identifiers = $this->_protect_identifiers;
    }

    /* This should make it work. */
    strtr($item, array('=' => ' = '));

    // Convert tabs or multiple spaces into single spaces    
    $item = preg_replace('/[\t| ]+/', ' ', $item);

    // If the item has an alias declaration we remove it and set it aside.
    // Basically we remove everything to the right of the first space
    $alias = '';
    if (strpos($item, ' ') !== FALSE)
    {        
        $alias = strstr($item, " ");
        $item = substr($item, 0, - strlen($alias));
    }

    ...


Messages In This Thread
Upgrading "system/database" folder breaks my application - by El Forum - 02-17-2009, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB