Closed kefniark closed 2 months ago
Right now when the parser fail with an unknown syntax, the error is really minimal, which to debug on a mid/big size schema is near impossible. Is there a way to get more information out of this error like the line number ?
stmts, err := parser.Parse(sql) if err != nil { return err }
Error: at or near "(": syntax error
My bad, I was just dumb on that one. The info is there, the error was just wrap few level deeper
fmt.Printf("schema parsing error: %+v\n", err)
Description
Right now when the parser fail with an unknown syntax, the error is really minimal, which to debug on a mid/big size schema is near impossible. Is there a way to get more information out of this error like the line number ?