cvs: php4 /pear/DB oci8.php
| From: | James L. Pine | Date: | Mon, 25 Dec 2000 19:37:22 +0000 |
| Subject: | cvs: php4 /pear/DB oci8.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3304@lists.php.net to get a copy of this message | ||
jlp Mon Dec 25 11:37:22 2000 EDT
Modified files:
/php4/pear/DB oci8.php
Log:
added quoteString function to override the one in common. replaces single quotes with double
single quotes.
Index: php4/pear/DB/oci8.php
diff -u php4/pear/DB/oci8.php:1.14 php4/pear/DB/oci8.php:1.15
--- php4/pear/DB/oci8.php:1.14 Thu Dec 14 17:20:22 2000
+++ php4/pear/DB/oci8.php Mon Dec 25 11:37:22 2000
@@ -450,7 +450,14 @@
}
// }}}
+ // {{{ quoteString()
+ function quoteString($string)
+ {
+ return str_replace("'", "''", $string);
+ }
+
+ // }}}
}
// Local variables: