dolthub / go-mysql-server

A MySQL-compatible relational database with a storage agnostic query engine. Implemented in pure Go.
Apache License 2.0
2.32k stars 199 forks source link

fix output type for `DateAdd()` and `DateSub()` functions #2609

Closed jycor closed 1 month ago

jycor commented 1 month ago

The output of DateAdd(), AddDate(), DateSub(), and SubDate(), changes if the input is a properly formatted string vs a date/datetime/time/timestamp.

fixes: https://github.com/dolthub/dolt/issues/7304