| /PHP_5_3/ext/sybase_ct/tests/ |
| H A D | test.inc | 63 // {{{ void sybase_select_ex(resource dbh, string query) 65 function sybase_select_ex($dbh, $query) { 67 $h= sybase_query($query, $dbh); 79 // {{{ mixed sybase_select_single(resource dbh, string query) 81 function sybase_select_single($dbh, $query) { 82 $a = sybase_fetch_row(sybase_query($query, $dbh));
|
| /PHP_5_3/ext/pdo/ |
| H A D | pdo_dbh.c | 39 static int pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC); 41 void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *supp TSRMLS_DC) /* {{{ */ argument 43 pdo_error_type *pdo_err = &dbh->error_code; 47 if (dbh && dbh->error_mode == PDO_ERRMODE_SILENT) { 74 if (dbh && dbh->error_mode != PDO_ERRMODE_EXCEPTION) { 104 void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ argument 106 pdo_error_type *pdo_err = &dbh->error_code; 113 if (dbh 204 pdo_dbh_t *dbh = NULL; local 423 pdo_stmt_instantiate(pdo_dbh_t *dbh, zval *object, zend_class_entry *dbstmt_ce, zval *ctor_args TSRMLS_DC) argument 508 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 605 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 638 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 664 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 690 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 701 pdo_dbh_attribute_set(pdo_dbh_t *dbh, long attr, zval *value TSRMLS_DC) argument 861 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 883 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 947 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 977 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 1006 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 1037 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 1079 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 1156 pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); local 1280 pdo_hash_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument 1353 pdo_dbh_t *dbh = zend_object_store_get_object(object TSRMLS_CC); local 1574 pdo_dbh_t *dbh; local 1597 pdo_dbh_t *dbh = (pdo_dbh_t*)rsrc->ptr; local [all...] |
| H A D | pdo_sql_parser.c | 487 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "mixed named and positional parameters" TSRMLS_CC); 511 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "no parameters were bound" TSRMLS_CC); 530 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "number of bound variables does not match number of tokens" TSRMLS_CC); 551 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); 554 if (stmt->dbh->methods->quoter) { 564 if (!stmt->dbh->methods->quoter(stmt->dbh, buf, len, &plc->quoted, &plc->qlen, 568 strncpy(stmt->error_code, stmt->dbh->error_code, 6); 578 pdo_raise_impl_error(stmt->dbh, stmt, "HY105", "Expected a stream resource" TSRMLS_CC); 604 if (!stmt->dbh [all...] |
| H A D | pdo_sql_parser.re | 134 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "mixed named and positional parameters" TSRMLS_CC); 158 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "no parameters were bound" TSRMLS_CC); 177 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "number of bound variables does not match number of tokens" TSRMLS_CC); 198 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); 201 if (stmt->dbh->methods->quoter) { 211 if (!stmt->dbh->methods->quoter(stmt->dbh, buf, len, &plc->quoted, &plc->qlen, 215 strncpy(stmt->error_code, stmt->dbh->error_code, 6); 225 pdo_raise_impl_error(stmt->dbh, stmt, "HY105", "Expected a stream resource" TSRMLS_CC); 251 if (!stmt->dbh [all...] |
| H A D | pdo_stmt.c | 112 if (!stmt->dbh) { \ 145 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); 157 pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "PDO refuses to handle repeating the same :named parameter for multiple positions with this driver, as it might be unsafe to do so. Consider using a separate name for each parameter instead" TSRMLS_CC); 163 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); 217 if (stmt->dbh->native_case != stmt->dbh->desired_case && stmt->dbh->desired_case != PDO_CASE_NATURAL) { 220 switch (stmt->dbh->desired_case) { 357 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", tmp TSRMLS_CC); 470 pdo_raise_impl_error(stmt->dbh, stm [all...] |
| H A D | php_pdo.h | 78 if (!dbh->driver) { \ 79 pdo_raise_impl_error(dbh, NULL, "00000", "PDO constructor was not called" TSRMLS_CC); \
|
| H A D | php_pdo_driver.h | 229 * the dbh. dbh contains the data source string and flags for this 230 * instance. You MUST respect dbh->is_persistent and pass that flag to 231 * pemalloc() for all allocations that are stored in the dbh or your instance 235 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC); 242 typedef int (*pdo_dbh_close_func)(pdo_dbh_t *dbh TSRMLS_DC); 245 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC); 248 typedef long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC); 251 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC); 254 typedef int (*pdo_dbh_txn_func)(pdo_dbh_t *dbh TSRMLS_D 579 pdo_dbh_t *dbh; member in struct:_pdo_stmt_t [all...] |
| H A D | php_pdo_int.h | 58 extern void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC); 61 strncpy(dbh->error_code, PDO_ERR_NONE, sizeof(PDO_ERR_NONE)); \ 62 if (dbh->query_stmt) { \ 63 dbh->query_stmt = NULL; \ 64 zend_objects_store_del_ref(&dbh->query_stmt_zval TSRMLS_CC); \ 68 #define PDO_HANDLE_DBH_ERR() if (strcmp(dbh->error_code, PDO_ERR_NONE)) { pdo_handle_error(dbh, NULL TSRMLS_CC); } 69 #define PDO_HANDLE_STMT_ERR() if (strcmp(stmt->error_code, PDO_ERR_NONE)) { pdo_handle_error(stmt->dbh, stmt TSRMLS_CC); } 74 int pdo_hash_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC);
|
| /PHP_5_3/ext/pdo_dblib/ |
| H A D | dblib_driver.c | 35 static int dblib_fetch_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 37 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; 72 static int dblib_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) 74 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; 85 pefree(H, dbh->is_persistent); 86 dbh->driver_data = NULL; 91 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 93 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data; 105 static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 107 pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh 141 dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 184 pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| /PHP_5_3/ext/pdo_firebird/ |
| H A D | firebird_driver.c | 42 void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC) /* {{{ */ argument 46 : (pdo_firebird_db_handle *)dbh->driver_data; 48 pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code; 97 #define RECORD_ERROR(dbh) _firebird_error(dbh, NULL, __FILE__, __LINE__ TSRMLS_CC) 100 static int firebird_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ 102 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; 104 if (dbh->in_txn) { 105 if (dbh->auto_commit) { 107 RECORD_ERROR(dbh); 137 firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 223 firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 277 firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 396 firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, long sql_len, XSQLDA *out_sqlda, isc_stmt_handle *s, HashTable *named_params TSRMLS_DC) argument 474 firebird_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 549 firebird_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 607 pdo_firebird_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 647 pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | php_pdo_firebird_int.h | 133 void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC);
|
| /PHP_5_3/ext/pdo_mysql/ |
| H A D | mysql_driver.c | 57 int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC) argument 59 pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh->driver_data; 71 pdo_err = &dbh->error_code; 89 pefree(einfo->errmsg, dbh->is_persistent); 100 dbh->is_persistent); 105 dbh->is_persistent); 108 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent); 128 if (!dbh->methods) { 139 static int pdo_mysql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 141 pdo_mysql_db_handle *H = (pdo_mysql_db_handle *)dbh 186 mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 282 mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 319 pdo_mysql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument 330 mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 399 pdo_mysql_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 445 pdo_mysql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument 564 pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | php_pdo_mysql_int.h | 152 extern int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC); 154 #define pdo_mysql_error_stmt(s) _pdo_mysql_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC)
|
| /PHP_5_3/ext/pdo_oci/ |
| H A D | oci_driver.c | 36 static int pdo_oci_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */ argument 38 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; 60 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isinit, const char *file, int line TSRMLS_DC) /* {{{ */ argument 64 pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; 67 pdo_error_type *pdo_err = &dbh->error_code; 79 pefree(einfo->errmsg, dbh->is_persistent); 90 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); 100 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); 105 einfo->errmsg = pestrdup(tmp_buf, dbh->is_persistent); 109 einfo->errmsg = pestrdup(tmp_buf, dbh 249 oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 325 oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 369 oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 441 oci_handle_set_attribute(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 468 oci_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument 587 pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | oci_statement.c | 39 S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \ 48 S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name ": " #msg, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC); \ 92 pefree(S->einfo.errmsg, stmt->dbh->is_persistent); 140 if (stmt->dbh->auto_commit && !stmt->dbh->in_txn) {
|
| H A D | php_pdo_oci_int.h | 89 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isinit, const char *file, int line TSRMLS_DC); 90 #define oci_init_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, TRUE, __FILE__, __LINE__ TSRMLS_CC) 91 #define oci_drv_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC) 92 #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC)
|
| /PHP_5_3/ext/pdo_odbc/ |
| H A D | odbc_driver.c | 34 static int pdo_odbc_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 36 pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data; 59 void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, char *what, const char *file, int line TSRMLS_DC) /* {{{ */ argument 65 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; 68 pdo_error_type *pdo_err = &dbh->error_code; 106 if (!dbh->methods) { 127 static int odbc_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) 129 pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data; 139 pefree(H, dbh->is_persistent); 140 dbh 145 odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 223 odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 264 odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type param_type TSRMLS_DC) argument 339 odbc_handle_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 354 odbc_handle_get_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 391 pdo_odbc_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | php_pdo_odbc_int.h | 170 void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, char *what, const char *file, int line TSRMLS_DC); 171 #define pdo_odbc_drv_error(what) pdo_odbc_error(dbh, NULL, SQL_NULL_HSTMT, what, __FILE__, __LINE__ TSRMLS_CC) 172 #define pdo_odbc_stmt_error(what) pdo_odbc_error(stmt->dbh, stmt, SQL_NULL_HSTMT, what, __FILE__, __LINE__ TSRMLS_CC) 173 #define pdo_odbc_doer_error(what) pdo_odbc_error(dbh, NULL, stmt, what, __FILE__, __LINE__ TSRMLS_CC)
|
| /PHP_5_3/ext/pdo_pgsql/ |
| H A D | pgsql_driver.c | 63 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC) /* {{{ */ argument 65 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; 66 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code; 75 pefree(einfo->errmsg, dbh->is_persistent); 87 einfo->errmsg = _pdo_pgsql_trim_message(errmsg, dbh->is_persistent); 90 if (!dbh->methods) { 99 static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */ argument 101 /* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */ 105 static int pdo_pgsql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */ argument 107 pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh 135 pdo_dbh_t *dbh = self->dbh; local 171 pdo_pgsql_create_lob_stream(pdo_dbh_t *dbh, int lfd, Oid oid TSRMLS_DC) argument 213 pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 283 pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 308 pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 345 pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument 377 pdo_pgsql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument 504 pdo_dbh_t *dbh; local 612 pdo_dbh_t *dbh; local 704 pdo_dbh_t *dbh; local 793 pdo_dbh_t *dbh; local 866 pdo_dbh_t *dbh; local 891 pdo_dbh_t *dbh; local 940 pdo_dbh_t *dbh; local 981 pdo_pgsql_get_driver_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument 991 pdo_pgsql_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 1027 pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | pgsql_statement.c | 264 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", param->name TSRMLS_CC); 531 *ptr = (char*)pdo_pgsql_create_lob_stream(stmt->dbh, loid, oid TSRMLS_CC);
|
| H A D | php_pdo_pgsql_int.h | 86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC); 88 #define pdo_pgsql_error_stmt(s,e,z) _pdo_pgsql_error(s->dbh, s, e, z, __FILE__, __LINE__ TSRMLS_CC) 99 pdo_dbh_t *dbh; member in struct:pdo_pgsql_lob_self
|
| /PHP_5_3/ext/pdo_sqlite/ |
| H A D | php_pdo_sqlite_int.h | 73 extern int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC); 75 #define pdo_sqlite_error_stmt(s) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC)
|
| H A D | sqlite_driver.c | 34 int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC) /* {{{ */ argument 36 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data; 37 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code; 46 pefree(einfo->errmsg, dbh->is_persistent); 48 einfo->errmsg = pestrdup((char*)sqlite3_errmsg(H->db), dbh->is_persistent); 80 if (!dbh->methods) { 89 static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 91 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data; 155 static int sqlite_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ 157 pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh 178 sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 206 sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 222 pdo_sqlite_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument 233 sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 283 pdo_sqlite_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument 298 pdo_sqlite_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 542 pdo_dbh_t *dbh; local 613 pdo_dbh_t *dbh; local 675 pdo_dbh_t *dbh; local 723 get_driver_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument 815 pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |
| H A D | sqlite_statement.c | 132 pdo_raise_impl_error(stmt->dbh, stmt, "HY105", "Expected a stream resource" TSRMLS_CC);
|
| /PHP_5_3/ext/sqlite/ |
| H A D | pdo_sqlite2.c | 57 extern int _pdo_sqlite2_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *errmsg, const char *file, int line TSRMLS_DC); 59 #define pdo_sqlite2_error_stmt(msg, s) _pdo_sqlite2_error(stmt->dbh, stmt, msg, __FILE__, __LINE__ TSRMLS_CC) 76 pefree(S->einfo.errmsg, stmt->dbh->is_persistent); 232 int _pdo_sqlite2_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *errmsg, const char *file, int line TSRMLS_DC) /* {{{ */ argument 234 pdo_sqlite2_db_handle *H = (pdo_sqlite2_db_handle *)dbh->driver_data; 235 pdo_error_type *pdo_err = stmt ? &stmt->error_code : &dbh->error_code; 248 pefree(einfo->errmsg, dbh->is_persistent); 254 einfo->errmsg = pestrdup(errmsg, dbh->is_persistent); 257 einfo->errmsg = pestrdup(sqlite_error_string(einfo->errcode), dbh->is_persistent); 290 if (!dbh 299 pdo_sqlite2_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) argument 340 sqlite2_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument 359 sqlite2_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) argument 372 pdo_sqlite2_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned int *len TSRMLS_DC) argument 382 sqlite2_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument 451 pdo_sqlite2_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value TSRMLS_DC) argument 466 pdo_sqlite2_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC) argument 489 get_driver_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) argument 570 pdo_sqlite2_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) argument [all...] |