Lines Matching refs:S

82 	pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;  in firebird_stmt_dtor()  local
86 if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_drop)) { in firebird_stmt_dtor()
91 zend_hash_destroy(S->named_params); in firebird_stmt_dtor()
92 FREE_HASHTABLE(S->named_params); in firebird_stmt_dtor()
95 if (S->in_sqlda) { in firebird_stmt_dtor()
96 free_sqlda(S->in_sqlda); in firebird_stmt_dtor()
97 efree(S->in_sqlda); in firebird_stmt_dtor()
100 free_sqlda(&S->out_sqlda); in firebird_stmt_dtor()
101 efree(S); in firebird_stmt_dtor()
110 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_execute() local
111 pdo_firebird_db_handle *H = S->H; in firebird_stmt_execute()
118 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { in firebird_stmt_execute()
121 S->cursor_open = 0; in firebird_stmt_execute()
124 if (S->out_sqlda.sqld) { in firebird_stmt_execute()
126 for (i = 0; i < S->out_sqlda.sqld; i++) { in firebird_stmt_execute()
127 XSQLVAR *var = &S->out_sqlda.sqlvar[i]; in firebird_stmt_execute()
136 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in firebird_stmt_execute()
137 …if (isc_dsql_execute2(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda, &S->out_… in firebird_stmt_execute()
140 } else if (isc_dsql_execute(H->isc_status, &H->tr, &S->stmt, PDO_FB_SQLDA_VERSION, S->in_sqlda)) { in firebird_stmt_execute()
149 switch (S->statement_type) { in firebird_stmt_execute()
154 if (isc_dsql_sql_info(H->isc_status, &S->stmt, sizeof ( info_count), in firebird_stmt_execute()
185 *S->name = 0; in firebird_stmt_execute()
186 S->cursor_open = S->out_sqlda.sqln && (S->statement_type != isc_info_sql_stmt_exec_procedure); in firebird_stmt_execute()
187 S->exhausted = !S->out_sqlda.sqln; /* There are data to fetch */ in firebird_stmt_execute()
203 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_fetch() local
204 pdo_firebird_db_handle *H = S->H; in firebird_stmt_fetch()
209 } else if (!S->exhausted) { in firebird_stmt_fetch()
210 if (S->statement_type == isc_info_sql_stmt_exec_procedure) { in firebird_stmt_fetch()
212 S->exhausted = 1; in firebird_stmt_fetch()
215 if (isc_dsql_fetch(H->isc_status, &S->stmt, PDO_FB_SQLDA_VERSION, &S->out_sqlda)) { in firebird_stmt_fetch()
219 S->exhausted = 1; in firebird_stmt_fetch()
232 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_describe() local
234 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_describe()
238 colname_len = (S->H->fetch_table_names && var->relname_length) in firebird_stmt_describe()
259 pdo_firebird_stmt *S = (pdo_firebird_stmt *) stmt->driver_data; in firebird_stmt_get_column_meta() local
260 XSQLVAR *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_column_meta()
293 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_fetch_blob() local
294 pdo_firebird_db_handle *H = S->H; in firebird_fetch_blob()
379 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_get_col() local
380 XSQLVAR const *var = &S->out_sqlda.sqlvar[colno]; in firebird_stmt_get_col()
472 fmt = S->H->date_format ? S->H->date_format : PDO_FB_DEF_DATE_FMT; in firebird_stmt_get_col()
476 fmt = S->H->time_format ? S->H->time_format : PDO_FB_DEF_TIME_FMT; in firebird_stmt_get_col()
483 fmt = S->H->timestamp_format ? S->H->timestamp_format : PDO_FB_DEF_TIMESTAMP_FMT; in firebird_stmt_get_col()
502 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_bind_blob() local
503 pdo_firebird_db_handle *H = S->H; in firebird_bind_blob()
545 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_param_hook() local
546 XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; in firebird_stmt_param_hook()
555 S->H->last_app_error = "Invalid parameter index"; in firebird_stmt_param_hook()
562 if ((index = zend_hash_find(S->named_params, param->name)) != NULL) { in firebird_stmt_param_hook()
581 S->H->last_app_error = "Invalid parameter name"; in firebird_stmt_param_hook()
632 S->H->last_app_error = "Cannot bind to array field"; in firebird_stmt_param_hook()
640 S->H->last_app_error = "Parameter requires non-null value"; in firebird_stmt_param_hook()
689 S->H->last_app_error = "Cannot convert string to boolean"; in firebird_stmt_param_hook()
701 S->H->last_app_error = "Binding arrays/objects is not supported"; in firebird_stmt_param_hook()
752 S->H->last_app_error = "Parameter requires non-null value"; in firebird_stmt_param_hook()
759 S->H->last_app_error = "Binding arrays/objects is not supported"; in firebird_stmt_param_hook()
788 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_set_attribute() local
798 if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, Z_STRVAL_P(val),0)) { in firebird_stmt_set_attribute()
802 strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); in firebird_stmt_set_attribute()
811 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_get_attribute() local
817 if (*S->name) { in firebird_stmt_get_attribute()
818 ZVAL_STRING(val, S->name); in firebird_stmt_get_attribute()
830 pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; in firebird_stmt_cursor_closer() local
833 …if ((*S->name || S->cursor_open) && isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close… in firebird_stmt_cursor_closer()
837 *S->name = 0; in firebird_stmt_cursor_closer()
838 S->cursor_open = 0; in firebird_stmt_cursor_closer()