Commit:    e946eaca0bc747615fabd0fedb8a92ea800ed158
Author:    Johannes Schl├╝ter <johan...@php.net>         Wed, 18 Apr 2012 
22:47:14 +0200
Parents:   dda60f3014743fcbfc1078a8e52b4d7b2e09b839
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=e946eaca0bc747615fabd0fedb8a92ea800ed158

Log:
Update generated file.

Changed paths:
  M  ext/pdo/pdo_sql_parser.c


Diff:
diff --git a/ext/pdo/pdo_sql_parser.c b/ext/pdo/pdo_sql_parser.c
index d67f0e0..ed8af84 100644
--- a/ext/pdo/pdo_sql_parser.c
+++ b/ext/pdo/pdo_sql_parser.c
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Sat Jun  4 18:42:25 2011 */
+/* Generated by re2c 0.13.5 on Wed Apr 18 22:30:06 2012 */
 #line 1 "ext/pdo/pdo_sql_parser.re"
 /*
   +----------------------------------------------------------------------+
@@ -569,7 +569,7 @@ safe:
                                                                
param->param_type TSRMLS_CC)) {
                                                        /* bork */
                                                        ret = -1;
-                                                       
strcpy(stmt->error_code, stmt->dbh->error_code);
+                                                       
strncpy(stmt->error_code, stmt->dbh->error_code, 6);
                                                        if (buf) {
                                                                efree(buf);
                                                        }
@@ -592,6 +592,9 @@ safe:
                                                        plc->freeq = 0;
                                                        break;
 
+                                               case IS_BOOL:
+                                                       
convert_to_long(param->parameter);
+
                                                case IS_LONG:
                                                case IS_DOUBLE:
                                                        
convert_to_string(param->parameter);
@@ -600,8 +603,6 @@ safe:
                                                        plc->freeq = 0;
                                                        break;
 
-                                               case IS_BOOL:
-                                                       
convert_to_long(param->parameter);
                                                default:
                                                        
convert_to_string(param->parameter);
                                                        if 
(!stmt->dbh->methods->quoter(stmt->dbh, Z_STRVAL_P(param->parameter),
@@ -609,7 +610,7 @@ safe:
                                                                        
param->param_type TSRMLS_CC)) {
                                                                /* bork */
                                                                ret = -1;
-                                                               
strcpy(stmt->error_code, stmt->dbh->error_code);
+                                                               
strncpy(stmt->error_code, stmt->dbh->error_code, 6);
                                                                goto clean_up;
                                                        }
                                                        plc->freeq = 1;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to