Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: return syntax error instead of panic for pg splitter (#13878)

rebelice3af3f07ebfea
diff --git a/backend/plugin/parser/pg/split.go b/backend/plugin/parser/pg/split.go
index da8ec288c2..a84007efc3 100644
--- a/backend/plugin/parser/pg/split.go
+++ b/backend/plugin/parser/pg/split.go
@@ -43,7 +43,6 @@ func splitByParser(lexer *parser.PostgreSQLLexer, stream *antlr.CommonTokenStrea
p.AddErrorListener(parserErrorListener)
p.BuildParseTrees = true
- p.SetErrorHandler(antlr.NewBailErrorStrategy())
tree := p.Root()
if lexerErrorListener.Err != nil {