[ODBC-57] MS Access + MariaDB connector crashes when running specific query Created: 2016-09-29 Updated: 2016-10-28 Resolved: 2016-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | None |
| Affects Version/s: | 2.0.11, 2.0.12 |
| Fix Version/s: | 3.0.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | IT Particip | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MS Access 2010 + MariaDB connector (Windows 7) + MariaDB 10.1.17 (Debian 8) |
||
| Description |
|
In my company we use a MS Access application with a MariaDB Galera cluster. For the moment we use the MySQL connector, but we would like to migrate to the MariaDB connector at some point. Therefore we are performing some test right now and realised that the development version of our application fails to open one specific window. The changes made in that window, and which definitely are causing the issue (the simple query works), are just a query change from this simple query:
to this query:
When including this last query, the application fails to open the window correctly and crashes. I am aware that this query is somehow weird, but this is quite a special request from our users and access sql is also a bit weird for certain things sometimes. Thanks in advance for having a look to this issue. |
| Comments |
| Comment by IT Particip [ 2016-09-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Just a heads up. With a simplified version of the query, it does not seem to work either:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2016-09-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for your report! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2016-10-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Would it be possible to provide structures of tables in the query? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by IT Particip [ 2016-10-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, of course. There is only one table being used, although referenced a few times. This is the structure:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2016-10-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The fix iand the bugfix have been pushed. The reason was that MS Access adds parenthesis around each SELECT in the UNION statement. And that prevented connector to correctly establish type of query(needed for some optimizations) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by IT Particip [ 2016-10-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Great, thanks! We will keep on testing the connector with the hope of being able to migrate at some point. All the best |