top | item 30716971

(no title)

ncake | 4 years ago

This.

"you've got a syntax error at around here: [the entire query]. go consult the manual or something idk"

discuss

order

gleenn|4 years ago

I feel like this is MySQL's model very well. A long time ago they traded some strictness for speed, because the average MySQL user was doing some basic CRUD apps and it never mattered. But adding useful checks and good messages everywhere requires a fair amount of engineer effort and probably costs more processing than whatever performance benchmark they are probably optimizing for.

hackernewds|4 years ago

It shouldn't be tough to tell you "a comma is missing in this line". currently you get another absurd not only vague, but incorrect error codes.

willcipriano|4 years ago

I like Datagrip for writing SQL for this purpose.

lovingCranberry|4 years ago

I've used to write my queries in pgAdmin or VSCode.

I downloaded DataGrip after reading your comment, and damn, the autocomplete is just so good. It even shows me the arguments of Postgresql extensions like TimescaleDB.

This almost reads like an ad, but I just wanted to thank you for changing my life :P