php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #47415
Patch Bug-47415-lowercased-column-name-to-bindColumn revision 2011-12-13 15:28 UTC by dabramov at american-appraisal dot com
revision 2011-12-12 10:03 UTC by dabramov at american-appraisal dot com

Patch Bug-47415-lowercased-column-name-to-bindColumn for PDO related Bug #47415

Patch version 2011-12-13 15:28 UTC

Return to Bug #47415 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: dabramov@american-appraisal.com

Index: ext/pdo_firebird/firebird_statement.c
===================================================================
--- ext/pdo_firebird/firebird_statement.c	(revision 320930)
+++ ext/pdo_firebird/firebird_statement.c	(working copy)
@@ -582,6 +582,9 @@
 			break;
 
 		case PDO_PARAM_EVT_FETCH_POST:
+			if (param->paramno == -1) {
+				return 0;
+			}
 			value = NULL;
 			value_len = 0;
 			caller_frees = 0;
@@ -607,6 +610,17 @@
 				return 1;
 			}
 			return 0;
+
+		case PDO_PARAM_EVT_NORMALIZE:
+			if (!param->is_param) {
+				char *s = param->name;
+				while (*s != '\0') {
+					*s = toupper(*s);
+					s++;
+				}
+			}
+			break;
+
 		default:
 			;
 	}		
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC