diff options
Diffstat (limited to 'dbaccess/source/core/api/KeySet.cxx')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 56c87c7b5..47cf5d2d4 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -310,7 +310,10 @@ void OKeySet::construct(const Reference< XResultSet>& _xDriverSet) const ::rtl::OUString sOldFilter = xAnalyzer->getFilter(); if ( sOldFilter.getLength() ) { - aFilter = sOldFilter + aAnd + aFilter.makeStringAndClear(); + FilterCreator aFilterCreator; + aFilterCreator.append( aFilter.makeStringAndClear() ); + aFilterCreator.append( sOldFilter ); + aFilter = aFilterCreator.getComposedAndClear(); } xAnalyzer->setFilter(aFilter.makeStringAndClear()); m_xStatement = m_xConnection->prepareStatement(xAnalyzer->getQueryWithSubstitution()); |