You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the default value of a column of type varchar is a numeric string, the default function is passed a numeric value instead of a string when the introspect command is used to generate the schema.
This is caused by casting a string to a number without checking whether the column is of type char.
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.0
What type of
database
are you using?MySQL
Describe the Bug
When the default value of a column of type varchar is a numeric string, the default function is passed a numeric value instead of a string when the introspect command is used to generate the schema.
This is caused by casting a string to a number without checking whether the column is of type char.
Expected behavior
If the column is a char type, the default is also specified as a string.
Patch
The following patch can be applied as a workaround until this issue is resolved.
The text was updated successfully, but these errors were encountered: