Skip to content

Commit 55a4131

Browse files
committed
allow multiple ;
1 parent 4073229 commit 55a4131

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sql/parser/druidsql.pegjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ SqlColumnDeclaration = column:RefName postColumn:_ columnType:SqlType
9797

9898
// ------------------------------
9999

100-
SqlQueryWithPossibleContext = statements:(SqlSetStatement _)* query:SqlQuery
100+
SqlQueryWithPossibleContext = statements:(SqlSetStatement _sc)* query:SqlQuery
101101
{
102102
if (!statements.length) return query;
103103
return query

src/sql/sql-query/sql-query.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ describe('SqlQuery', () => {
138138
GROUP BY 1, 2, 3
139139
`,
140140
sane`
141-
SET a = 1;
142-
set B = 'lol';
141+
SET a = 1; ;;
142+
set B = 'lol'; ; ;
143143
SELECT 1 + 1
144144
`,
145145
];

0 commit comments

Comments
 (0)