Update PicoDb
This commit is contained in:
parent
4da627d1be
commit
c1c4d8380e
|
|
@ -86,6 +86,11 @@ class Database
|
|||
|
||||
public function escapeIdentifier($value)
|
||||
{
|
||||
// Do not escape custom query
|
||||
if (strpos($value, '.') !== false || strpos($value, ' ') !== false) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $this->pdo->escapeIdentifier($value);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ class Mysql extends \PDO {
|
|||
|
||||
public function escapeIdentifier($value)
|
||||
{
|
||||
if (strpos($value, '.') !== false) return $value;
|
||||
return '`'.$value.'`';
|
||||
}
|
||||
}
|
||||
|
|
@ -51,7 +51,6 @@ class Sqlite extends \PDO {
|
|||
|
||||
public function escapeIdentifier($value)
|
||||
{
|
||||
if (strpos($value, '.') !== false) return $value;
|
||||
return '"'.$value.'"';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue