Skip to content

Commit 112028c

Browse files
committed
Fix CreateFulltextCatalogStatementTests parsing
- Convert query.sql from UTF-16 to UTF-8 encoding - Add isStatementTerminator() check to parser loop to properly separate statements without semicolons
1 parent c20a50e commit 112028c

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

parser/parse_statements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8935,7 +8935,7 @@ func (p *Parser) parseCreateFulltextCatalogStatement() (*ast.CreateFullTextCatal
89358935
}
89368936

89378937
// Parse optional clauses
8938-
for p.curTok.Type != TokenEOF && p.curTok.Type != TokenSemicolon && !p.isBatchSeparator() {
8938+
for p.curTok.Type != TokenEOF && p.curTok.Type != TokenSemicolon && !p.isBatchSeparator() && !p.isStatementTerminator() {
89398939
switch strings.ToUpper(p.curTok.Literal) {
89408940
case "ON":
89418941
p.nextToken() // consume ON
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"todo": true}
1+
{}
-291 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)