Lines Matching refs:param

413 static int firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param TSRMLS_DC)  in firebird_bind_blob()
427 SEPARATE_ZVAL(&param); in firebird_bind_blob()
429 convert_to_string_ex(&param); in firebird_bind_blob()
431 for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
435 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL_P(param)[put_cnt])) { in firebird_bind_blob()
443 zval_dtor(param); in firebird_bind_blob()
452 static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, /* {{{ */ in firebird_stmt_param_hook() argument
456 XSQLDA *sqlda = param->is_param ? S->in_sqlda : &S->out_sqlda; in firebird_stmt_param_hook()
463 if (!sqlda || param->paramno >= sqlda->sqld) { in firebird_stmt_param_hook()
468 if (param->is_param && param->paramno == -1) { in firebird_stmt_param_hook()
472 if (SUCCESS == zend_hash_find(S->named_params, param->name, param->namelen+1, (void*)&index)) { in firebird_stmt_param_hook()
473 param->paramno = *index; in firebird_stmt_param_hook()
481 if ((var->aliasname_length && !strncasecmp(param->name, var->aliasname, in firebird_stmt_param_hook()
482 min(param->namelen, var->aliasname_length))) in firebird_stmt_param_hook()
483 || (var->sqlname_length && !strncasecmp(param->name, var->sqlname, in firebird_stmt_param_hook()
484 min(param->namelen, var->sqlname_length)))) { in firebird_stmt_param_hook()
485 param->paramno = i; in firebird_stmt_param_hook()
497 var = &sqlda->sqlvar[param->paramno]; in firebird_stmt_param_hook()
505 if (param->is_param) { in firebird_stmt_param_hook()
516 if (!param->is_param) { in firebird_stmt_param_hook()
530 param->parameter TSRMLS_CC); in firebird_stmt_param_hook()
534 switch (Z_TYPE_P(param->parameter)) { in firebird_stmt_param_hook()
540 var->sqldata = (void*)&Z_LVAL_P(param->parameter); in firebird_stmt_param_hook()
546 var->sqldata = (void*)&Z_DVAL_P(param->parameter); in firebird_stmt_param_hook()
562 force_null = (Z_STRLEN_P(param->parameter) == 0); in firebird_stmt_param_hook()
567 var->sqldata = Z_STRVAL_P(param->parameter); in firebird_stmt_param_hook()
568 var->sqllen = Z_STRLEN_P(param->parameter); in firebird_stmt_param_hook()
588 if (param->paramno == -1) { in firebird_stmt_param_hook()
591 if (param->is_param) { in firebird_stmt_param_hook()
598 if (firebird_stmt_get_col(stmt, param->paramno, &value, &value_len, &caller_frees TSRMLS_CC)) { in firebird_stmt_param_hook()
599 switch (PDO_PARAM_TYPE(param->param_type)) { in firebird_stmt_param_hook()
602 ZVAL_STRINGL(param->parameter, value, value_len, 1); in firebird_stmt_param_hook()
607 ZVAL_LONG(param->parameter, *(long*)value); in firebird_stmt_param_hook()
611 if (!param->is_param) { in firebird_stmt_param_hook()
612 char *s = param->name; in firebird_stmt_param_hook()
620 ZVAL_NULL(param->parameter); in firebird_stmt_param_hook()