diff options
author | Ocke Janssen <oj@openoffice.org> | 2000-10-25 12:20:55 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2000-10-25 12:20:55 +0000 |
commit | 6b346f3873eaf7b97063e36e4107cd5dd7c665d9 (patch) | |
tree | 47be5399fd1821cfbd745a232f0d6bb8a72f304d /connectivity/source/drivers/dbase/DDatabaseMetaData.cxx | |
parent | f842c8dddb45d62a07b6355b9bf3b27dc6e3aaed (diff) |
corrected limits
Diffstat (limited to 'connectivity/source/drivers/dbase/DDatabaseMetaData.cxx')
-rw-r--r-- | connectivity/source/drivers/dbase/DDatabaseMetaData.cxx | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx index 6c1138f56285..b7e849ad4112 100644 --- a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx +++ b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DDatabaseMetaData.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: oj $ $Date: 2000-10-24 16:34:43 $ + * last change: $Author: oj $ $Date: 2000-10-25 13:20:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -60,7 +60,7 @@ ************************************************************************/ -#ifndef _CONNECTIVITY_DBASE_ODATABASEMETADATA_HXX_ +#ifndef _CONNECTIVITY_DBASE_ODbaseDatabaseMetaData_HXX_ #include "dbase/DDatabaseMetaData.hxx" #endif #ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_ @@ -463,4 +463,40 @@ Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getCrossReference( return ::rtl::OUString::createFromAscii("sdbc:dbase:"); } +// ------------------------------------------------------------------------- +sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + + return STRING_MAXLEN; +} +// ------------------------------------------------------------------------- +sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + + return 254; +} +// ------------------------------------------------------------------------- +sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + + return 10; +} +// ------------------------------------------------------------------------- +sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + + return 1; +} +// ------------------------------------------------------------------------- +sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException) +{ + ::osl::MutexGuard aGuard( m_aMutex ); + + return 128; +} + |