summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/core/api/KeySet.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 9cc2c6172cf4..b3e815928bff 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());