data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

[Bug]: Incorrect parsing of default values - MySql

Open ayush3797 opened this issue 2 years ago • 1 comments

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.

image

ayush3797 avatar Sep 09 '23 09:09 ayush3797

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.

seantleonard avatar May 07 '24 18:05 seantleonard