[MDEV-18491] Engine Connect returns an error when we try to fetch data from MSSQL server Created: 2019-02-06 Updated: 2019-02-13 Resolved: 2019-02-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.1.37 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ziad Fawzi | Assignee: | Olivier Bertrand |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
We have the following installed components on CentOS Linux release 7.5.1804 , x86_64 machine: |
||
| Description |
|
We are trying to connect to a remote MSSQL test DB (DSN=ODBC01) & a second MSSQL production DB (DSN=ODBC02) with SSL enabled. odbc.ini content:
To check connectivity we used unixODBC isql command. Both commands worked fine:
In mysql we created two tables:
The first query worked fine,
but the second one didn't work:
We appreciate your kind support. |
| Comments |
| Comment by Olivier Bertrand [ 2019-02-06 ] | ||||
|
Here CONNECT is reporting an error occuring in the data source. Difficult to see whether it comes from CONNECT or from the data source. Because the two tables and executed statements are very similar, l don't see how CONNECT could be doing wrong on one call and not on the other. Could you just run this after having done:
To see what command CONNECT sends to the data source? | ||||
| Comment by Ziad Fawzi [ 2019-02-07 ] | ||||
|
Thanks Olivier. I enabled the trace and ran the following two queries: select count(*) from tb2; select * from tb2 where c1=1;
1 row in set (1.48 sec) Here is the log: Query=SELECT c1, c2 FROM table2 P.S I added a second column to table2 just for test. | ||||
| Comment by Ziad Fawzi [ 2019-02-13 ] | ||||
|
Hi, I just upgraded my DB to 10.4.2 and the issue is gone. Thanks |