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 GH #3931. A text type column with limit is returned incorrect data type on mysql. #4382

Closed
wants to merge 1 commit into from

Conversation

kennyj
Copy link
Contributor

@kennyj kennyj commented Jan 7, 2012

This PR fixed GH #3931.

If you execute the following migration, foo column becomes mediumtext, and bar column becomes longtext.

  t.column :foo, :limit => 0x555555 (5592405)
  t.column :bar, :limit => 0x555556 (5592406)

But mediumtext's limit on mysql is 0xffffff (16777215).

Please see http://dev.mysql.com/doc/refman/5.5/en/storage-requirements.html

Please see also #3931.

@kennyj
Copy link
Contributor Author

kennyj commented Jan 8, 2012

oops... An exception message was wrong, I fixed it.

@kennyj
Copy link
Contributor Author

kennyj commented Jan 25, 2012

Hi, Anyone? Please comment on this PR.
I think this PR fixed #3931.

@kennyj
Copy link
Contributor Author

kennyj commented Feb 25, 2012

I'll try again, because I realized mysql side behavior.

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

1 participant