diff options
| author | Wez Furlong <wez@php.net> | 2005-01-07 05:23:48 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-01-07 05:23:48 +0000 |
| commit | 4486666209d7cc25c648c3e8cb4913502143188e (patch) | |
| tree | 6bf5ab8f19eaedb843f6549420afe4c87984249e /ext/pdo_firebird | |
| parent | 6e0d8dd06f4e5fe63d9c8c28ced70b79c62a7b28 (diff) | |
| download | php-git-4486666209d7cc25c648c3e8cb4913502143188e.tar.gz | |
half-update for sqlstate error codes
Diffstat (limited to 'ext/pdo_firebird')
| -rw-r--r-- | ext/pdo_firebird/firebird_driver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c index f34b8247f9..91ea3db227 100644 --- a/ext/pdo_firebird/firebird_driver.c +++ b/ext/pdo_firebird/firebird_driver.c @@ -40,8 +40,9 @@ void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long li { pdo_firebird_db_handle *H = stmt ? ((pdo_firebird_stmt *)stmt->driver_data)->H : (pdo_firebird_db_handle *)dbh->driver_data; - enum pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code; + pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code; +#if 0 switch (isc_sqlcode(H->isc_status)) { case 0: @@ -82,6 +83,9 @@ void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long li *error_code = PDO_ERR_DISCONNECTED; break; } +#else + strcpy(*pdo_err, "HY000"); +#endif } /* }}} */ |
