sql: weird error message for negative date #35255
Labels
C-cleanup
Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.
O-sqlsmith
This is admittedly nonsensical, but the error message could use some work. I don't understand where the 45 comes from, for instance.
Here's what Postgres says:
Here's the stack trace of where the error came from in case it's useful:
@bobvawter would you mind taking a quick look at this since I know you worked a bunch of date parsing? I think it would be nice if we could follow Postgres's rule for generating that "out of range" error, but if that's a lot of work maybe it doesn't really matter.
The text was updated successfully, but these errors were encountered: