-
Notifications
You must be signed in to change notification settings - Fork 442
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
Python app works with 11.4, fails with 11.5 #604
Comments
There's a default collation change in https://mariadb.com/kb/en/mariadb-11-5-1-release-notes/. Exact error message would be useful. Confirming its 11.4.3 that is ok? |
Thanks for pointing that out. The error itself, a Python KeyError triggered deep within oursql, is not very helpful 🙄
There are only a few differences of
I tried setting and changing various charset settings and nothing makes a difference 🥲 I'm happy to take any suggestions you may have, but realize this is not an image related issue and have no problem laying the blame on oursql 😁 |
oursql:
So an error on Current implementation https://mariadb.com/kb/en/mysql_set_character_set/ accepts utf8mb4 however that may not the the case for you. The lack of backtrace means I can't see where this is coming from. Work out how to change it where it occurs. A change in the code that hack utf8mb4 back to urf8 might be one option, or identify the source where utf8mb4 comes into the codebase. |
Expanding on your observation, I see that the When I call The good news is, if I set Not only that, but 11.5 also reports utf8mb3 for variables it used to report as utf8mb4. I sanity check a few other variables after I connect...
The only references to utf8mb3 in My app sets everything to utf8mb4 from top to bottom, tables and all. These are the settings I set explicitly.
Lastly, I notice the official Python 2.7 image is based on Debian 10 which includes MariaDB 10.3 client libraries (but not the client intself.) Could there be some incompatibility between the 10.3 client libraries interacting with an 11.5 server? |
Sorry, lost track of this.
No idea. I doubt its actively tested. |
Thanks for the help! I'm happy to say it's been running fine since I last posted. I'll close this issue and get to work porting our codebase to PY3 😁 |
Glad to hear it.
Or just wait until python 4 😺 (joke, really, py3 is a good move). |
I have a Python app that worked fine with Docker images 10.x through 11.4 but after it upgraded to 11.5 today, it started failing. (The error message mentions ut8mb4 so I suspect a charset issue.) I don't see anything in the Release Notes that jumps out at me as a potential cause. I tried 11.6-rc image and it fails too.
As background, it's a 10 year old codebase written in Python 2.7 and uses oursql which hasn't been updated since 2012. The app has worked with every version of MariaDB since 2014 until today 😕
Not the end of the world if I'm now stuck on 11.4, but maybe there's a release issue at play?
The text was updated successfully, but these errors were encountered: