From dc688f3ee7b141055d6651bb8613d04ac09b402a Mon Sep 17 00:00:00 2001 From: Pavel Zelezny Date: Sat, 25 Oct 2014 16:15:02 +0200 Subject: [PATCH] Oracle use double quotes for escaping --- dibi/drivers/DibiPdoDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/drivers/DibiPdoDriver.php b/dibi/drivers/DibiPdoDriver.php index 165a6156..6ec042c4 100644 --- a/dibi/drivers/DibiPdoDriver.php +++ b/dibi/drivers/DibiPdoDriver.php @@ -255,6 +255,7 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver case 'mysql': return '`' . str_replace('`', '``', $value) . '`'; + case 'oci': case 'pgsql': return '"' . str_replace('"', '""', $value) . '"'; @@ -263,7 +264,6 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver return '[' . strtr($value, '[]', ' ') . ']'; case 'odbc': - case 'oci': // TODO: not tested case 'mssql': return '[' . str_replace(array('[', ']'), array('[[', ']]'), $value) . ']';