Update of /cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/parser
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31067/src/nl/cwi/monetdb/mcl/parser
Modified Files:
Tag: Clients_1-18
TupleLineParser.java
Log Message:
Merged HEAD into Clients_1-18
Index: TupleLineParser.java
===================================================================
RCS file:
/cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/parser/TupleLineParser.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- TupleLineParser.java 20 Apr 2007 13:41:32 -0000 1.2
+++ TupleLineParser.java 16 Aug 2007 10:52:57 -0000 1.2.2.1
@@ -51,6 +51,22 @@
char[] chrLine = new char[len];
source.getChars(0, len, chrLine, 0);
+ // first detect whether this is a single value line (=) or a
+ // real tuple ([)
+ if (chrLine[0] == '=') {
+ if (values.length != 1)
+ throw new MCLParseException(values.length +
+ " columns expected, but only
single value found");
+
+ // return the whole string but the leading =
+ values[0] = source.substring(1);
+
+ // reset colnr
+ reset();
+
+ return(0);
+ }
+
// extract separate fields by examining string, char for char
boolean inString = false, escaped = false;
int cursor = 2, column = 0, i = 2;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins