We had a bug spliting create trigger statements, see example below. I've implemented the fix inside libsql/sqlite-antlr4-parser repo so both this one and shell can use the same function to do it.
Example of breaking statement split:
CREATE TRIGGER update_updated_at AFTER UPDATE ON users FOR EACH ROW BEGIN
UPDATE users SET updated_at = 0 WHERE id = NEW.id; end;
You can see the PR with the new SplitStatement function here
We had a bug spliting create trigger statements, see example below. I've implemented the fix inside libsql/sqlite-antlr4-parser repo so both this one and shell can use the same function to do it.
Example of breaking statement split:
You can see the PR with the new
SplitStatement
function here