Lines Matching refs:S

83 	pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;  in get_formatted_time_tz()  local
91 …if (fb_decode_time_tz(S->H->isc_status, timeTz, &hours, &minutes, &seconds, &fractions, sizeof(tim… in get_formatted_time_tz()
96 fmt = S->H->time_format ? S->H->time_format : PDO_FB_DEF_TIME_FMT; in get_formatted_time_tz()
111 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in get_formatted_timestamp_tz() local
119 …if (fb_decode_timestamp_tz(S->H->isc_status, timestampTz, &year, &month, &day, &hours, &minutes, &… in get_formatted_timestamp_tz()
126 fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; in get_formatted_timestamp_tz()
158 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_dtor() local
162 if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) { in pdo_firebird_stmt_dtor()
167 zend_hash_destroy(S->named_params); in pdo_firebird_stmt_dtor()
168 FREE_HASHTABLE(S->named_params); in pdo_firebird_stmt_dtor()
171 if (S->in_sqlda) { in pdo_firebird_stmt_dtor()
172 php_firebird_free_sqlda(S->in_sqlda); in pdo_firebird_stmt_dtor()
173 efree(S->in_sqlda); in pdo_firebird_stmt_dtor()
176 php_firebird_free_sqlda(&S->out_sqlda); in pdo_firebird_stmt_dtor()
177 efree(S); in pdo_firebird_stmt_dtor()
186 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_execute() local
187 pdo_firebird_db_handle *H = S->H; in pdo_firebird_stmt_execute()
194 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { in pdo_firebird_stmt_execute()
197 S->cursor_open = 0; in pdo_firebird_stmt_execute()
200 if (S->out_sqlda.sqld) { in pdo_firebird_stmt_execute()
202 for (i = 0; i < S->out_sqlda.sqld; i++) { in pdo_firebird_stmt_execute()
203 XSQLVAR *var = &S->out_sqlda.sqlvar[i]; in pdo_firebird_stmt_execute()
212 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in pdo_firebird_stmt_execute()
213 …if (isc_dsql_execute2(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda, &S->out_… in pdo_firebird_stmt_execute()
216 } else if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in pdo_firebird_stmt_execute()
225 switch (S->statement_type) { in pdo_firebird_stmt_execute()
230 if (isc_dsql_sql_info(H->isc_status, &S->stmt, sizeof ( info_count), in pdo_firebird_stmt_execute()
256 …if (stmt->dbh->auto_commit && !S->H->in_manually_txn && !php_firebird_commit_transaction(stmt->dbh… in pdo_firebird_stmt_execute()
260 *S->name = 0; in pdo_firebird_stmt_execute()
261 S->cursor_open = S->out_sqlda.sqln && (S->statement_type != isc_info_sql_stmt_exec_procedure); in pdo_firebird_stmt_execute()
262 S->exhausted = !S->out_sqlda.sqln; /* There are data to fetch */ in pdo_firebird_stmt_execute()
278 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_fetch() local
279 pdo_firebird_db_handle *H = S->H; in pdo_firebird_stmt_fetch()
284 } else if (!S->exhausted) { in pdo_firebird_stmt_fetch()
285 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in pdo_firebird_stmt_fetch()
287 S->exhausted = 1; in pdo_firebird_stmt_fetch()
290 if (isc_dsql_fetch(H->isc_status, &S->stmt, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in pdo_firebird_stmt_fetch()
294 S->exhausted = 1; in pdo_firebird_stmt_fetch()
307 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_describe() local
309 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_describe()
316 colname_len = (S->H->fetch_table_names && var->relname_length) in pdo_firebird_stmt_describe()
337 pdo_firebird_stmt *S = (pdo_firebird_stmt *) stmt->driver_data; in pdo_firebird_stmt_get_column_meta() local
338 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_column_meta()
369 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in php_firebird_fetch_blob() local
370 pdo_firebird_db_handle *H = S->H; in php_firebird_fetch_blob()
457 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_get_col() local
458 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_col()
548 fmt = S->H->date_format ? S->H->date_format : PDO_FB_DEF_DATE_FMT; in pdo_firebird_stmt_get_col()
552 fmt = S->H->time_format ? S->H->time_format : PDO_FB_DEF_TIME_FMT; in pdo_firebird_stmt_get_col()
559 fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; in pdo_firebird_stmt_get_col()
588 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in php_firebird_bind_blob() local
589 pdo_firebird_db_handle *H = S->H; in php_firebird_bind_blob()
631 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_param_hook() local
632 XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; in pdo_firebird_stmt_param_hook()
648 if ((index = zend_hash_find(S->named_params, param->name)) != NULL) { in pdo_firebird_stmt_param_hook()
884 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_set_attribute() local
895 if (ZSTR_LEN(str_val) >= sizeof(S->name)) { in pdo_firebird_stmt_set_attribute()
896 zend_value_error("Cursor name must not be longer than %zu bytes", sizeof(S->name) - 1); in pdo_firebird_stmt_set_attribute()
901 if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, ZSTR_VAL(str_val), 0)) { in pdo_firebird_stmt_set_attribute()
907 memcpy(S->name, ZSTR_VAL(str_val), ZSTR_LEN(str_val) + 1); in pdo_firebird_stmt_set_attribute()
918 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_get_attribute() local
924 if (*S->name) { in pdo_firebird_stmt_get_attribute()
925 ZVAL_STRING(val, S->name); in pdo_firebird_stmt_get_attribute()
937 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_cursor_closer() local
940 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close… in pdo_firebird_stmt_cursor_closer()
944 *S->name = 0; in pdo_firebird_stmt_cursor_closer()
945 S->cursor_open = 0; in pdo_firebird_stmt_cursor_closer()