Skip to content

Commit 24e2ba2

Browse files
committed
Do not register quoter handler in ODBC
This functionallity is not (yet) implemented and therefore gives a bogus error while using PDO
1 parent 9fab1b9 commit 24e2ba2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/pdo_odbc/odbc_driver.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,14 @@ static zend_long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_le
257257
return row_count;
258258
}
259259

260+
/* TODO: Do ODBC quoter
260261
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 )
261262
{
262-
/* pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; */
263-
/* TODO: figure it out */
263+
// pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data;
264+
// TODO: figure it out
264265
return 0;
265266
}
267+
*/
266268

267269
static int odbc_handle_begin(pdo_dbh_t *dbh)
268270
{
@@ -373,7 +375,7 @@ static const struct pdo_dbh_methods odbc_methods = {
373375
odbc_handle_closer,
374376
odbc_handle_preparer,
375377
odbc_handle_doer,
376-
odbc_handle_quoter,
378+
NULL, /* quoter */
377379
odbc_handle_begin,
378380
odbc_handle_commit,
379381
odbc_handle_rollback,

0 commit comments

Comments
 (0)