Skip to content

Commit

Permalink
Oracle use double quotes for escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Zelezny authored and dg committed Jan 13, 2015
1 parent bf36cf9 commit 4535bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dibi/drivers/pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ public function escape($value, $type)
case 'mysql':
return '`' . str_replace('`', '``', $value) . '`';

case 'oci':
case 'pgsql':
return '"' . str_replace('"', '""', $value) . '"';

Expand All @@ -263,7 +264,6 @@ public function escape($value, $type)
return '[' . strtr($value, '[]', ' ') . ']';

case 'odbc':
case 'oci': // TODO: not tested
case 'mssql':
return '[' . str_replace(array('[', ']'), array('[[', ']]'), $value) . ']';

Expand Down

0 comments on commit 4535bc5

Please # to comment.