Update of /cvsroot/monetdb/sql/src/server
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17822/src/server

Modified Files:
        sql_parser.mx 
Log Message:
fixed parser for copy into
approved output after new env variable was introduced


U sql_parser.mx
Index: sql_parser.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_parser.mx,v
retrieving revision 1.300
retrieving revision 1.301
diff -u -d -r1.300 -r1.301
--- sql_parser.mx       22 Jan 2009 21:58:06 -0000      1.300
+++ sql_parser.mx       23 Jan 2009 19:10:31 -0000      1.301
@@ -2402,10 +2402,14 @@
          append_string(l, $8);
          $$ = _symbol_create_list( SQL_COPYFROM, l ); }
 /* binary copy from */
-  | COPY INTO qname FROM '(' string_commalist ')'
+   | COPY opt_nr INTO qname FROM '(' string_commalist ')'
        { dlist *l = L();
-         append_list(l, $3);
-         append_list(l, $6);
+         if ($2 != NULL) {
+               yyerror("Cannot pass number of records in Binary COPY INTO");
+               YYABORT;
+         }
+         append_list(l, $4);
+         append_list(l, $7);
          $$ = _symbol_create_list( SQL_BINCOPYFROM, l ); }
   | COPY select_no_parens_orderby INTO string opt_seps opt_null_string
        { dlist *l = L();


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to