Open nelsonic opened 5 years ago
you'll never guess what it was ... 🙄
It had nothing to do with the opening bracket ... 😞
It was a missing ;
(semicolon) at the end of the CREATE
statement ...!! 😠
Anyway, I would never have spotted it without pgsanity
as all other SQL UI/CLI/tools were just spitting out the same useless error!
Hey Nelson. Glad to hear that pgsanity helped you out. Thanks for the shout out. 😀
While trying to hand-write an SQL for this tutorial, I had a cryptic error: https://travis-ci.com/dwyl/learn-postgresql/builds/106420820#L508
{ error: syntax error at or near "("
In a file with 60 lines and thirty opening parentheses
"("
This error message is about as helpful as sunscreen on a submarine ...
So I went hunting for a syntax checker and found: https://github.com/markdrago/pgsanity
So at least I know what line the error is on.