Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6515/src/modules/plain
Modified Files:
ascii_io.mx
Log Message:
To allow for not quote strings, we now need to supply the quotes if the
strings are quoted.
Index: ascii_io.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/ascii_io.mx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- ascii_io.mx 31 Oct 2007 11:56:05 -0000 1.13
+++ ascii_io.mx 9 Dec 2007 16:05:32 -0000 1.14
@@ -266,7 +266,8 @@
void *data;
int len;
int nillen;
- int ws; /* if set we need to skip white space */
+ bit ws; /* if set we need to skip white space */
+ bit quote; /* if set use this character for string quotes */
} ascii_io;
typedef struct ascii_load_t {
@@ -726,7 +727,7 @@
line++;
/* recognize fields starting with a quote */
- if ( (*line == '\"' || *line == '\'') &&
+ if ( *line == fmt[i].quote &&
(line == s || *(line - 1) != '\\')) {
quote = *line;
line++;
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins