Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5203/src/backends/monet5
Modified Files:
sql_result.mx
Log Message:
Make the error messages more specific
U sql_result.mx
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_result.mx,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- sql_result.mx 28 Dec 2008 14:00:24 -0000 1.102
+++ sql_result.mx 28 Dec 2008 18:42:26 -0000 1.103
@@ -285,7 +285,7 @@
}
for (i = 0; i < (t->digits-t->scale) && *s != '.' && *s; i++, s++) {
if (!*s || *s < '0' || *s > '9') {
- showException(SQL,"sql", "decimal wrong format (%s)",
p);
+ showException(SQL,"sql", "decimal wrong format (%s)
digit expected", p);
return NULL;
}
res *= 10;
@@ -298,7 +298,7 @@
}
if (*s) {
if (*s != '.') {
- showException(SQL,"sql", "decimal wrong format (%s)",
p);
+ showException(SQL,"sql", "decimal wrong format (%s) '.'
expected", p);
return NULL;
}
s++;
@@ -315,7 +315,7 @@
}
}
if (*s) {
- showException(SQL,"sql", "decimal wrong format (%s)", p);
+ showException(SQL,"sql", "decimal wrong format (%s) too many
characters", p);
return NULL;
}
r = c->data;
------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins