]> granicus.if.org Git - php/commitdiff
Make MySQL driver use ANSI complaint quoting style.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 25 Dec 2005 20:30:40 +0000 (20:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 25 Dec 2005 20:30:40 +0000 (20:30 +0000)
ext/pdo_mysql/mysql_driver.c

index 295723056d4e8f638355f0cbac524b4c63be57cf..51548d830c3b3959481c3ca89f42daa356a47870 100755 (executable)
@@ -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;
 }