]> granicus.if.org Git - php/commitdiff
Update generated file.
authorJohannes Schlüter <johannes@php.net>
Wed, 18 Apr 2012 20:47:14 +0000 (22:47 +0200)
committerJohannes Schlüter <johannes@php.net>
Wed, 18 Apr 2012 20:49:03 +0000 (22:49 +0200)
ext/pdo/pdo_sql_parser.c

index d67f0e0b788bcdfbea52b835777c56c5844f7e5b..ed8af84527465257f9a947c7437acb8805a2e933 100644 (file)
@@ -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;