A TRIGGER statement contains multiple semi-colons, so this will result in check50 returning the error:
:( private.sql runs without error
Error when executing statements: incomplete input
Because it finds the ';' at the end of the inner statement, and then "END;" is missing from the query
Possible solutions:
1) Temporarily warn students that TRIGGERS can't be used in the solution
2) Before running the queries, loop over them and find any query including the words "TRIGGER" and "BEGIN", then merge it with subsequent elements of the queries list until the element with "END;" is found.
In private/init.py, the run_statements function parses the private.sql file with the rollowing regular expression:
A TRIGGER statement contains multiple semi-colons, so this will result in check50 returning the error:
Because it finds the ';' at the end of the inner statement, and then "END;" is missing from the query
Possible solutions: 1) Temporarily warn students that TRIGGERS can't be used in the solution 2) Before running the queries, loop over them and find any query including the words "TRIGGER" and "BEGIN", then merge it with subsequent elements of the queries list until the element with "END;" is found.