Lines Matching refs:H

41 	pdo_firebird_db_handle *H = stmt ? ((pdo_firebird_stmt *)stmt->driver_data)->H  in _firebird_error()
47 switch (isc_sqlcode(H->isc_status)) { in _firebird_error()
98 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_closer() local
102 if (isc_commit_transaction(H->isc_status, &H->tr)) { in firebird_handle_closer()
106 if (isc_rollback_transaction(H->isc_status, &H->tr)) { in firebird_handle_closer()
112 if (isc_detach_database(H->isc_status, &H->db)) { in firebird_handle_closer()
116 if (H->date_format) { in firebird_handle_closer()
117 efree(H->date_format); in firebird_handle_closer()
119 if (H->time_format) { in firebird_handle_closer()
120 efree(H->time_format); in firebird_handle_closer()
122 if (H->timestamp_format) { in firebird_handle_closer()
123 efree(H->timestamp_format); in firebird_handle_closer()
126 pefree(H, dbh->is_persistent); in firebird_handle_closer()
136 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_preparer() local
159 S->H = H; in firebird_handle_preparer()
167 if (isc_dsql_sql_info(H->isc_status, &s, sizeof(info), const_cast(info), sizeof(result), in firebird_handle_preparer()
174 if (isc_dsql_describe(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in firebird_handle_preparer()
180 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &num_sqlda)) { in firebird_handle_preparer()
189 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in firebird_handle_preparer()
221 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_doer() local
239 if (isc_dsql_execute2(H->isc_status, &H->tr, &stmt, PDO_FB_SQLDA_VERSION, &in_sqlda, &out_sqlda)) { in firebird_handle_doer()
246 if (isc_dsql_sql_info(H->isc_status, &stmt, sizeof(info_count), const_cast(info_count), in firebird_handle_doer()
266 if (dbh->auto_commit && isc_commit_retaining(H->isc_status, &H->tr)) { in firebird_handle_doer()
272 if (isc_dsql_free_statement(H->isc_status, &stmt, DSQL_drop)) { in firebird_handle_doer()
323 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_begin() local
365 if (isc_start_transaction(H->isc_status, &H->tr, 1, &H->db, (unsigned short)(ptpb-tpb), tpb)) { in firebird_handle_begin()
376 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_commit() local
378 if (isc_commit_transaction(H->isc_status, &H->tr)) { in firebird_handle_commit()
389 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_rollback() local
391 if (isc_rollback_transaction(H->isc_status, &H->tr)) { in firebird_handle_rollback()
403 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_alloc_prepare_stmt() local
424 if (isc_dsql_allocate_statement(H->isc_status, &H->db, s)) { in firebird_alloc_prepare_stmt()
467 if (isc_dsql_prepare(H->isc_status, &H->tr, s, 0, new_sql, PDO_FB_DIALECT, out_sqlda)) { in firebird_alloc_prepare_stmt()
481 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_set_attribute() local
494 H->last_app_error = "Cannot enable auto-commit while a transaction is already open"; in firebird_handle_set_attribute()
510 H->fetch_table_names = zval_get_long(val)? 1 : 0; in firebird_handle_set_attribute()
516 if (H->date_format) { in firebird_handle_set_attribute()
517 efree(H->date_format); in firebird_handle_set_attribute()
519 spprintf(&H->date_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
527 if (H->time_format) { in firebird_handle_set_attribute()
528 efree(H->time_format); in firebird_handle_set_attribute()
530 spprintf(&H->time_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
538 if (H->timestamp_format) { in firebird_handle_set_attribute()
539 efree(H->timestamp_format); in firebird_handle_set_attribute()
541 spprintf(&H->timestamp_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
565 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_get_attribute() local
575 ZVAL_BOOL(val, !isc_version(&H->db, firebird_info_cb, NULL)); in firebird_handle_get_attribute()
605 if (!isc_version(&H->db, firebird_info_cb, (void*)tmp)) { in firebird_handle_get_attribute()
611 ZVAL_BOOL(val, H->fetch_table_names); in firebird_handle_get_attribute()
621 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_fetch_error_func() local
622 const ISC_STATUS *s = H->isc_status; in pdo_firebird_fetch_error_func()
634 } else if (H->last_app_error) { in pdo_firebird_fetch_error_func()
636 add_next_index_string(info, const_cast(H->last_app_error)); in pdo_firebird_fetch_error_func()
669 pdo_firebird_db_handle *H = dbh->driver_data = pecalloc(1,sizeof(*H),dbh->is_persistent); in pdo_firebird_handle_factory() local
692 …if (isc_attach_database(H->isc_status, 0, vars[0].optval, &H->db,(short)(dpb-dpb_buffer), dpb_buff… in pdo_firebird_handle_factory()
712 const ISC_STATUS *s = H->isc_status; in pdo_firebird_handle_factory()
714 zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1], "SQLSTATE[%s] [%d] %s", in pdo_firebird_handle_factory()
715 "HY000", H->isc_status[1], errmsg); in pdo_firebird_handle_factory()