[ODBC-244] Microsoft Excel 365 ODBC Navigator can't find tables Created: 2019-04-18 Updated: 2021-07-01 Resolved: 2019-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.0.8 |
| Fix Version/s: | 3.0.9, 3.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Lawrin Novitsky |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I'm using Microsoft Excel 365 version 1903 on Windows 10. When I try to import a table into an Excel spreadsheet with MariaDB Connector/ODBC 3.0.8, Excel can't actually seem to find any tables. When I look at the general query log on the backend server, The ODBC connector seems to be executing the following query:
It makes sense that Microsoft Excel can't find the tables because TABLE_NAME seems to be NULL in the output of this query. It is strange that MariaDB Connector/ODBC is querying information_schema.SCHEMATA if Microsoft Excel wants the names of available tables. It should probably query information_schema.TABLES instead. I enabled Tracing in Windows ODBC Data Source Administrator to see what function Microsoft Excel is calling, and it seems to be calling SQLTablesW:
Which seems to be a variant of SQLTables: https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqltables-function?view=sql-server-2017 This function seems to be defined here: https://github.com/MariaDB/mariadb-connector-odbc/blob/3.0.8/odbc_3_api.c#L3164 And it looks like it might indirectly call this function: https://github.com/MariaDB/mariadb-connector-odbc/blob/3.0.8/ma_statement.c#L3332 It looks like the bug might be here: https://github.com/MariaDB/mariadb-connector-odbc/blob/3.0.8/ma_statement.c#L3368 Shouldn't this actually be the following?:
|
| Comments |
| Comment by Lawrin Novitsky [ 2019-04-22 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
This is duplicate of | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-04-22 ] | ||||||||||||||||||||||||||||||||||||||||||||||
It looks like my trace also has both calls:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2019-04-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Geoff, just for future - it is always better to provide full trace. Well, if it is huge, then only related part. And this is first thing to ask. Not for this issue though - I already have it in 225. And thanks - I going to verify it now, but it looks like the bug in the code is really in that row. |