Changeset: 54cad2781cf7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=54cad2781cf7
Modified Files:
        sql/backends/monet5/sql_scenario.c
Branch: default
Log Message:

Don't produce an error message for an empty line if transaction already failed.


diffs (22 lines):

diff --git a/sql/backends/monet5/sql_scenario.c 
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -344,7 +344,7 @@ handle_error(mvc *m, int pstatus, str ms
        } else if( GDKerrbuf && GDKerrbuf[0]){
                new = GDKstrdup(GDKerrbuf);
                GDKerrbuf[0] = 0;
-       }else if( *m->errstr){
+       } else if( *m->errstr){
                new = GDKstrdup(m->errstr);
                m->errstr[0] = 0;
        }
@@ -1058,7 +1058,8 @@ SQLparser(Client c)
                                msg = createException(PARSE, "SQLparser", 
SQLSTATE(42000) "%s", m->errstr);
                        *m->errstr = 0;
                }
-               msg = handle_error(m, pstatus, msg);
+               if (m->sym)
+                       msg = handle_error(m, pstatus, msg);
                sqlcleanup(m, err);
                goto finalize;
        }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to