Patch ibm_statement_MultiByteCharsPatch for PDO_IBM Bug #68050
Patch version 2014-09-19 09:26 UTC
Return to Bug #68050 |
Download this patch
Patch Revisions:
Developer: thomas.baumgartl@stahlgruber.de
Index: pdo_ibm/ibm_statement.c
===================================================================
--- workspace/test/pdo_ibm/ibm_statement.c (revision 33)
+++ workspace/test/pdo_ibm/ibm_statement.c (working copy)
@@ -901,7 +901,7 @@
case SQL_DECIMAL:
case SQL_NUMERIC:
default:
- in_length = col_res->data_size + in_length;
+ in_length = col_res->data_size * 2 + in_length;
col_res->data.str_val = (char *) emalloc(in_length+1);
check_stmt_allocation(col_res->data.str_val,
"stmt_bind_column",
|