Changeset: d4f39a8bca27 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d4f39a8bca27
Modified Files:
MonetDB5/src/modules/mal/tablet_sql.mx
Branch: default
Log Message:
Give a better approximation of the whereabouts of the error when
fields are missing.
diffs (14 lines):
diff -r af3da2264af5 -r d4f39a8bca27 MonetDB5/src/modules/mal/tablet_sql.mx
--- a/MonetDB5/src/modules/mal/tablet_sql.mx Fri Nov 12 15:40:40 2010 +0100
+++ b/MonetDB5/src/modules/mal/tablet_sql.mx Fri Nov 12 22:28:11 2010 +0100
@@ -296,8 +296,8 @@
}
/* not enough fields */
if ( i < as->nr_attrs-1) {
- snprintf(errmsg,BUFSIZ, "missing separator '%s' line "
BUNFMT " field " BUNFMT "\n",
- fmt->sep, BATcount(fmt->c[0]) + 1 +
task->next, i);
+ snprintf(errmsg,BUFSIZ, "missing separator '%s' line "
BUNFMT " expecting " BUNFMT" got " BUNFMT " fields\n",
+ fmt->sep, BATcount(fmt->c[0]) + idx,
as->nr_attrs-1, i);
errors:
/* we save all errors detected */
mal_set_lock(mal_copyLock,"tablet line break");
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list