Changeset: adfa2d1b1221 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=adfa2d1b1221
Modified Files:
gdk/gdk_atoms.mx
Branch: default
Log Message:
Recognize "nil" BATs
We haven't used BAT of BATs strongly, for the literal "nil"
or "<nil>" were not recognized as nil bats. It would lead to
a parsing error, because not all characters are eaten away.
diffs (16 lines):
diff --git a/gdk/gdk_atoms.mx b/gdk/gdk_atoms.mx
--- a/gdk/gdk_atoms.mx
+++ b/gdk/gdk_atoms.mx
@@ -1365,6 +1365,12 @@ batFromStr(char *src, int *len, bat **ds
t = r;
while ((c = *t) && (c == '_' || GDKisalnum(c)))
t++;
+
+ if (strcmp(r,"nil")== 0 ){
+ **dst = bat_nil;
+ return (int) (t + (c == '>') - src);
+ }
+
s = GDKmalloc((unsigned) (1 + t - r));
if (s != NULL) {
strncpy(s, r, t - r);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list