Bug #93824 | "Query did not match any rows in the DB..." when using FLOAT or DOUBLE | ||
---|---|---|---|
Submitted: | 6 Jan 2019 18:13 | Modified: | 30 May 2019 20:42 |
Reporter: | Jonathan Wilbur | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL for Windows: MySQL for Excel | Severity: | S2 (Serious) |
Version: | 1.3.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[6 Jan 2019 18:13]
Jonathan Wilbur
[7 Jan 2019 8:39]
MySQL Verification Team
1
Attachment: 93824_1.png (image/png, text), 63.88 KiB.
[7 Jan 2019 8:39]
MySQL Verification Team
1
Attachment: 93824_1.png (image/png, text), 63.88 KiB.
[7 Jan 2019 8:39]
MySQL Verification Team
2
Attachment: 93824_2.png (image/png, text), 67.09 KiB.
[7 Jan 2019 8:40]
MySQL Verification Team
3
Attachment: 93824_3.png (image/png, text), 33.30 KiB.
[7 Jan 2019 8:41]
MySQL Verification Team
I couldn't repeat following your instructions, any additional info?.
[7 Jan 2019 12:48]
Jonathan Wilbur
Oops! I am sorry, Miguel. I made a mistake in my instructions: the "Use optimistic updates on all Edit Data sessions" option should be CHECKED. I will edit my original instructions to correct this, if possible.
[7 Jan 2019 15:09]
MySQL Verification Team
Thank you for the feedback now verified.
[11 Jan 2019 4:32]
Javier Treviño
Posted by developer: The workaround in the meantime would be to turn off optimistic updates for the Edit Session, that would modify the where clause to just contain the primary key.
[14 Jan 2019 6:24]
Javier Treviño
Added a new global option for Edit Sessions called "Tolerance for FLOAT and DOUBLE comparisons in WHERE clause", which is used along with the "Use optimistic updates on all Edit Data sessions" option. Now WHERE clauses for optimistic updates use something like "´float_or_double_column´ BETWEEN [some_float_or_double_value]-[epsilon_tolerance] AND [some_float_or_double_value]+[epsilon_tolerance]" which allows for a proper row matching in the database.
[30 May 2019 20:42]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL for Excel 1.3.8 release, and here's the changelog entry: A new global option, Tolerance for FLOAT and DOUBLE comparisons in WHERE clause, provides a way to edit data of these types that enables proper row-matching in the database when it is used together with optimistic updates (see Global Options, Edit Sessions Tab). Thank you for the bug report.