1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 09:04:24 +02:00

rewritten dibi::IDENTIFIER escaping; added support for [table.*]

This commit is contained in:
David Grudl
2010-05-19 14:53:19 +02:00
parent 27930611de
commit bec559448c
11 changed files with 20 additions and 37 deletions

View File

@@ -228,8 +228,7 @@ class DibiOracleDriver extends DibiObject implements IDibiDriver
case dibi::IDENTIFIER:
// @see http://download.oracle.com/docs/cd/B10500_01/server.920/a96540/sql_elements9a.htm
$value = str_replace('"', '""', $value);
return '"' . str_replace('.', '"."', $value) . '"';
return '"' . str_replace('"', '""', $value) . '"';
case dibi::BOOL:
return $value ? 1 : 0;