Changeset: 5c8c524c592e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5c8c524c592e
Modified Files:
        sql/backends/monet5/sql_result.c
Branch: nested
Log Message:

properly give error on wrong closing bracket


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -2202,6 +2202,8 @@ FINDsep(char *s, char tsep, char rsep)
                        break;
                }
        }
+       if (!*s)
+               return NULL;
        return s;
 }
 
@@ -2265,7 +2267,7 @@ TUPLEparser(char **S, Column *cols, int 
                        msg = VALUEparser(&s, cols, i, &f->type, ',', ')');
                        i++;
                }
-               if (n->next) {
+               if (!msg && n->next) {
                        skipspace(s);
                        if (!s && *s && s[0] != ',')
                                throw(SQL, "SQLfrom_varchar", SQLSTATE(42000) 
"missing , within composite value");
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to