diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-17 10:26:05 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-17 10:26:05 +0000 |
commit | f2479eeaf7221e157160fd54a4f8433e8229a625 (patch) | |
tree | 84258541f47d2d583b956ddb55593d54866be085 /connectivity | |
parent | d1dafd3bcba73e66c15e0b60acb1e2b057ed56e9 (diff) |
#89128# look if connection is readonly
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/ODatabaseMetaData.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx index 6df328dc2c43..479cbc54e5f8 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ODatabaseMetaData.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: oj $ $Date: 2001-07-17 07:23:54 $ + * last change: $Author: oj $ $Date: 2001-07-17 11:26:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -792,9 +792,9 @@ sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLExcepti // ------------------------------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException) { - sal_Bool bValue; - OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DATA_SOURCE_READ_ONLY,bValue,*this); - return bValue; + ::rtl::OUString aValue; + OTools::GetInfo(m_pConnection,m_aConnectionHandle,SQL_DATA_SOURCE_READ_ONLY,aValue,*this,m_pConnection->getTextEncoding()); + return aValue.toChar() == 'Y'; } // ------------------------------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException) |