Lines Matching refs:H
528 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in php_firebird_set_error() local
529 pdo_firebird_error_info *einfo = &H->einfo; in php_firebird_set_error()
538 if (H->isc_status[0] == 1 && H->isc_status[1] > 0) { in php_firebird_set_error()
542 const ISC_STATUS *s = H->isc_status; in php_firebird_set_error()
559 fb_sqlstate(sqlstate, H->isc_status); in php_firebird_set_error()
586 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_closer() local
588 if (H->tr) { in firebird_handle_closer()
595 H->in_manually_txn = 0; in firebird_handle_closer()
597 if (isc_detach_database(H->isc_status, &H->db)) { in firebird_handle_closer()
601 if (H->date_format) { in firebird_handle_closer()
602 efree(H->date_format); in firebird_handle_closer()
604 if (H->time_format) { in firebird_handle_closer()
605 efree(H->time_format); in firebird_handle_closer()
607 if (H->timestamp_format) { in firebird_handle_closer()
608 efree(H->timestamp_format); in firebird_handle_closer()
611 if (H->einfo.errmsg) { in firebird_handle_closer()
612 pefree(H->einfo.errmsg, dbh->is_persistent); in firebird_handle_closer()
613 H->einfo.errmsg = NULL; in firebird_handle_closer()
616 pefree(H, dbh->is_persistent); in firebird_handle_closer()
624 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_preparer() local
647 S->H = H; in firebird_handle_preparer()
654 if (isc_dsql_sql_info(H->isc_status, &s, sizeof(info), const_cast(info), sizeof(result), in firebird_handle_preparer()
661 if (isc_dsql_describe(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in firebird_handle_preparer()
672 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &num_sqlda)) { in firebird_handle_preparer()
681 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in firebird_handle_preparer()
721 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_doer() local
739 if (isc_dsql_execute2(H->isc_status, &H->tr, &stmt, PDO_FB_SQLDA_VERSION, &in_sqlda, &out_sqlda)) { in firebird_handle_doer()
746 if (isc_dsql_sql_info(H->isc_status, &stmt, sizeof(info_count), const_cast(info_count), in firebird_handle_doer()
774 if (dbh->auto_commit && !H->in_manually_txn) { in firebird_handle_doer()
782 if (isc_dsql_free_statement(H->isc_status, &stmt, DSQL_drop)) { in firebird_handle_doer()
836 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in php_firebird_begin_transaction() local
843 tpb[1] = H->is_writable_txn ? isc_tpb_write : isc_tpb_read; in php_firebird_begin_transaction()
854 switch (H->txn_isolation_level) { in php_firebird_begin_transaction()
881 if (isc_start_transaction(H->isc_status, &H->tr, 1, &H->db, tpb_size, tpb)) { in php_firebird_begin_transaction()
892 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_manually_begin() local
897 if (dbh->auto_commit && H->tr) { in firebird_handle_manually_begin()
906 H->in_manually_txn = 1; in firebird_handle_manually_begin()
914 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in php_firebird_commit_transaction() local
925 if (isc_commit_retaining(H->isc_status, &H->tr)) { in php_firebird_commit_transaction()
930 if (isc_commit_transaction(H->isc_status, &H->tr)) { in php_firebird_commit_transaction()
942 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_manually_commit() local
956 H->in_manually_txn = 0; in firebird_handle_manually_commit()
964 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in php_firebird_rollback_transaction() local
966 if (isc_rollback_transaction(H->isc_status, &H->tr)) { in php_firebird_rollback_transaction()
977 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_manually_rollback() local
992 H->in_manually_txn = 0; in firebird_handle_manually_rollback()
1001 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in php_firebird_alloc_prepare_stmt() local
1005 if (isc_dsql_allocate_statement(H->isc_status, &H->db, s)) { in php_firebird_alloc_prepare_stmt()
1021 if (isc_dsql_prepare(H->isc_status, &H->tr, s, 0, new_sql, H->sql_dialect, out_sqlda)) { in php_firebird_alloc_prepare_stmt()
1034 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_set_attribute() local
1045 if (H->in_manually_txn) { in pdo_firebird_set_attribute()
1059 if (!H->tr) { in pdo_firebird_set_attribute()
1069 if (H->tr) { in pdo_firebird_set_attribute()
1084 H->fetch_table_names = bval; in pdo_firebird_set_attribute()
1093 if (H->date_format) { in pdo_firebird_set_attribute()
1094 efree(H->date_format); in pdo_firebird_set_attribute()
1096 spprintf(&H->date_format, 0, "%s", ZSTR_VAL(str)); in pdo_firebird_set_attribute()
1107 if (H->time_format) { in pdo_firebird_set_attribute()
1108 efree(H->time_format); in pdo_firebird_set_attribute()
1110 spprintf(&H->time_format, 0, "%s", ZSTR_VAL(str)); in pdo_firebird_set_attribute()
1121 if (H->timestamp_format) { in pdo_firebird_set_attribute()
1122 efree(H->timestamp_format); in pdo_firebird_set_attribute()
1124 spprintf(&H->timestamp_format, 0, "%s", ZSTR_VAL(str)); in pdo_firebird_set_attribute()
1135 if (H->in_manually_txn) { in pdo_firebird_set_attribute()
1141 if (H->txn_isolation_level != lval) { in pdo_firebird_set_attribute()
1150 H->txn_isolation_level = lval; in pdo_firebird_set_attribute()
1166 if (H->in_manually_txn) { in pdo_firebird_set_attribute()
1172 if (H->is_writable_txn != bval) { in pdo_firebird_set_attribute()
1173 H->is_writable_txn = bval; in pdo_firebird_set_attribute()
1175 if (H->tr) { in pdo_firebird_set_attribute()
1178 H->is_writable_txn = !bval; in pdo_firebird_set_attribute()
1184 H->is_writable_txn = !bval; in pdo_firebird_set_attribute()
1213 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_get_attribute() local
1223 ZVAL_BOOL(val, !isc_version(&H->db, php_firebird_info_cb, NULL)); in pdo_firebird_get_attribute()
1235 if (!isc_version(&H->db, php_firebird_info_cb, (void*)tmp)) { in pdo_firebird_get_attribute()
1242 ZVAL_BOOL(val, H->fetch_table_names); in pdo_firebird_get_attribute()
1246 ZVAL_STRING(val, H->date_format ? H->date_format : PDO_FB_DEF_DATE_FMT); in pdo_firebird_get_attribute()
1250 ZVAL_STRING(val, H->time_format ? H->time_format : PDO_FB_DEF_TIME_FMT); in pdo_firebird_get_attribute()
1254 ZVAL_STRING(val, H->timestamp_format ? H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT); in pdo_firebird_get_attribute()
1258 ZVAL_LONG(val, H->txn_isolation_level); in pdo_firebird_get_attribute()
1262 ZVAL_BOOL(val, H->is_writable_txn); in pdo_firebird_get_attribute()
1272 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_check_liveness() local
1275 return fb_ping(H->isc_status, &H->db) ? FAILURE : SUCCESS; in pdo_firebird_check_liveness()
1282 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_fetch_error_func() local
1283 if (H->einfo.sqlcode != IS_NULL) { in pdo_firebird_fetch_error_func()
1284 add_next_index_long(info, H->einfo.sqlcode); in pdo_firebird_fetch_error_func()
1286 if (H->einfo.errmsg && H->einfo.errmsg_length) { in pdo_firebird_fetch_error_func()
1287 add_next_index_stringl(info, H->einfo.errmsg, H->einfo.errmsg_length); in pdo_firebird_fetch_error_func()
1300 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_in_manually_transaction() local
1301 return H->in_manually_txn; in pdo_firebird_in_manually_transaction()
1340 pdo_firebird_db_handle *H = dbh->driver_data = pecalloc(1,sizeof(*H),dbh->is_persistent); in pdo_firebird_handle_factory() local
1352 H->in_manually_txn = 0; in pdo_firebird_handle_factory()
1353 H->is_writable_txn = pdo_attr_lval(driver_options, PDO_FB_WRITABLE_TRANSACTION, 1); in pdo_firebird_handle_factory()
1359 H->txn_isolation_level = txn_isolation_level; in pdo_firebird_handle_factory()
1384 H->sql_dialect = PDO_FB_DIALECT; in pdo_firebird_handle_factory()
1386 H->sql_dialect = atoi(vars[3].optval); in pdo_firebird_handle_factory()
1390 …if (isc_attach_database(H->isc_status, 0, vars[0].optval, &H->db,(short)(dpb-dpb_buffer), dpb_buff… in pdo_firebird_handle_factory()
1410 const ISC_STATUS *s = H->isc_status; in pdo_firebird_handle_factory()
1412 …zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1], "SQLSTATE[%s] [%" PRIiPTR "] %s… in pdo_firebird_handle_factory()
1413 "HY000", H->isc_status[1], errmsg); in pdo_firebird_handle_factory()
1416 if (dbh->auto_commit && !H->tr) { in pdo_firebird_handle_factory()