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

Fix mysql decimal and enum default sql #4650

Closed
wants to merge 1 commit into from

Conversation

mikenz
Copy link
Contributor

@mikenz mikenz commented Oct 5, 2015

decimal has and extra space before 'default' and wasn't quoted.
enum was quoting digit only defaults unnecessarily . Both were causing 'changes' in /dev/build that weren't doing anything.

decimal has and extra space before 'default' and enum was quoting digit only default. Both were causing 'changes' in /dev/build that weren't doing anything.
@tractorcow
Copy link
Contributor

Nice fix, but I'm surprised by the way that enum is treating numeric values. Is this because MySQLSchemaManager::fieldList is returning unquoted defaults for numeric values?

Please include the php you are using to generate this enum so I can test it locally.

I am extremely hesitant to admit that sometimes it's safe to not quote a sql string. :)

@sminnee
Copy link
Member

sminnee commented Apr 19, 2016

@mikenz @tractorcow are we able to nudge this one along?

@mikenz
Copy link
Contributor Author

mikenz commented Apr 20, 2016

Fixed for me, likely in #4731

@mikenz mikenz closed this Apr 20, 2016
@tractorcow
Copy link
Contributor

Sorry I didn't get to this in time. :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants