diff options
| author | Wez Furlong <wez@php.net> | 2006-12-15 05:03:02 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2006-12-15 05:03:02 +0000 |
| commit | c2a7928496082de5b82977fcf328eb35803e427a (patch) | |
| tree | baba233a387b9142d101af6912fa555e69c72a5e /ext/pdo_sqlite/php_pdo_sqlite_int.h | |
| parent | 9db33e71bea8f5fe497af2d831cdfe5149a38a4e (diff) | |
| download | php-git-c2a7928496082de5b82977fcf328eb35803e427a.tar.gz | |
merge php5 pdo_sqlite into head; this source compiles on both php5 and php6.
Diffstat (limited to 'ext/pdo_sqlite/php_pdo_sqlite_int.h')
| -rw-r--r-- | ext/pdo_sqlite/php_pdo_sqlite_int.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/pdo_sqlite/php_pdo_sqlite_int.h b/ext/pdo_sqlite/php_pdo_sqlite_int.h index 314cdd5dbb..59a71c24ab 100644 --- a/ext/pdo_sqlite/php_pdo_sqlite_int.h +++ b/ext/pdo_sqlite/php_pdo_sqlite_int.h @@ -62,8 +62,13 @@ typedef struct { extern pdo_driver_t pdo_sqlite_driver; extern int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC); -#define pdo_sqlite_error(s) _pdo_sqlite_error(s, NULL, __FILE__, __LINE__ TSRMLS_CC) -#define pdo_sqlite_error_stmt(s) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC) +extern int _pdo_sqlite_error_msg(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *msg, + const char *file, int line TSRMLS_DC); +#define pdo_sqlite_error(dbh) _pdo_sqlite_error(dbh, NULL, __FILE__, __LINE__ TSRMLS_CC) +#define pdo_sqlite_errmsg(dbh, st, msg) _pdo_sqlite_error_msg(dbh, NULL, st, msg, __FILE__, __LINE__ TSRMLS_CC) +#define pdo_sqlite_error_stmt(stmt) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC) +#define pdo_sqlite_errmsg_stmt(stmt, st, msg) _pdo_sqlite_error_msg(stmt->dbh, stmt, st, msg, __FILE__, __LINE__ TSRMLS_CC) + extern struct pdo_stmt_methods sqlite_stmt_methods; #endif |
