Commit e694ac41 authored by Olivier Bertrand's avatar Olivier Bertrand

- Suppress eventual prompting when connecting to an ODBC source

modified:
  storage/connect/odbconn.cpp
parent 54d4589d
...@@ -1123,10 +1123,10 @@ bool ODBConn::Connect(DWORD Options) ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment