Quote String
| From: | Tomas V.V.Cox | Date: | Tue, 03 Jul 2001 09:19:05 +0000 |
| Subject: | Quote String | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-538@lists.php.net to get a copy of this message | ||
Sorry for not to follow the thread but I recently have suscribed to the
list. Please test this patch to the pear/DB/mysql.php, so if works I'll
commit the change to the quote string behavoir. The same for the sybase
extension.
For the question about null values I don't see any way for inserting
them, but the needed change in executeEmulateQuery() for supporting it
is trivial. What do you think to add the unquoted NULL string when the
null (constant) value is given?
For example:
$data = array(2, null, 'two');
$sth = $db->prepare("INSERT INTO numbers VALUES (?,?,?)");
$db->execute($sth, $data);
=> INSERT INTO numbers VALUES (2, NULL, 'two')
Tomas V.V.Cox
Attachment: [text/x-c++] quote_mysql.diff
Attachment: [text/x-c++] quote_sybase.diff
Attachment: [text/x-c++] quote_mysql.diff
Attachment: [text/x-c++] quote_sybase.diff