User: kz      
Date: 06/02/03 09:14:45

Modified:
 /dba/connectivity/source/drivers/odbc/
  OConnection.cxx

Log:
 INTEGRATION: CWS nomysqlversion (1.33.8); FILE MERGED
 2006/02/01 08:38:42 fs 1.33.8.1: #i60273# optional driver setting to prevent 
calls to getVersionColumns

File Changes:

Directory: /dba/connectivity/source/drivers/odbc/
=================================================

File [changed]: OConnection.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/odbc/OConnection.cxx?r1=1.33&r2=1.34
Delta lines:  +4 -0
-------------------
--- OConnection.cxx     16 Jan 2006 15:04:15 -0000      1.33
+++ OConnection.cxx     3 Feb 2006 17:14:43 -0000       1.34
@@ -99,6 +99,7 @@
                                                 ,m_nStatementCount(0)
                                                 
,m_bParameterSubstitution(sal_False)
                                                 
,m_bIgnoreDriverPrivileges(sal_False)
+                         ,m_bPreventGetVersionColumns(sal_False)
 {
        m_pDriver->acquire();
        ModuleContext::AddRef();
@@ -235,6 +236,7 @@
        const char* pCharSet    = "CharSet";
        const char* pParaName   = "ParameterNameSubstitution";
        const char* pPrivName   = "IgnoreDriverPrivileges";
+    const char* pVerColName = "PreventGetVersionColumns";   // #i60273#
        const char* pRetrieving = "IsAutoRetrievingEnabled";
        const char* pRetriStmt  = "AutoRetrievingStatement";
 
@@ -250,6 +252,8 @@
                        pBegin->Value >>= bSilent;
                else if(!pBegin->Name.compareToAscii(pPrivName))
                        pBegin->Value >>= m_bIgnoreDriverPrivileges;
+        else if(!pBegin->Name.compareToAscii(pVerColName))
+            pBegin->Value >>= m_bPreventGetVersionColumns;
                else if(!pBegin->Name.compareToAscii(pParaName))
                        pBegin->Value >>= m_bParameterSubstitution;
                else if(!pBegin->Name.compareToAscii(pRetrieving))




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to