Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30390/src/server
Modified Files:
Tag: SQL_2-16
sql_scan.mx
Log Message:
fixed bug in skipping comments on stream block boundaries.
Index: sql_scan.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_scan.mx,v
retrieving revision 1.122
retrieving revision 1.122.2.1
diff -u -d -r1.122 -r1.122.2.1
--- sql_scan.mx 17 Jan 2007 13:36:50 -0000 1.122
+++ sql_scan.mx 6 Mar 2007 19:42:57 -0000 1.122.2.1
@@ -634,9 +634,9 @@
!(cur == '/' && prev == '*'))
prev = cur;
lc->yysval = lc->yycur;
+ lc->started = started;
if (cur == '/')
cur = scanner_getc(lc);
- lc->started = started;
return cur;
}
@@ -644,10 +644,13 @@
skip_sql_comment(struct scanner * lc)
{
int cur;
+ int started = lc->started;
+ lc->started = 1;
while ((cur = scanner_getc(lc)) != EOF && (cur != '\n'))
;
lc->yysval = lc->yycur;
+ lc->started = started;
if (cur == '\n')
cur = scanner_getc(lc);
return cur;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins