logoalt Hacker News

3eb7988a1663today at 3:32 PM2 repliesview on HN

Can someone explain to me why SQL error messages are so bad? I routinely have some monster query where the message is effectively, "Illegal syntax somewhere, dufus".


Replies

bawolfftoday at 3:49 PM

I'd guess people just haven't put much effort into it. Lots of programming language compilers have absolutely terrible error messages. In SQL its usually just one line, so "somewhere" isn't that big a place.

klysmtoday at 3:34 PM

This sounds like a proper of the parser, rather than of the language

show 2 replies