From: George Peter Banyard Date: Mon, 28 Sep 2020 16:44:13 +0000 (+0100) Subject: Do not register quoter handler in ODBC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24e2ba26b457da2c93aae75c7193c519b5a0aed9;p=php Do not register quoter handler in ODBC This functionallity is not (yet) implemented and therefore gives a bogus error while using PDO --- diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index 5b35455ede..5631da7a36 100644 --- a/ext/pdo_odbc/odbc_driver.c +++ b/ext/pdo_odbc/odbc_driver.c @@ -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,