summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-07-02 14:52:58 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-07-02 15:17:53 +0200
commitc34ef6b710bd9f3a5beac3be856c970c70e68610 (patch)
tree223fd5c2c86df96536cdecc8f31afa2796e81f63
parent7cb5924a9bdb6d63e6e0a1fd23b4d4f8473b21a2 (diff)
fdo#51619 do not ask for parameters if all have already been given
Change-Id: I1c1b1e46e7269bbfa24fbc0c0ebf5ba0f5aad7b9
-rw-r--r--connectivity/source/commontools/dbtools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index 76b5ff99bad1..96639c641a09 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -1788,7 +1788,7 @@ void askForParameters(const Reference< XSingleSelectQueryComposer >& _xComposer,
Reference<XIndexAccess> xParamsAsIndicies = xParameters.is() ? xParameters->getParameters() : Reference<XIndexAccess>();
sal_Int32 nParamCount = xParamsAsIndicies.is() ? xParamsAsIndicies->getCount() : 0;
::std::vector<bool, std::allocator<bool> > aNewParameterSet( _aParametersSet );
- if ( nParamCount || ::std::count(aNewParameterSet.begin(),aNewParameterSet.end(),true) != nParamCount )
+ if ( nParamCount && ::std::count(aNewParameterSet.begin(),aNewParameterSet.end(),true) != nParamCount )
{
static const ::rtl::OUString PROPERTY_NAME(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME));
aNewParameterSet.resize(nParamCount ,false);