core/tests/components/recorder/auto_repairs
J. Nick Koston 1a82b353e0
Auto repair incorrect collation on MySQL schema (#92270)
* Auto repair incorrect collation on MySQL schema

As we do more union queries in 2023.5.x if there is a mismatch
between collations on tables, they will fail with an error
that is hard for the user to figure out how to fix

`Error executing query: (MySQLdb.OperationalError) (1271, "Illegal mix of collations for operation UNION")`

This was reported in the #beta channel and by PM from others
so the problem is not isolated to a single user

https://discord.com/channels/330944238910963714/427516175237382144/1100908739910963272

* test with ascii since older maraidb versions may not work otherwise

* Revert "test with ascii since older maraidb versions may not work otherwise"

This reverts commit 787fda1aefcd8418a28a8a8f430e7e7232218ef8.t

* older version need to check collation_server because the collation is not reflected if its the default
2023-04-29 21:17:09 -04:00
..
events Auto repair incorrect collation on MySQL schema (#92270) 2023-04-29 21:17:09 -04:00
states Auto repair incorrect collation on MySQL schema (#92270) 2023-04-29 21:17:09 -04:00
statistics Auto repair incorrect collation on MySQL schema (#92270) 2023-04-29 21:17:09 -04:00
__init__.py
test_schema.py Auto repair incorrect collation on MySQL schema (#92270) 2023-04-29 21:17:09 -04:00