php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #68050
Patch multibytePatch revision 2014-09-26 11:45 UTC by rahulpriyadarshi@php.net
Patch ibm_statement_MultiByteCharsPatch revision 2014-09-19 09:26 UTC by thomas dot baumgartl at stahlgruber dot de

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",
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 12:01:25 2019 UTC