Looks good.
+ def add_sql(sql): + sql = sql.strip() + if sql != '': + assert sql.endswith(';'), "SQL fragment not terminated with ';'"
I'm wondering it if makes sense to add the statement(s)triggering the assert to the error message.
« Back to merge proposal
Looks good.
+ def add_sql(sql):
+ sql = sql.strip()
+ if sql != '':
+ assert sql.endswith(';'), "SQL fragment not terminated with ';'"
I'm wondering it if makes sense to add the statement( s)triggering the assert to the error message.