diff options
author | Wez Furlong <wez@php.net> | 2004-05-22 00:30:00 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-05-22 00:30:00 +0000 |
commit | 8d9c384f7ff976ea0ec900a68e88712e00e44d42 (patch) | |
tree | 4ffa8a9babd06bf33af72ff245436ef28c45e04a /ext/pdo_odbc/odbc_stmt.c | |
parent | b4ef3d186a6b60e118c63023b378935a007881e3 (diff) | |
download | php-git-8d9c384f7ff976ea0ec900a68e88712e00e44d42.tar.gz |
Fix doer()
Implement error handling for ODBC
Diffstat (limited to 'ext/pdo_odbc/odbc_stmt.c')
-rwxr-xr-x | ext/pdo_odbc/odbc_stmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 9878be2ad4..40d2245a84 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -73,11 +73,11 @@ static int odbc_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) break; case SQL_NO_DATA_FOUND: case SQL_SUCCESS_WITH_INFO: - odbc_error(stmt->dbh, "SQLExecute", S->stmt); + pdo_odbc_stmt_error("SQLExecute"); break; default: - odbc_error(stmt->dbh, "SQLExecute", S->stmt); + pdo_odbc_stmt_error("SQLExecute"); return 0; } @@ -156,7 +156,7 @@ static int odbc_stmt_fetch(pdo_stmt_t *stmt TSRMLS_DC) return 0; } - odbc_error(stmt->dbh, "SQLFetch", S->stmt); + pdo_odbc_stmt_error("SQLFetch"); return 0; } |