Bug #105728 Parameter name overrides query attributes
| Submitted: | 27 Nov 2021 21:19 | Modified: | 23 Aug 2022 15:07 |
|---|---|---|---|
| Reporter: | Bradley Grainger (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / NET | Severity: | S2 (Serious) |
| Version: | 8.0.30 | OS: | Windows (10) |
| Assigned to: | CPU Architecture: | Any |
[27 Nov 2021 21:19]
Bradley Grainger
[30 Nov 2021 9:55]
MySQL Verification Team
Hello Bradley Grainger, Thank you for the bug report. Verified as described. Regards, Ashwini Patil
[10 Aug 2022 21:19]
Daniel Valdez
This is no longer a bug. Please use our latest release, Connector/NET 8.0.30.
[12 Aug 2022 2:56]
Bradley Grainger
It's fixed if you don't prepare the command, but still broken if you uncomment 'cmd.Prepare();' from my example repro code.
[23 Aug 2022 15:07]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.31 release, and here's the proposed changelog entry from the documentation team: When a query attribute and a command parameter have the exact same name, Connector/NET overwrites the value of the attribute with the value from the parameter, which then prevents using mysql_query_attribute_string to retrieve an accurate value for the attribute. Connector/NET now removes all parameter names when sending a prepared statement. Thank you for the bug report.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.