Patch integerToDatabaseWithoutLineComments for PDO_IBM Bug #80238
Patch version 2020-10-16 07:50 UTC
Return to Bug #80238 |
Download this patch
Patch Revisions:
Developer: thomas.baumgartl@stahlgruber.de
diff --git a/ibm_statement.c b/ibm_statementCorrected.c
index be1d8e4..4e04dac 100644
--- a/ibm_statement.c
+++ b/ibm_statementCorrected.c
@@ -505,7 +505,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
#endif
#if PHP_MAJOR_VERSION >= 7
- if (!strcmp(curr->parameter.value.str->val, "")) {
+ if (!strcmp(parameter->value.str->val, "")) {
#else
if (!strcmp(curr->parameter->value.str.val, "")) {
#endif
@@ -537,7 +537,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
param_res->param_size,
param_res->scale,
#if PHP_MAJOR_VERSION >= 7
- &((curr->parameter).value.lval),
+ &((parameter)->value.lval),
#else
&((curr->parameter)->value.lval),
#endif
@@ -632,7 +632,7 @@ int stmt_bind_parameter(pdo_stmt_t *stmt, struct pdo_bound_param_data *curr TSRM
param_res->param_size,
param_res->scale,
#if PHP_MAJOR_VERSION >= 7
- &((curr->parameter).value.lval),
+ &((parameter)->value.lval),
#else
&((curr->parameter)->value.lval),
#endif
|