-
-
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
MySql TEXT and BLOB type declarations #227
Conversation
This should be 65535 (2 ^ 16 - 1) in stead of 65532. Modified docblock to show the max lengths.
Choose between TINYBLOB, BLOB, MEDIUMBLOB and LONGBLOB based on the length of the field. Behaves the same way as the TEXT type declaration.
Conflicts: tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
Hello, thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link: |
@@ -9,6 +9,8 @@ | |||
use Doctrine\DBAL\Schema\Schema; | |||
use Doctrine\DBAL\Schema\Index; | |||
|
|||
require_once __DIR__ . '/../../TestInit.php'; |
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.
This should be removed. It is not needed
Can you replace all those magic numbers with contstants please? |
I rebased and merged this branch here: Thanks! |
Thanx for updating the code for me! PS: I would have gone with constants like |
Changes Unknown when pulling 39bc14a on jaspernbrouwer:master into * on doctrine:master*. |
Fixed maximum length of MySql TEXT type declaration, this should be 65535 (2 ^ 16 - 1) in stead of 65532.
Added support for TINYBLOB, BLOB, MEDIUMBLOB and LONGBLOB based on the length of the field, the same way as the clob type declarations are determined.
Added tests to prevent regression.