cvs: php4 /pear/DB mysql.php
| From: | Thomas V.V.Cox | Date: | Thu, 12 Jul 2001 11:20:08 +0000 |
| Subject: | cvs: php4 /pear/DB mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-265@lists.php.net to get a copy of this message | ||
cox Thu Jul 12 07:20:08 2001 EDT
Modified files:
/php4/pear/DB mysql.php
Log:
added mysql specific quote method
Index: php4/pear/DB/mysql.php
diff -u php4/pear/DB/mysql.php:1.59 php4/pear/DB/mysql.php:1.60
--- php4/pear/DB/mysql.php:1.59 Sun Jun 24 15:51:19 2001
+++ php4/pear/DB/mysql.php Thu Jul 12 07:20:08 2001
@@ -411,6 +411,11 @@
return $this->query("DROP TABLE ${sqn}_seq");
}
+ function quote($string)
+ {
+ return ($string === null) ? 'NULL' :
"'".mysql_escape_string($string)."'";
+ }
+
// }}}
// {{{ modifyQuery()