diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-03-19 05:03:23 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-03-19 05:03:23 +0000 |
commit | d86c697d05b772cf101fe271357001f43eab8e8b (patch) | |
tree | c8da990829f8d06c929c4d95eaf73e46a09383c7 /dbaccess/source/ui/misc | |
parent | 0e6ac05d52f2363d07b0b0408b948c829f0391c4 (diff) |
ensure that no fields occure twice when committing
Diffstat (limited to 'dbaccess/source/ui/misc')
-rw-r--r-- | dbaccess/source/ui/misc/indexcollection.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/indexcollection.cxx b/dbaccess/source/ui/misc/indexcollection.cxx index 007774811229..4668be3beeaf 100644 --- a/dbaccess/source/ui/misc/indexcollection.cxx +++ b/dbaccess/source/ui/misc/indexcollection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: indexcollection.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: fs $ $Date: 2001-03-16 16:22:20 $ + * last change: $Author: fs $ $Date: 2001-03-19 06:03:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -239,6 +239,8 @@ namespace dbaui ++aFieldLoop ) { + OSL_ENSURE(!xCols->hasByName(aFieldLoop->sFieldName), "OIndexCollection::commitNewIndex: double column name (need to prevent this outside)!"); + Reference< XPropertySet > xColDescriptor = xColumnFactory->createDataDescriptor(); OSL_ENSURE(xColDescriptor.is(), "OIndexCollection::commitNewIndex: invalid column descriptor!"); if (xColDescriptor.is()) @@ -459,6 +461,9 @@ namespace dbaui /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.1 2001/03/16 16:22:20 fs + * initial checkin - non-UNO index collection + * * * Revision 1.0 07.03.01 15:09:42 fs ************************************************************************/ |