Changeset: 08f2048691fb for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=08f2048691fb Modified Files: sql/server/sql_parser.y Branch: Jan2014 Log Message:
added limit without records in copy into. Beware this can only work with file based input (not with streaming!) Fixes bug 3504 diffs (16 lines): diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y --- a/sql/server/sql_parser.y +++ b/sql/server/sql_parser.y @@ -2528,7 +2528,11 @@ opt_using: opt_nr: /* empty */ { $$ = NULL; } | poslng RECORDS { $$ = append_lng(append_lng(L(), $1), 0); } - | poslng OFFSET poslng RECORDS { $$ = append_lng(append_lng(L(), $1), $3); } + | OFFSET poslng { $$ = append_lng(append_lng(L(), -1), $2); } + | poslng OFFSET poslng RECORDS + { $$ = append_lng(append_lng(L(), $1), $3); } + | poslng RECORDS OFFSET poslng + { $$ = append_lng(append_lng(L(), $1), $4); } ; opt_null_string: _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list