summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/adabas/BDriver.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:55:39 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:55:39 +0000
commitfd0deed881d912efe76598c5dc5d4e695e569a1e (patch)
treeb7bfe8c7faaeae382cb0e8f2fb32fc12e1d3887f /connectivity/source/drivers/adabas/BDriver.cxx
parentb9464a9e21b414653f4dd5c5383be5f0f86c8f74 (diff)
INTEGRATION: CWS insight01 (1.16.92); FILE MERGED
2003/08/04 10:41:03 oj 1.16.92.2: #111090# further coding 2003/08/04 06:11:38 oj 1.16.92.1: #111075# ongoing work
Diffstat (limited to 'connectivity/source/drivers/adabas/BDriver.cxx')
-rw-r--r--connectivity/source/drivers/adabas/BDriver.cxx23
1 files changed, 18 insertions, 5 deletions
diff --git a/connectivity/source/drivers/adabas/BDriver.cxx b/connectivity/source/drivers/adabas/BDriver.cxx
index 47a8b4b71e..bb33099051 100644
--- a/connectivity/source/drivers/adabas/BDriver.cxx
+++ b/connectivity/source/drivers/adabas/BDriver.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: BDriver.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: oj $ $Date: 2002-10-25 09:07:17 $
+ * last change: $Author: hr $ $Date: 2004-08-02 16:55:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -250,10 +250,23 @@ sal_Bool SAL_CALL ODriver::acceptsURL( const ::rtl::OUString& url )
return (!url.compareTo(::rtl::OUString::createFromAscii("sdbc:adabas:"),12));
}
// --------------------------------------------------------------------------------
-Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& ) throw(SQLException, RuntimeException)
+Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& info) throw(SQLException, RuntimeException)
{
- if ( ! acceptsURL(url) )
- ::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
+ if ( acceptsURL(url) )
+ {
+ ::std::vector< DriverPropertyInfo > aDriverInfo;
+
+ aDriverInfo.push_back(DriverPropertyInfo(
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet"))
+ ,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharSet of the database."))
+ ,sal_False
+ ,::rtl::OUString()
+ ,Sequence< ::rtl::OUString >())
+ );
+ return Sequence< DriverPropertyInfo >(aDriverInfo.begin(),aDriverInfo.size());
+ }
+
+ ::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
return Sequence< DriverPropertyInfo >();
}
// --------------------------------------------------------------------------------