diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2015-02-01 12:16:30 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2015-02-01 12:16:30 +0100 |
commit | 6a7837199133e35e5fe79182a78bff4c06b2b00b (patch) | |
tree | eff54f1c2f936c0827db83e25d9adc8ab8ca9ffa /storage/connect/odbconn.cpp | |
parent | 180b2be63ca8d2a17a427b1b5f27bc3a35924242 (diff) | |
download | mariadb-git-6a7837199133e35e5fe79182a78bff4c06b2b00b.tar.gz |
- Fix a bug causing UseCnc not being initialized for ODBC catalog tables.
This made errors by calling SQLConnect or SQLDriverConnect randomly
with incorrect parameters.
modified:
storage/connect/tabodbc.cpp
- Removing GCC warnings
modified:
storage/connect/ha_connect.cc
- Typo
modified:
storage/connect/odbconn.cpp
Diffstat (limited to 'storage/connect/odbconn.cpp')
-rw-r--r-- | storage/connect/odbconn.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/storage/connect/odbconn.cpp b/storage/connect/odbconn.cpp index c767a11d28c..c11f2a6892f 100644 --- a/storage/connect/odbconn.cpp +++ b/storage/connect/odbconn.cpp @@ -929,6 +929,7 @@ ODBConn::ODBConn(PGLOBAL g, TDBODBC *tdbp) m_Scrollable = (tdbp) ? tdbp->Scrollable : false; m_First = true; m_Full = false; + m_UseCnc = false; m_IDQuoteChar[0] = '"'; m_IDQuoteChar[1] = 0; //*m_ErrMsg = '\0'; @@ -1082,14 +1083,6 @@ int ODBConn::Open(PSZ ConnectString, POPARM sop, DWORD options) AllocConnect(options); /*ver = GetStringInfo(SQL_ODBC_VER);*/ -#if 0 - // Connect using SQLDriverConnect - if (DriverConnect(options)) { - strcpy(g->Message, MSG(CONNECT_CANCEL)); - return 0; - } // endif -#endif // 0 - if (!m_UseCnc) { if (DriverConnect(options)) { strcpy(g->Message, MSG(CONNECT_CANCEL)); |