Add unit test which should not (now) panic
@@ -62,6 +62,7 @@ func Test_Rewrites(t *testing.T) {
`INSERT INTO "names" VALUES (RANDOM(), 'bob', '123-45-678')`, `INSERT INTO "names" VALUES \(-?[0-9]+, 'bob', '123-45-678'\)`,
`SELECT title FROM albums ORDER BY RANDOM()`, `SELECT title FROM albums ORDER BY RANDOM\(\)`,
`SELECT RANDOM()`, `SELECT -?[0-9]+`,
+ `CREATE TABLE tbl (col1 TEXT, ts DATETIME DEFAULT CURRENT_TIMESTAMP)`, `CREATE TABLE tbl \(col1 TEXT, ts DATETIME DEFAULT CURRENT_TIMESTAMP\)`,
}
for i := 0; i < len(testSQLs)-1; i += 2 {
stmts := []*Statement{
