]> granicus.if.org Git - php/commitdiff
Do not register quoter handler in ODBC
authorGeorge Peter Banyard <girgias@php.net>
Mon, 28 Sep 2020 16:44:13 +0000 (17:44 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 28 Sep 2020 17:51:35 +0000 (18:51 +0100)
This functionallity is not (yet) implemented and therefore gives a bogus error while using PDO

ext/pdo_odbc/odbc_driver.c

index 5b35455ede1b3e05e0fe22b472b364bb29533b51..5631da7a36e5086477972c1d22c8ae9c196a069a 100644 (file)
@@ -257,12 +257,14 @@ out:
        return row_count;
 }
 
+/* TODO: Do ODBC quoter
 static int odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type param_type )
 {
-       /* pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; */
-       /* TODO: figure it out */
+       // pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data;
+       // TODO: figure it out
        return 0;
 }
+*/
 
 static int odbc_handle_begin(pdo_dbh_t *dbh)
 {
@@ -373,7 +375,7 @@ static const struct pdo_dbh_methods odbc_methods = {
        odbc_handle_closer,
        odbc_handle_preparer,
        odbc_handle_doer,
-       odbc_handle_quoter,
+       NULL, /* quoter */
        odbc_handle_begin,
        odbc_handle_commit,
        odbc_handle_rollback,