Lines Matching refs:S

85 	pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;  in pdo_firebird_stmt_dtor()  local
89 if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) { in pdo_firebird_stmt_dtor()
94 zend_hash_destroy(S->named_params); in pdo_firebird_stmt_dtor()
95 FREE_HASHTABLE(S->named_params); in pdo_firebird_stmt_dtor()
98 if (S->in_sqlda) { in pdo_firebird_stmt_dtor()
99 php_firebird_free_sqlda(S->in_sqlda); in pdo_firebird_stmt_dtor()
100 efree(S->in_sqlda); in pdo_firebird_stmt_dtor()
103 php_firebird_free_sqlda(&S->out_sqlda); in pdo_firebird_stmt_dtor()
104 efree(S); in pdo_firebird_stmt_dtor()
113 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_execute() local
114 pdo_firebird_db_handle *H = S->H; in pdo_firebird_stmt_execute()
121 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { in pdo_firebird_stmt_execute()
124 S->cursor_open = 0; in pdo_firebird_stmt_execute()
127 if (S->out_sqlda.sqld) { in pdo_firebird_stmt_execute()
129 for (i = 0; i < S->out_sqlda.sqld; i++) { in pdo_firebird_stmt_execute()
130 XSQLVAR *var = &S->out_sqlda.sqlvar[i]; in pdo_firebird_stmt_execute()
139 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in pdo_firebird_stmt_execute()
140 …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()
143 } else if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in pdo_firebird_stmt_execute()
152 switch (S->statement_type) { in pdo_firebird_stmt_execute()
157 if (isc_dsql_sql_info(H->isc_status, &S->stmt, sizeof ( info_count), in pdo_firebird_stmt_execute()
183 …if (stmt->dbh->auto_commit && !S->H->in_manually_txn && !php_firebird_commit_transaction(stmt->dbh… in pdo_firebird_stmt_execute()
187 *S->name = 0; in pdo_firebird_stmt_execute()
188 S->cursor_open = S->out_sqlda.sqln && (S->statement_type != isc_info_sql_stmt_exec_procedure); in pdo_firebird_stmt_execute()
189 S->exhausted = !S->out_sqlda.sqln; /* There are data to fetch */ in pdo_firebird_stmt_execute()
205 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_fetch() local
206 pdo_firebird_db_handle *H = S->H; in pdo_firebird_stmt_fetch()
211 } else if (!S->exhausted) { in pdo_firebird_stmt_fetch()
212 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in pdo_firebird_stmt_fetch()
214 S->exhausted = 1; in pdo_firebird_stmt_fetch()
217 if (isc_dsql_fetch(H->isc_status, &S->stmt, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in pdo_firebird_stmt_fetch()
221 S->exhausted = 1; in pdo_firebird_stmt_fetch()
234 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_describe() local
236 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_describe()
243 colname_len = (S->H->fetch_table_names && var->relname_length) in pdo_firebird_stmt_describe()
264 pdo_firebird_stmt *S = (pdo_firebird_stmt *) stmt->driver_data; in pdo_firebird_stmt_get_column_meta() local
265 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_column_meta()
298 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in php_firebird_fetch_blob() local
299 pdo_firebird_db_handle *H = S->H; in php_firebird_fetch_blob()
386 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_get_col() local
387 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in pdo_firebird_stmt_get_col()
479 fmt = S->H->date_format ? S->H->date_format : PDO_FB_DEF_DATE_FMT; in pdo_firebird_stmt_get_col()
483 fmt = S->H->time_format ? S->H->time_format : PDO_FB_DEF_TIME_FMT; in pdo_firebird_stmt_get_col()
490 fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; in pdo_firebird_stmt_get_col()
509 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in php_firebird_bind_blob() local
510 pdo_firebird_db_handle *H = S->H; in php_firebird_bind_blob()
552 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_param_hook() local
553 XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; in pdo_firebird_stmt_param_hook()
569 if ((index = zend_hash_find(S->named_params, param->name)) != NULL) { in pdo_firebird_stmt_param_hook()
801 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_set_attribute() local
811 if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, Z_STRVAL_P(val),0)) { in pdo_firebird_stmt_set_attribute()
815 strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); in pdo_firebird_stmt_set_attribute()
824 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_get_attribute() local
830 if (*S->name) { in pdo_firebird_stmt_get_attribute()
831 ZVAL_STRING(val, S->name); in pdo_firebird_stmt_get_attribute()
843 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in pdo_firebird_stmt_cursor_closer() local
846 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close… in pdo_firebird_stmt_cursor_closer()
850 *S->name = 0; in pdo_firebird_stmt_cursor_closer()
851 S->cursor_open = 0; in pdo_firebird_stmt_cursor_closer()