From 518cf77f328d17a748320df00594e8a13fbfe89e Mon Sep 17 00:00:00 2001 From: George Schlossnagle Date: Fri, 21 May 2004 22:19:33 +0000 Subject: fix fubar'd emulated bindings --- ext/pdo/pdo_sql_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pdo/pdo_sql_parser.c') diff --git a/ext/pdo/pdo_sql_parser.c b/ext/pdo/pdo_sql_parser.c index 9831d968c8..f3002e0e98 100644 --- a/ext/pdo/pdo_sql_parser.c +++ b/ext/pdo/pdo_sql_parser.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.5 on Thu May 20 13:55:15 2004 */ +/* Generated by re2c 0.5 on Fri May 21 17:19:22 2004 */ #line 1 "/home/george/src/pecl/pdo/pdo_sql_parser.re" /* +----------------------------------------------------------------------+ @@ -191,7 +191,6 @@ int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, char **ou int padding; HashTable *params = stmt->bound_params; struct pdo_bound_param_data *param; - /* allocate buffer for query with expanded binds, ptr is our writing pointer */ newbuffer_len = inquery_len; @@ -239,6 +238,7 @@ int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, char **ou /* stupid keys need to be null-terminated, even though we know their length */ crutch = s.tok[s.cur-s.tok]; s.tok[s.cur-s.tok] = '\0'; + fprintf(stderr, "%d %s\n", s.cur-s.tok + 1, s.tok); if((SUCCESS == zend_hash_find(params, s.tok, s.cur-s.tok + 1,(void **)¶m)) || (SUCCESS == zend_hash_index_find(params, bindno, (void **)¶m))) -- cgit v1.2.1