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-12 10:03 UTC

Return to Bug #47415 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: dabramov@american-appraisal.com

Index: ext/pdo_firebird/firebird_statement.c
===================================================================
--- ext/pdo_firebird/firebird_statement.c	(revision 320881)
+++ ext/pdo_firebird/firebird_statement.c	(working copy)
@@ -607,6 +607,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-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 22:02:05 2014 UTC