diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-05-30 10:48:15 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-05-30 10:48:15 +0000 |
commit | 36ff7d268e88e4db5ed971cc50401961d3137613 (patch) | |
tree | 868d03336488a7b8b0f0544584814de99e5c5c9a /connectivity/source | |
parent | 8f1d8317abe171993b47fd832f5c0b694a0a44c2 (diff) |
#86671# createUniqueName: check if the base name is allowed, too
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/commontools/dbtools.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 4e1746d7f066..17c2b14d3531 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbtools.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: oj $ $Date: 2001-05-25 13:09:29 $ + * last change: $Author: fs $ $Date: 2001-05-30 11:48:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1114,6 +1114,9 @@ sal_Int32 getSearchColumnFlag( const Reference< XConnection>& _rxConn,sal_Int32 // ----------------------------------------------------------------------------- ::rtl::OUString createUniqueName(const Reference<XNameAccess>& _rxContainer,const ::rtl::OUString& _rBaseName) { + if (!_rxContainer->hasByName(_rBaseName)) + return _rBaseName; + ::rtl::OUString sName(_rBaseName); sal_Int32 nPos = 1; sName += ::rtl::OUString::valueOf(nPos); @@ -1239,6 +1242,9 @@ void checkDisposed(sal_Bool _bThrow) throw ( DisposedException ) /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.29 2001/05/25 13:09:29 oj + * #86839# flush scanner buffer + * * Revision 1.28 2001/05/23 09:15:42 oj * #86528# disable exception in some files * |