diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-17 06:23:55 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-17 06:23:55 +0000 |
commit | a12d67ed7da2f06b1aa6aa51f227c3e998f55b0e (patch) | |
tree | 28f50e16401b8c5820846692d8d7ede8faa93fe7 /connectivity/source/inc | |
parent | 48f8ae97c69f91fbf86cfd1b40c56174fb547ac7 (diff) |
#89575# check if user is the connected one when not connect and change pwd
Diffstat (limited to 'connectivity/source/inc')
-rw-r--r-- | connectivity/source/inc/odbc/OConnection.hxx | 11 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/ODatabaseMetaData.hxx | 8 |
2 files changed, 13 insertions, 6 deletions
diff --git a/connectivity/source/inc/odbc/OConnection.hxx b/connectivity/source/inc/odbc/OConnection.hxx index 110f6451cb34..61a98dda6327 100644 --- a/connectivity/source/inc/odbc/OConnection.hxx +++ b/connectivity/source/inc/odbc/OConnection.hxx @@ -2,9 +2,9 @@ * * $RCSfile: OConnection.hxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: oj $ $Date: 2001-05-21 14:30:34 $ + * last change: $Author: oj $ $Date: 2001-07-17 07:23:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -182,9 +182,12 @@ namespace connectivity SQLHANDLE getConnection() { return m_aConnectionHandle; } // should we use the catalog on filebased databases - sal_Bool isCatalogUsed() const { return m_bUseCatalog; } + sal_Bool isCatalogUsed() const { return m_bUseCatalog; } ::rtl::OUString getUserName() const { return m_sUser; } - sal_Bool useOldDateFormat() const { return m_bUseOldDateFormat; } + sal_Bool useOldDateFormat() const { return m_bUseOldDateFormat; } + + SQLHANDLE getDriverHandle() const { return m_pDriverHandleCopy;} + ODBCDriver* getDriver() const { return m_pDriver;} }; } } diff --git a/connectivity/source/inc/odbc/ODatabaseMetaData.hxx b/connectivity/source/inc/odbc/ODatabaseMetaData.hxx index 346549475a58..dfbd17119272 100644 --- a/connectivity/source/inc/odbc/ODatabaseMetaData.hxx +++ b/connectivity/source/inc/odbc/ODatabaseMetaData.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ODatabaseMetaData.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2001-07-12 12:10:35 $ + * last change: $Author: oj $ $Date: 2001-07-17 07:23:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,6 +83,8 @@ namespace connectivity OConnection* m_pConnection; sal_Bool m_bUseCatalog; sal_Bool m_bOdbc3; + protected: + ::rtl::OUString getURLImpl(); public: inline OConnection* getOwnConnection() const { return m_pConnection; } @@ -93,6 +95,8 @@ namespace connectivity ODatabaseMetaData(const SQLHANDLE _pHandle,OConnection* _pCon); ~ODatabaseMetaData(); + + // XDatabaseMetaData virtual sal_Bool SAL_CALL allProceduresAreCallable( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL allTablesAreSelectable( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); |