mirror of
https://github.com/dg/dibi.git
synced 2025-08-11 00:24:19 +02:00
rewritten dibi::IDENTIFIER escaping; added support for [table.*]
This commit is contained in:
@@ -274,8 +274,7 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
|
||||
return "_binary'" . mysqli_real_escape_string($this->connection, $value) . "'";
|
||||
|
||||
case dibi::IDENTIFIER:
|
||||
$value = str_replace('`', '``', $value);
|
||||
return '`' . str_replace('.', '`.`', $value) . '`';
|
||||
return '`' . str_replace('`', '``', $value) . '`';
|
||||
|
||||
case dibi::BOOL:
|
||||
return $value ? 1 : 0;
|
||||
|
Reference in New Issue
Block a user