Lines Matching refs:in_sqlda
64 XSQLDA *in_sqlda, *out_sqlda; member
159 if (ib_query->in_sqlda) { in _php_ibase_free_query()
160 efree(ib_query->in_sqlda); in _php_ibase_free_query()
338 ib_query->in_sqlda = NULL; in _php_ibase_alloc_query()
375 ib_query->in_sqlda = emalloc(XSQLDA_LENGTH(1)); in _php_ibase_alloc_query()
376 ib_query->in_sqlda->sqln = 1; in _php_ibase_alloc_query()
377 ib_query->in_sqlda->version = SQLDA_CURRENT_VERSION; in _php_ibase_alloc_query()
378 …if (isc_dsql_describe_bind(IB_STATUS, &ib_query->stmt, SQLDA_CURRENT_VERSION, ib_query->in_sqlda))… in _php_ibase_alloc_query()
384 if (ib_query->in_sqlda->sqln < ib_query->in_sqlda->sqld) { in _php_ibase_alloc_query()
385 ib_query->in_sqlda = erealloc(ib_query->in_sqlda, XSQLDA_LENGTH(ib_query->in_sqlda->sqld)); in _php_ibase_alloc_query()
386 ib_query->in_sqlda->sqln = ib_query->in_sqlda->sqld; in _php_ibase_alloc_query()
387 ib_query->in_sqlda->version = SQLDA_CURRENT_VERSION; in _php_ibase_alloc_query()
390 SQLDA_CURRENT_VERSION, ib_query->in_sqlda)) { in _php_ibase_alloc_query()
397 if (ib_query->in_sqlda->sqld == 0) { in _php_ibase_alloc_query()
398 efree(ib_query->in_sqlda); in _php_ibase_alloc_query()
399 ib_query->in_sqlda = NULL; in _php_ibase_alloc_query()
400 } else if (FAILURE == _php_ibase_alloc_array(&ib_query->in_array, ib_query->in_sqlda, in _php_ibase_alloc_query()
420 if (ib_query->in_sqlda) { in _php_ibase_alloc_query()
421 efree(ib_query->in_sqlda); in _php_ibase_alloc_query()
868 XSQLDA *in_sqlda = NULL, *out_sqlda = NULL; in _php_ibase_exec() local
874 int argc = ib_query->in_sqlda ? ib_query->in_sqlda->sqld : 0; in _php_ibase_exec()
970 if (ib_query->in_sqlda) { /* has placeholders */ in _php_ibase_exec()
972 in_sqlda = emalloc(XSQLDA_LENGTH(ib_query->in_sqlda->sqld)); in _php_ibase_exec()
973 memcpy(in_sqlda, ib_query->in_sqlda, XSQLDA_LENGTH(ib_query->in_sqlda->sqld)); in _php_ibase_exec()
974 bind_buf = safe_emalloc(sizeof(BIND_BUF), ib_query->in_sqlda->sqld, 0); in _php_ibase_exec()
975 if (_php_ibase_bind(in_sqlda, args, bind_buf, ib_query) == FAILURE) { in _php_ibase_exec()
983 &ib_query->stmt, SQLDA_CURRENT_VERSION, in_sqlda, out_sqlda); in _php_ibase_exec()
986 &ib_query->stmt, SQLDA_CURRENT_VERSION, in_sqlda); in _php_ibase_exec()
1042 if (in_sqlda) { in _php_ibase_exec()
1043 efree(in_sqlda); in _php_ibase_exec()
1161 expected_n = ib_query.in_sqlda ? ib_query.in_sqlda->sqld : 0; in PHP_FUNCTION()
1797 int expected_n = ib_query->in_sqlda ? ib_query->in_sqlda->sqld : 0; in PHP_FUNCTION()
2051 if (ib_query->in_sqlda == NULL) { in PHP_FUNCTION()
2054 RETURN_LONG(ib_query->in_sqlda->sqld); in PHP_FUNCTION()
2075 if (ib_query->in_sqlda == NULL) { in PHP_FUNCTION()
2079 if (field_arg < 0 || field_arg >= ib_query->in_sqlda->sqld) { in PHP_FUNCTION()
2083 _php_ibase_field_info(return_value,ib_query->in_sqlda->sqlvar + field_arg); in PHP_FUNCTION()