Open t184256 opened 4 months ago
Thanks for report! Could you make a PR?
I don't know what the default should be.
Hm, I've checked aiomysql (https://github.com/aio-libs/aiomysql/blob/83aa96e12b1b3f2bd373f60a9c585b6e73f40f52/aiomysql/connection.py#L218) and it uses ""
as a default. I've tried setting it to "" and it seems to solve it for me. I don't see how "" could be worse than an absence of the attribute, so I'll file a PR.
Cannot use asyncmy to connect to a specific server, while aiomysql works.
Code inspection suggests that
_request_authentication
uses_auth_plugin_name
unconditionally: https://github.com/long2ice/asyncmy/blob/044a4b0dee6dde6c7b828e11fd5a92bca4b75c52/asyncmy/connection.pyx#L787... while it's only set if a certain condition is met: https://github.com/long2ice/asyncmy/blob/044a4b0dee6dde6c7b828e11fd5a92bca4b75c52/asyncmy/connection.pyx#L1013
Should it have some default pre-set?
Version: python3-asyncmy-0.2.9-1.fc39.x86_64 Server reports itself as MariaDB,
Server version: 5.1.73-log Source distribution
.