mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
- Suppress eventual prompting when connecting to an ODBC source
modified: storage/connect/odbconn.cpp
This commit is contained in:
parent
54d4589dde
commit
e694ac4193
1 changed files with 3 additions and 3 deletions
|
@ -1123,10 +1123,10 @@ bool ODBConn::Connect(DWORD Options)
|
||||||
PGLOBAL& g = m_G;
|
PGLOBAL& g = m_G;
|
||||||
PDBUSER dup = PlgGetUser(g);
|
PDBUSER dup = PlgGetUser(g);
|
||||||
|
|
||||||
if (Options & noOdbcDialog || dup->Remote)
|
//if (Options & noOdbcDialog || dup->Remote)
|
||||||
wConnectOption = SQL_DRIVER_NOPROMPT;
|
wConnectOption = SQL_DRIVER_NOPROMPT;
|
||||||
else if (Options & forceOdbcDialog)
|
//else if (Options & forceOdbcDialog)
|
||||||
wConnectOption = SQL_DRIVER_PROMPT;
|
// wConnectOption = SQL_DRIVER_PROMPT;
|
||||||
|
|
||||||
rc = SQLDriverConnect(m_hdbc, hWnd, (PUCHAR)m_Connect,
|
rc = SQLDriverConnect(m_hdbc, hWnd, (PUCHAR)m_Connect,
|
||||||
SQL_NTS, ConnOut, MAX_CONNECT_LEN,
|
SQL_NTS, ConnOut, MAX_CONNECT_LEN,
|
||||||
|
|
Loading…
Reference in a new issue