-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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.5] Fail to get row value by column name #1530
Comments
That's interesting cause the names are clearly included in the column info there, they just haven't been extracted to the map for some reason. |
I've figured out so far that the problem is that the To save on allocations, we use this response to populate the As a workaround, we can check if this map is empty when decoding the |
This also means that until it is fixed in MariaDB, the |
Opened a ticket against MariaDB: https://jira.mariadb.org/browse/MDEV-27013 |
Thanks!! @abonander |
This also appears to be an issue when calling stored procedures. The procedure returns three columns that can be accessed via index but not by name. In a similar way to @billy1624, the MySqlRow that is returned does have the names in the MySqlColumns. If it's relevant, the procedure definition doesn't use |
The issue seems stale. Is there any way the community of SQLX can pressure MariaDB folks? Where can I voice that the issue is important for me?
What about this possible workaround @abonander ? |
That won't fix the |
Problem
I'm using
sqlx
version 0.5.9 with MariaDB 10.5 to test the support ofRETURNING
syntax on SQLx. Found something unusual... I can get value with column index (row.get::<i32, _>(0)
), but not column name (row.get::<i32, _>("id")
).Is this the intended behaviour or it's a bug? Thanks!!
Source Code
Full Log
The text was updated successfully, but these errors were encountered: