summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-25 20:30:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-25 20:30:40 +0000
commit077559d3e46484d7119cba4b0bc824009f8ec789 (patch)
treeab07678fb8620749bf96b5bdb870f8efe00d2ddd /ext/pdo_mysql
parentf5a76943054bd69e6e64042cc084d1aacfa7f21c (diff)
downloadphp-git-077559d3e46484d7119cba4b0bc824009f8ec789.tar.gz
Make MySQL driver use ANSI complaint quoting style.
Diffstat (limited to 'ext/pdo_mysql')
-rwxr-xr-xext/pdo_mysql/mysql_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 295723056d..51548d830c 100755
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -266,7 +266,7 @@ static int mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data;
*quoted = safe_emalloc(2, unquotedlen, 3);
*quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen);
- (*quoted)[0] =(*quoted)[++*quotedlen] = '"';
+ (*quoted)[0] =(*quoted)[++*quotedlen] = '\'';
(*quoted)[++*quotedlen] = '\0';
return 1;
}