-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add native JSON type support for MySQL >=5.7.8 #2266
Conversation
* | ||
* @author İsmail BASKIN <ismailbaskin1@gmail.com> | ||
* @link www.doctrine-project.org | ||
* @since 2.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@since 2.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MySQL] Add platform for version >=5.7.8 with native JSON type support
Any progress on this ? |
We need this for barryvdh/laravel-ide-helper#295 Is there anything blocking this merge? If yes I could try to help out. |
+1 |
1 similar comment
+1 |
+1-ing this doesn't change things, folks. If @deeky666 has no time, that's how it is. |
It just adds to an already infinite inbox. Github gave you like buttons exactly to avoid this: use them, please. |
Not sure but I think that registering json type is still required to avoid 'Unknown database type json requested..' exception in some cases like generating migration files. |
A maintainer needs to make a decision here since there's nothing more the community can do to move this along. The so-called BC break is unavoidable if we're ever to use MySQL's native JSON support for Doctrine's Personally I agree with @teohhanhui and @dunglas - no one should be surprised that mapping arbitrary text to a
and
Which clearly imply 1) that you'd be wrong to rely on the type for non-JSON values (empty strings included) and 2) that we positively should be mapping to the native type for >=5.7. IMO it's not worth blocking the project from evolving for the sake of a very weird and marginal (ab)use-case. @beberlei is the only one to mention that this "can be considered a BC break" and even he didn't sound so sure! Does anyone think it's a blocking problem? Edit: I misunderstood the empty string problem - I see now that that's the default field value and supported by Edit 2: Interestingly, the schema tool doesn't pick up any change at all because Comparator::diffColumn() doesn't compare SQL types. So it looks like there's no BC because there's no C 😕 - might need fixing! |
Urgh - this is problematic and I think we'll need some input from @beberlei. I'd propose adding |
any feedback from @beberlei on this? |
+1. Any news? |
Nothing yet. I guess @beberlei isn't active on this project any more. Maybe @deeky666 or @Ocramius could have a look? I think basically the outstanding issue is that we need to make changes to I'm happy to make a PR but it's a bit more work than this one and it'd be nice to think there's a chance of it being merged within six months! |
Well... this has been floating here more then a year now... it would be good to have some kind of resolution... Since the current MySQL version is |
Symfony is ready too for these changes. I agree with @blackfyre, lets merge this pull request. |
So, is there someone working on merging this? Or are there issues to resolve? |
+1 |
I will have a look into this as soon as I get time. There are currently some higher priority issues that have to be resolved first. |
Aye, a lot of input here :D. First decision of the day: Closing this in favour of #2455 because as said before, this is part of the first GA release. Please let's continue discussions there. Thank you all for your input an patience, we will get this baby merged soon! |
Handled in #2653 |
http://dev.mysql.com/doc/refman/5.7/en/json.html