-/* Generated by re2c 0.9.3 on Thu Jan 20 22:49:12 2005 */
-#line 1 "pdo_sql_parser.re"
+/* Generated by re2c 0.9.3 on Sun Feb 6 01:46:44 2005 */
+#line 1 "pdo_sql_parser.re"
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
params = stmt->bound_params;
+ /* Do we have placeholders but no bound params */
+ if (bindno && !params) {
+ strcpy(stmt->error_code, "HY093"); /* invalid parameter number */
+ ret = -1;
+ goto clean_up;
+ }
+
/* what are we going to do ? */
if (stmt->supports_placeholders == PDO_PLACEHOLDER_NONE) {
params = stmt->bound_params;
+ /* Do we have placeholders but no bound params */
+ if (bindno && !params) {
+ strcpy(stmt->error_code, "HY093"); /* invalid parameter number */
+ ret = -1;
+ goto clean_up;
+ }
+
/* what are we going to do ? */
if (stmt->supports_placeholders == PDO_PLACEHOLDER_NONE) {