]> granicus.if.org Git - php/commitdiff
We quote with ' in real databases
authorEdin Kadribasic <edink@php.net>
Thu, 20 May 2004 19:09:36 +0000 (19:09 +0000)
committerEdin Kadribasic <edink@php.net>
Thu, 20 May 2004 19:09:36 +0000 (19:09 +0000)
ext/pdo_pgsql/pgsql_driver.c

index 336f3a9f81c3ed6859134ecb20a8970774b8e8ad..cca7084458d27144dc65388cec010409c4672999 100644 (file)
@@ -131,9 +131,9 @@ static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
 {
        pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
        *quoted = emalloc(2*unquotedlen + 3);
-       (*quoted)[0] = '"';
+       (*quoted)[0] = '\'';
        *quotedlen = PQescapeString(*quoted + 1, unquoted, unquotedlen);
-       (*quoted)[*quotedlen + 1] = '"';
+       (*quoted)[*quotedlen + 1] = '\'';
        (*quoted)[*quotedlen + 2] = '\0';
        *quotedlen += 2;
        return 1;