mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Finish ext/pdo_pgsql (3 tests fail, 1 due to knew issue, 2 also fails in trunk)
This commit is contained in:
parent
417860f95d
commit
e8c2b54b9e
1 changed files with 4 additions and 4 deletions
|
@ -355,10 +355,10 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
S->param_lengths[param->paramno] = 1;
|
||||
S->param_formats[param->paramno] = 0;
|
||||
} else {
|
||||
//???SEPARATE_ZVAL_IF_NOT_REF(¶m->parameter);
|
||||
//SEPARATE_ZVAL_IF_NOT_REF(¶m->parameter);
|
||||
convert_to_string_ex(parameter);
|
||||
S->param_values[param->paramno] = Z_STRVAL(param->parameter);
|
||||
S->param_lengths[param->paramno] = Z_STRLEN(param->parameter);
|
||||
S->param_values[param->paramno] = Z_STRVAL_P(parameter);
|
||||
S->param_lengths[param->paramno] = Z_STRLEN_P(parameter);
|
||||
S->param_formats[param->paramno] = 0;
|
||||
}
|
||||
|
||||
|
@ -381,7 +381,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
} else {
|
||||
parameter = ¶m->parameter;
|
||||
}
|
||||
//????SEPARATE_ZVAL(¶m->parameter);
|
||||
SEPARATE_ZVAL(¶m->parameter);
|
||||
param->param_type = PDO_PARAM_STR;
|
||||
ZVAL_STRINGL(parameter, Z_TYPE_P(parameter) == IS_TRUE ? "t" : "f", 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue