Skip to content

Instantly share code, notes, and snippets.

@biakaveron
Created June 26, 2009 12:59
Show Gist options
  • Save biakaveron/136456 to your computer and use it in GitHub Desktop.
Save biakaveron/136456 to your computer and use it in GitHub Desktop.
// modules/database/classes/database.php, Line 238
if (FALSE !== $dotpos = strpos($value, '.'))
{
if (substr($value, -1) == '*')
{
return $this->_identifier.substr($value, 0, $dotpos).$this->_identifier.'.*';
}
// Dots are used to separate schema, table, and column names
$value = str_replace('.', "{$this->_identifier}.{$this->_identifier}", $value);
}
return $this->_identifier.$value.$this->_identifier;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment