data-api-builder
data-api-builder copied to clipboard
[Bug]: Incorrect parsing of default values - MySql
The default values are incorrectly parsed for MySql. Eg. in the below screenshot, last_sold_on is a datetime column and the default value should have been present within single quotes. Need to parse default values based on their datatype maybe.
Maybe related to #2079 because that issue highlights how GraphQL schema creation is not handling database originating default values correctly. This includes strings, int/float/double, and built in functions.