summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2009-12-07 11:22:08 +0000
committerFrank Schönheit <fs@openoffice.org>2009-12-07 11:22:08 +0000
commit178209c0dc12f0768ac5689e7f83db602cc8b201 (patch)
treeba40a6b3b94619d735ef0adb331f63e42bab95f3 /dbaccess
parentf17e58864db1476a09cc5156e85f745a9286da63 (diff)
#i107485#
Diffstat (limited to 'dbaccess')
-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());