Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.0.6
-
Fix Version/s: 10.0.7
-
Component/s: None
-
Labels:None
Description
If a user erroneously doesn't specify a DSN name in the connection string, e.g. like this:
drop table if exists t1;
create table t1 engine=connect table_type=odbc connection='' catfunc=Tables;
select * from t1;
It crashes with the following stack trace:
#0 0x00000037cbc4fb06 in _getUIPluginName () from /lib64/libodbc.so.2 #1 0x00000037cbc52c00 in _SQLDriverConnectPrompt () from /lib64/libodbc.so.2 #2 0x00000037cbc14523 in SQLDriverConnect () from /lib64/libodbc.so.2 #3 0x0000000000d1c11c in ODBConn::Connect (this=0x7fffaf000458, Options=2) at /home/bar/maria-bzr/maria-10.0-connect/storage/connect/odbconn.cpp:1133 #4 0x0000000000d1bdd6 in ODBConn::Open (this=0x7fffaf000458, ConnectString=0x7fffaf000380 "", options=2) at /home/bar/maria-bzr/maria-10.0-connect/storage/connect/odbconn.cpp:1023 #5 0x0000000000d1b253 in ODBCTables (g=0x7fffb4507000, dsn=0x7fffaf000380 "", tabpat=0x0, info=false) at /home/bar/maria-bzr/maria-10.0-connect/storage/connect/odbconn.cpp:557 ...
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Fix problem was fixed by Olivier in 10.0-connect.
revno: 3918
message: Suppress eventual prompting when connecting to an ODBC source
Tests added in:
revno:3919
message: Adding basic ODBC tests that do not need a DSN