-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
Unknown column 'expression' in 'field list' #5091
Comments
Sounds like you are using an old MySQL version, we test with MySQL 8 only. If you are using MySQL 5.7, you should upgrade, it already reached the end of life a few months ago. |
MySQL version: 8.0.2-dmr |
Then try upgrading, not sure what https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-2.html |
Looking at this, you will need MySQL v8.0.13 or newer (that version is also more than 5 years old btw). edit: let's see how common this will be, we could make it conditional, just like we handle support for check constraints |
Thank you. After testing, there are no bugs in MySQL v8.0.13. |
Describe the bug
yarn mikro-orm schema:fresh -r
Error: select table_name as table_name, nullif(table_schema, schema()) as schema_name, index_name as index_name, non_unique as non_unique, column_name as column_name, expression as expression
from information_schema.statistics where table_schema = database()
and table_name in ('book')
order by schema_name, table_name, index_name, seq_in_index - Unknown column 'expression' in 'field list'
Reproduction
no
What driver are you using?
@mikro-orm/mysql
MikroORM version
@mikro-orm/cli@6.0.1
Node.js version
v20.5.1
Operating system
No response
Validations
The text was updated successfully, but these errors were encountered: