diff options
author | Wez Furlong <wez@php.net> | 2004-05-22 00:38:11 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-05-22 00:38:11 +0000 |
commit | ce5e317cc5f26aa01bc0d04a8c133fc5a3001262 (patch) | |
tree | 8f466bd5d362cd94a6f4e61c48220f02df70d8e3 /ext/pdo_odbc/odbc_driver.c | |
parent | e136b9311ca5115d4d5e92e05f64bf0e5530ddc7 (diff) | |
download | php-git-ce5e317cc5f26aa01bc0d04a8c133fc5a3001262.tar.gz |
ok MSVC, why didn't you spot *that* one??
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rwxr-xr-x | ext/pdo_odbc/odbc_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index 6107e33170..f9d001fbb6 100755 --- a/ext/pdo_odbc/odbc_driver.c +++ b/ext/pdo_odbc/odbc_driver.c @@ -32,7 +32,7 @@ static struct { char state[6]; - enum pdo_error err; + enum pdo_error_type err; } odbc_to_pdo_err_map[] = { /* this table maps ODBC V3 SQLSTATE codes to PDO_ERR codes */ { "42S01", PDO_ERR_ALREADY_EXISTS }, @@ -71,9 +71,9 @@ void pdo_odbc_init_error_table(void) } } -static enum pdo_error pdo_odbc_map_error(char *state) +static enum pdo_error_type pdo_odbc_map_error(char *state) { - enum pdo_error *p_err; + enum pdo_error_type *p_err; if (SUCCESS == zend_hash_find(&err_hash, state, sizeof(odbc_to_pdo_err_map[0].state), (void**)&p_err)) { return *p_err; } @@ -110,7 +110,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; pdo_odbc_errinfo *einfo = &H->einfo; pdo_odbc_stmt *S = NULL; - enum pdo_error *pdo_err = &dbh->error_code; + enum pdo_error_type *pdo_err = &dbh->error_code; if (stmt) { S = (pdo_odbc_stmt*)stmt->driver_data; |