summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-09-28 17:44:13 +0100
committerGeorge Peter Banyard <girgias@php.net>2020-09-28 18:51:35 +0100
commit24e2ba26b457da2c93aae75c7193c519b5a0aed9 (patch)
tree8fe64986398fc9b332dceb1ee2293df5c9e45efc
parent9fab1b90abfe9a2b25e4b1c88a232746c7a66031 (diff)
downloadphp-git-24e2ba26b457da2c93aae75c7193c519b5a0aed9.tar.gz
Do not register quoter handler in ODBC
This functionallity is not (yet) implemented and therefore gives a bogus error while using PDO
-rw-r--r--ext/pdo_odbc/odbc_driver.c8
1 files changed, 5 insertions, 3 deletions
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,