Files
sqlite/test/cliparse.sql
drh f565c8efc4 Fix various minor problems in the CLI.
[bugs:/info/2026-10-24T04:43:44Z|Bug 2026-10-24T04:43:44Z]

FossilOrigin-Name: a7fd475c0d34d84232e721c724ccbc07729f594ab20aba9eb0631cf76a09ce23
2026-10-24 16:49:09 +00:00

44 lines
932 B
SQL

.testcase 100
/* Unterminated SQL comment */
SELECT 1; -- hi
/* SQL comment terminted by ; */
SELECT 2; -- hi ;
/* A C-style commend across multiple lines */
SELECT 3; /* hi
and more
and more */
/* SQL text keeps growing */
SELECT 4
; SELECT 5
; SELECT 6
; SELECT 7;
/* CREATE TRIGGER */
CREATE TRIGGER xyz
SELECT 8;
SELECT 9;
-- END;
END;
.check <<END
1 line: SELECT 1; -- hi
1 line: SELECT 2; -- hi ;
3 lines: SELECT 3; /* hi\nand more\nand more */
4 lines: SELECT 4\n; SELECT 5 ... SELECT 6\n; SELECT 7;
5 lines: CREATE TRIGGER xyz\n ... CT 9;\n -- END;\nEND;
END
/* No " ... " for statements that fit in prefix+suffix.
** https://sqlite.org/bugs/info/23d77b5d47908a41 */
.testcase 110
SELECT 1;
SELECT 12345678901234567890123456789012;
SELECT 123456789012345678901234567890123;
.check <<END
1 line: SELECT 1;
1 line: SELECT 12345678901234567890123456789012;
1 line: SELECT 1234567890123 ... 5678901234567890123;
END