Lines Matching refs:H
476 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_closer() local
480 if (isc_commit_transaction(H->isc_status, &H->tr)) { in firebird_handle_closer()
484 if (isc_rollback_transaction(H->isc_status, &H->tr)) { in firebird_handle_closer()
490 if (isc_detach_database(H->isc_status, &H->db)) { in firebird_handle_closer()
494 if (H->date_format) { in firebird_handle_closer()
495 efree(H->date_format); in firebird_handle_closer()
497 if (H->time_format) { in firebird_handle_closer()
498 efree(H->time_format); in firebird_handle_closer()
500 if (H->timestamp_format) { in firebird_handle_closer()
501 efree(H->timestamp_format); in firebird_handle_closer()
504 pefree(H, dbh->is_persistent); in firebird_handle_closer()
512 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_preparer() local
535 S->H = H; in firebird_handle_preparer()
542 if (isc_dsql_sql_info(H->isc_status, &s, sizeof(info), const_cast(info), sizeof(result), in firebird_handle_preparer()
549 if (isc_dsql_describe(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in firebird_handle_preparer()
555 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, &num_sqlda)) { in firebird_handle_preparer()
564 if (isc_dsql_describe_bind(H->isc_status, &s, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in firebird_handle_preparer()
596 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_doer() local
614 if (isc_dsql_execute2(H->isc_status, &H->tr, &stmt, PDO_FB_SQLDA_VERSION, &in_sqlda, &out_sqlda)) { in firebird_handle_doer()
621 if (isc_dsql_sql_info(H->isc_status, &stmt, sizeof(info_count), const_cast(info_count), in firebird_handle_doer()
650 if (dbh->auto_commit && isc_commit_retaining(H->isc_status, &H->tr)) { in firebird_handle_doer()
656 if (isc_dsql_free_statement(H->isc_status, &stmt, DSQL_drop)) { in firebird_handle_doer()
706 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_begin() local
748 if (isc_start_transaction(H->isc_status, &H->tr, 1, &H->db, (unsigned short)(ptpb-tpb), tpb)) { in firebird_handle_begin()
759 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_commit() local
761 if (isc_commit_transaction(H->isc_status, &H->tr)) { in firebird_handle_commit()
772 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_rollback() local
774 if (isc_rollback_transaction(H->isc_status, &H->tr)) { in firebird_handle_rollback()
786 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_alloc_prepare_stmt() local
806 if (isc_dsql_allocate_statement(H->isc_status, &H->db, s)) { in firebird_alloc_prepare_stmt()
822 if (isc_dsql_prepare(H->isc_status, &H->tr, s, 0, new_sql, H->sql_dialect, out_sqlda)) { in firebird_alloc_prepare_stmt()
835 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_set_attribute() local
851 H->last_app_error = "Cannot enable auto-commit while a transaction is already open"; in firebird_handle_set_attribute()
870 H->fetch_table_names = bval; in firebird_handle_set_attribute()
879 if (H->date_format) { in firebird_handle_set_attribute()
880 efree(H->date_format); in firebird_handle_set_attribute()
882 spprintf(&H->date_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
893 if (H->time_format) { in firebird_handle_set_attribute()
894 efree(H->time_format); in firebird_handle_set_attribute()
896 spprintf(&H->time_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
907 if (H->timestamp_format) { in firebird_handle_set_attribute()
908 efree(H->timestamp_format); in firebird_handle_set_attribute()
910 spprintf(&H->timestamp_format, 0, "%s", ZSTR_VAL(str)); in firebird_handle_set_attribute()
936 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in firebird_handle_get_attribute() local
946 ZVAL_BOOL(val, !isc_version(&H->db, firebird_info_cb, NULL)); in firebird_handle_get_attribute()
976 if (!isc_version(&H->db, firebird_info_cb, (void*)tmp)) { in firebird_handle_get_attribute()
983 ZVAL_BOOL(val, H->fetch_table_names); in firebird_handle_get_attribute()
993 pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; in pdo_firebird_fetch_error_func() local
994 const ISC_STATUS *s = H->isc_status; in pdo_firebird_fetch_error_func()
1006 } else if (H->last_app_error) { in pdo_firebird_fetch_error_func()
1008 add_next_index_string(info, const_cast(H->last_app_error)); in pdo_firebird_fetch_error_func()
1047 pdo_firebird_db_handle *H = dbh->driver_data = pecalloc(1,sizeof(*H),dbh->is_persistent); in pdo_firebird_handle_factory() local
1077 H->sql_dialect = PDO_FB_DIALECT; in pdo_firebird_handle_factory()
1079 H->sql_dialect = atoi(vars[3].optval); in pdo_firebird_handle_factory()
1083 …if (isc_attach_database(H->isc_status, 0, vars[0].optval, &H->db,(short)(dpb-dpb_buffer), dpb_buff… in pdo_firebird_handle_factory()
1103 const ISC_STATUS *s = H->isc_status; in pdo_firebird_handle_factory()
1105 zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1], "SQLSTATE[%s] [%ld] %s", in pdo_firebird_handle_factory()
1106 "HY000", H->isc_status[1], errmsg); in pdo_firebird_handle_factory()