dolthub / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
23 stars 22 forks source link

support `DATE`, `TIME`, and `TIMESTAMP` literal parsing #346

Closed jycor closed 6 months ago

jycor commented 6 months ago

The SQL standard has special syntax for parsing date, time, and timestring literals. https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html

This PR adds support for that. Code was mostly taken from vitessio. The types are still left as string types, as type conversion later on handles it just fine.