summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/adabas/BKeys.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/connectivity/source/drivers/adabas/BKeys.cxx b/connectivity/source/drivers/adabas/BKeys.cxx
index b3fd3873810f..60cef210c7af 100644
--- a/connectivity/source/drivers/adabas/BKeys.cxx
+++ b/connectivity/source/drivers/adabas/BKeys.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: BKeys.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: oj $ $Date: 2001-05-18 08:48:06 $
+ * last change: $Author: oj $ $Date: 2001-06-28 10:05:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,7 +142,12 @@ Reference< XNamed > OKeys::createObject(const ::rtl::OUString& _rName)
sName += aDot;
sName += xRow->getString(3);
sal_Int32 nUpdateRule = xRow->getInt(10);
+ if(xRow->wasNull())
+ nUpdateRule = KeyRule::NO_ACTION;
+
sal_Int32 nDeleteRule = xRow->getInt(11);
+ if(xRow->wasNull())
+ nDeleteRule = KeyRule::NO_ACTION;
if(xRow->getString(12) == _rName)
{
OAdabasKey* pRet = new OAdabasKey(m_pTable,_rName,sName,KeyType::FOREIGN,nUpdateRule,nDeleteRule);