Do not register quoter handler in ODBC

This functionallity is not (yet) implemented and therefore gives a bogus error while using PDO
This commit is contained in:
George Peter Banyard 2020-09-28 17:44:13 +01:00
parent 9fab1b90ab
commit 24e2ba26b4

View 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,