Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL add column for char is not enclosing default value in quotes when using #3637

Closed
cnizzardini opened this issue Jun 14, 2018 · 1 comment

Comments

@cnizzardini
Copy link

MySQL add column for char is not enclosing default value in quotes when using UI.

Generates:

ALTER TABLE crs_admin2.organization ADD currency char(3) DEFAULT USD NOT NULL;

instead of

ALTER TABLE crs_admin2.organization ADD currency char(3) DEFAULT 'USD' NOT NULL;

Version: 5.7.22-0ubuntu18.04.1
DBeaver Version: 5.0.4

@serge-rider
Copy link
Member

Quotation of default values was removed in #108
This seems to be more consistent approach (as you can use expressions in default values). You should specify default value in quotes if you need just string literal.

@tati-kru tati-kru closed this as completed Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants