-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
MariaDB 10.2.x bug with symfony (solved) #7258
Comments
I believe it's a config issue... two questions:
doctrine:
dbal:
driver: 'pdo_mysql'
server_version: '10.2.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci see also https://github.com/belgattitude/dbal-test/blob/doctrine2/6790/config/packages/doctrine.yaml#L12
|
Note also, that you seems to not be the only one... But unfortunately I could not reproduce, see the thread here: I've also made a testcase: see the repo here: https://github.com/belgattitude/dbal-test/tree/doctrine2/6790 Feel free to dig more. I don't say there's no bug but could not reproduce yet... |
@belgattitude So thank you very much for your help. Maybe the server_version shouldn't be there by default as it confuses a lot with this error. |
Yes if you want to set up the
Few questions:
When I made to P/R to support mariadb, there was no clear consensus: do we set 10.2.7 as version or 10.2 ?. We chose 10.2.7... and it's not intuitive at all. I really regret afterwards.
Then feel free to close the bug whenever you're sure it's working. |
|
Great... at least we know where to debug... I saw those issues too doctrine/dbal#3110 Look the correct answer is :
Anyway thanks for reporting and testing... |
@belgattitude |
Hi, I still have the problem with
However, no problem anymore for other field types. Thanks, |
Same problem with
and
keeps showing up, but all other NULL fields are correctly managed. |
Managed to solve by fixing the Moreover, when the config parameter |
Bug Report
Summary
According to this issue: issue 6565 the bug exists in MariaDB 10.2.14 and 10.2.15
Current behavior
Concretely, for Doctrine, schema update just gone crazy and want to update every column with NULL default because 'NULL' is return by MariaDB instead of NULL.
How to reproduce
Set a 'DEFAULT NULL' statement in a entities column definition.
doctrine:schema:update --dump-sql shows the queries to execute
doctrine:schema:update --force execute the queries
run doctrine:schema:update --dump-sql again -> all queries with DEFAULT NULL will show up although they where already executed
Expected behavior
Don't show the queries again.
The text was updated successfully, but these errors were encountered: