-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Implement the column collation for Mysql #2551
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
Conversation
@mikeSimonson should this fix (since it fixes #2538, if I understand it correctly) come with a test case then? |
@Ocramius Do you mean that the test should be removed or that it needs a higher level test case ? |
@mikeSimonson higher level test case reflecting #2538 |
@Ocramius What is the right approach here for the test ? |
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.
One last change probably needed: verifying that the comparator will pick up the collation (unless that is already covered)
/** | ||
* https://github.com/doctrine/dbal/issues/2538 | ||
*/ | ||
public function testFixGithub2538_autoincrement() |
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 test seems unrelated to the changes, or am I missing something?
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.
Please use a method name describing the issue being covered. Also, use @group #2538
for labeling it
{ | ||
$this->markTestSkipped(); | ||
|
||
$tableName = "public.foo"; |
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.
Single quotes
/** | ||
* https://github.com/doctrine/dbal/issues/2538 | ||
*/ | ||
public function testFixGithub2538Collation() |
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.
Please use a method name describing the issue being covered. Also, use @group #2538
for labeling it
@@ -1429,4 +1429,18 @@ public function getGeneratesFloatDeclarationSQL() | |||
array(array('precision' => 8, 'scale' => 2), 'DOUBLE PRECISION'), | |||
); | |||
} | |||
|
|||
public function testFixGithub2538Collation() |
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.
Please use a method name describing the issue being covered. Also, use @group #2538
for labeling it
What is the progress with this one? And maybe there should be column charset implemented as well? |
I don't see the point of this PR. Column collations are working in mysql already in general.
The requested change seems useless. MysqlPlatform already implements
and the rest is handled by the default implementation of AbstractPlatform. There are two bugs with column collations:
|
Tests seem to say otherwise, but feel free to provide more tests or comment on the ones provided in this PR. |
Related to #2538