diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-12-25 20:30:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-12-25 20:30:40 +0000 |
commit | 077559d3e46484d7119cba4b0bc824009f8ec789 (patch) | |
tree | ab07678fb8620749bf96b5bdb870f8efe00d2ddd /ext/pdo_mysql | |
parent | f5a76943054bd69e6e64042cc084d1aacfa7f21c (diff) | |
download | php-git-077559d3e46484d7119cba4b0bc824009f8ec789.tar.gz |
Make MySQL driver use ANSI complaint quoting style.
Diffstat (limited to 'ext/pdo_mysql')
-rwxr-xr-x | ext/pdo_mysql/mysql_driver.c | 2 |
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; } |