diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-20 16:13:13 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-20 16:13:13 +0000 |
commit | 40b04cd54bb38253284f88dbdefc3fcb9acefbbd (patch) | |
tree | a65c8d19cdbccd49f691730ce5c67fb61ae4688f /ext/pdo_mysql/php_pdo_mysql_int.h | |
parent | 0d6aa20880517e33949a4fb00a020951ecc4f91b (diff) | |
download | php-git-40b04cd54bb38253284f88dbdefc3fcb9acefbbd.tar.gz |
Correctly report errors for statment problems.
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rwxr-xr-x | ext/pdo_mysql/php_pdo_mysql_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h index 875738ccaf..8ff4f5a7c1 100755 --- a/ext/pdo_mysql/php_pdo_mysql_int.h +++ b/ext/pdo_mysql/php_pdo_mysql_int.h @@ -61,8 +61,9 @@ typedef struct { extern pdo_driver_t pdo_mysql_driver; -extern int _pdo_mysql_error(pdo_dbh_t *dbh, const char *file, int line TSRMLS_DC); -#define pdo_mysql_error(s) _pdo_mysql_error(s, __FILE__, __LINE__ TSRMLS_DC) +extern int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC); +#define pdo_mysql_error(s) _pdo_mysql_error(s, NULL, __FILE__, __LINE__ TSRMLS_DC) +#define pdo_mysql_error_stmt(s) _pdo_mysql_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_DC) extern struct pdo_stmt_methods mysql_stmt_methods; #endif |