summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-22 09:49:51 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-22 09:49:51 +0000
commitd42e97b1c10a78aa1e7026f7917266507c2edc9d (patch)
tree84a2bcbd3d91336a75c41cd6436faac38cabef67 /connectivity
parent401d07058bbefe1fb1395efa697bc29ac3ef8ea6 (diff)
INTEGRATION: CWS dba06 (1.11.64); FILE MERGED
2003/05/19 10:09:45 oj 1.11.64.1: #109695# fix parameter handling
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/Awrapado.cxx26
1 files changed, 22 insertions, 4 deletions
diff --git a/connectivity/source/drivers/ado/Awrapado.cxx b/connectivity/source/drivers/ado/Awrapado.cxx
index 0221aa51e8f4..b3f4255230e9 100644
--- a/connectivity/source/drivers/ado/Awrapado.cxx
+++ b/connectivity/source/drivers/ado/Awrapado.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Awrapado.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: oj $ $Date: 2002-11-29 12:24:20 $
+ * last change: $Author: vg $ $Date: 2003-05-22 10:49:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -570,7 +570,8 @@ sal_Int32 WpADOField::GetDefinedSize() const
{
OSL_ENSURE(pInterface,"Interface is null!");
aValVar.setEmpty();
- pInterface->get_Value(&aValVar);
+ sal_Bool bOk = SUCCEEDED(pInterface->get_Value(&aValVar));
+ OSL_ENSURE(bOk,"get_Value doesn't work!");
}
OLEVariant WpADOField::get_Value() const
@@ -1008,6 +1009,12 @@ WpADOProperties WpADORecordset::get_Properties() const
return eType;
}
+void WpADOParameter::put_Type(const DataTypeEnum& _eType)
+{
+ OSL_ENSURE(pInterface,"Interface is null!");
+ pInterface->put_Type(_eType);
+}
+
sal_Int32 WpADOParameter::GetAttributes() const
{
OSL_ENSURE(pInterface,"Interface is null!");
@@ -1054,11 +1061,21 @@ WpADOProperties WpADORecordset::get_Properties() const
return aValVar;
}
- sal_Bool WpADOParameter::PutValue(const OLEVariant& aVariant)
+sal_Bool WpADOParameter::PutValue(const OLEVariant& aVariant)
{
OSL_ENSURE(pInterface,"Interface is null!");
return (SUCCEEDED(pInterface->put_Value(aVariant)));
}
+sal_Bool WpADOParameter::AppendChunk(const OLEVariant& aVariant)
+{
+ OSL_ENSURE(pInterface,"Interface is null!");
+ return (SUCCEEDED(pInterface->AppendChunk(aVariant)));
+}
+sal_Bool WpADOParameter::put_Size(const sal_Int32& _nSize)
+{
+ OSL_ENSURE(pInterface,"Interface is null!");
+ return (SUCCEEDED(pInterface->put_Size(_nSize)));
+}
::rtl::OUString WpADOColumn::get_Name() const
{
@@ -1067,6 +1084,7 @@ WpADOProperties WpADORecordset::get_Properties() const
pInterface->get_Name(&aBSTR);
return aBSTR;
}
+
::rtl::OUString WpADOColumn::get_RelatedColumn() const
{
OSL_ENSURE(pInterface,"Interface is null!");