[ODBC-329] Wrong Result from SQLTables Created: 2021-07-20 Updated: 2022-02-14 Resolved: 2022-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Urban Oettli | Assignee: | Lawrin Novitsky |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
5.10.49-gentoo-r1 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Connecting a Database using SQLDriverConnect and then issue a SQLTables produses a wrong list. Connected as user root without DB Password. Statement: |
| Comments |
| Comment by Urban Oettli [ 2022-02-10 ] |
|
It is frustrating when a clearly comprehensible error is not processed for months. In my case, I use a self-patched version, which fixes the bug. |
| Comment by Lawrin Novitsky [ 2022-02-10 ] |
|
Sorry for not reacting. Your report is in fact a duplicate. Please see I can understand your frustration, but if you searched thru the jira tickets prior to report the issue, you could avoid this frustration in this particular case. |
| Comment by Lawrin Novitsky [ 2022-02-10 ] |
|
Now I will close it as a duplicate. Sorry once again, I should have done that much earlier |
| Comment by Urban Oettli [ 2022-02-10 ] |
|
Thank for the Answer. If i filter the Catalogname i get the correct Result using mariadb-connector-odbc-3.1.13 There must be incomaptibilty between the current V3.13 and V3.1.6. |
| Comment by Lawrin Novitsky [ 2022-02-10 ] |
|
Hmm.... the change(treating NULL as "any") was introduced with |
| Comment by Urban Oettli [ 2022-02-10 ] |
|
I think you are right. After that the patching was to complicated. |
| Comment by Lawrin Novitsky [ 2022-02-13 ] |
|
You've started me thinking. Since this behavior is changed back and forth from version to version, it's probably better to make it optional, and leave current behavior default in current(3.1) series, and new/old one to be default in the next(3.2) series. I'll continue in |
| Comment by Urban Oettli [ 2022-02-14 ] |
|
It would be helpful if the behavior of SQLTables didn't change from version to version. I have adapted my own Rexx interpreter so that the catalog name parameter is never NULL in the SQLTables call. Rc=SQLTables(hstmt, // Get all table names I hope that this change will continue to deliver the right result in the future. |
| Comment by Lawrin Novitsky [ 2022-02-14 ] |
|
Yeah, (frequent)changing is not a good thing, but seems like most people expect MS behavior, i.e. NULL means current. Making the behavior optional is good solution is such case. |
| Comment by Urban Oettli [ 2022-02-14 ] |
|
I totally agree with you hat API calls shouldn't return different results with each new version. M$ has always struggled with specs. This has been known for years. I work on Linux and API's are rock solid normally. Maybe it's possible to add a test to see if odbc has opened a MsAccess DB. |