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()
865 XSQLDA *in_sqlda = NULL, *out_sqlda = NULL; in _php_ibase_exec() local
871 int argc = ib_query->in_sqlda ? ib_query->in_sqlda->sqld : 0; in _php_ibase_exec()
965 if (ib_query->in_sqlda) { /* has placeholders */ in _php_ibase_exec()
967 in_sqlda = emalloc(XSQLDA_LENGTH(ib_query->in_sqlda->sqld)); in _php_ibase_exec()
968 memcpy(in_sqlda, ib_query->in_sqlda, XSQLDA_LENGTH(ib_query->in_sqlda->sqld)); in _php_ibase_exec()
969 bind_buf = safe_emalloc(sizeof(BIND_BUF), ib_query->in_sqlda->sqld, 0); in _php_ibase_exec()
970 if (_php_ibase_bind(in_sqlda, args, bind_buf, ib_query TSRMLS_CC) == FAILURE) { in _php_ibase_exec()
978 &ib_query->stmt, SQLDA_CURRENT_VERSION, in_sqlda, out_sqlda); in _php_ibase_exec()
981 &ib_query->stmt, SQLDA_CURRENT_VERSION, in_sqlda); in _php_ibase_exec()
1037 if (in_sqlda) { in _php_ibase_exec()
1038 efree(in_sqlda); in _php_ibase_exec()
1161 expected_n = ib_query.in_sqlda ? ib_query.in_sqlda->sqld : 0; in PHP_FUNCTION()
1800 expected_n = ib_query->in_sqlda ? ib_query->in_sqlda->sqld : 0; in PHP_FUNCTION()
2055 if (ib_query->in_sqlda == NULL) { in PHP_FUNCTION()
2058 RETURN_LONG(ib_query->in_sqlda->sqld); in PHP_FUNCTION()
2079 if (ib_query->in_sqlda == NULL) { in PHP_FUNCTION()
2083 if (field_arg < 0 || field_arg >= ib_query->in_sqlda->sqld) { in PHP_FUNCTION()
2087 _php_ibase_field_info(return_value,ib_query->in_sqlda->sqlvar + field_arg); in PHP_FUNCTION()