mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
MFB
This commit is contained in:
parent
1365bee427
commit
0161d1bfd1
1 changed files with 11 additions and 9 deletions
|
@ -198,15 +198,17 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
||||||
sizeof(int));
|
sizeof(int));
|
||||||
|
|
||||||
}
|
}
|
||||||
if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL ||
|
if (param->paramno >= 0) {
|
||||||
Z_TYPE_P(param->parameter) == IS_NULL) {
|
if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL ||
|
||||||
S->param_values[param->paramno] = NULL;
|
Z_TYPE_P(param->parameter) == IS_NULL) {
|
||||||
S->param_lengths[param->paramno] = 0;
|
S->param_values[param->paramno] = NULL;
|
||||||
} else {
|
S->param_lengths[param->paramno] = 0;
|
||||||
convert_to_string(param->parameter);
|
} else {
|
||||||
S->param_values[param->paramno] = Z_STRVAL_P(param->parameter);
|
convert_to_string(param->parameter);
|
||||||
S->param_lengths[param->paramno] = Z_STRLEN_P(param->parameter);
|
S->param_values[param->paramno] = Z_STRVAL_P(param->parameter);
|
||||||
S->param_formats[param->paramno] = 1;
|
S->param_lengths[param->paramno] = Z_STRLEN_P(param->parameter);
|
||||||
|
S->param_formats[param->paramno] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue