diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx index 34caa74efa27..66ccb4d92df5 100644 --- a/connectivity/source/sdbcx/VCollection.cxx +++ b/connectivity/source/sdbcx/VCollection.cxx @@ -535,7 +535,7 @@ void OCollection::renameObject(const ::rtl::OUString _sOldName,const ::rtl::OUSt OSL_ENSURE(m_pElements->exists(_sOldName),"Element doesn't exist"); OSL_ENSURE(!m_pElements->exists(_sNewName),"Element already exists"); OSL_ENSURE(!_sNewName.isEmpty(),"New name must not be empty!"); - OSL_ENSURE(!_sOldName.isEmpty(),"New name must not be empty!"); + OSL_ENSURE(!_sOldName.isEmpty(),"Old name must not be empty!"); if ( m_pElements->rename(_sOldName,_sNewName) ) {