summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-04-26 12:14:33 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-26 16:49:48 +0200
commit1bc4a49d9ba99ff0531bafc2cf0183f726bfe14b (patch)
treeb980c3c940e1d7c233e2c6d19da7cd7d55b5ad1a /svx
parentfae7a3d060664e6540dbdfc3babd54ac9ccb45bf (diff)
QueryDesign: in criteria, remove column_ref when table *and* column name match
As opposed to only the column name Change-Id: I261d13f23214f950daa55a5b63cd486e59a0e127
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx5
-rw-r--r--svx/source/form/filtnav.cxx2
-rw-r--r--svx/source/form/formcontroller.cxx1
3 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index f7dcf1144d1b..22b4716829d8 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -2985,7 +2985,10 @@ sal_Bool DbFilterField::commitControl()
xParseNode->parseNodeToPredicateStr(aPreparedText,
xConnection,
xNumberFormatter,
- m_rColumn.GetField(),aAppLocale,'.',
+ m_rColumn.GetField(),
+ OUString(),
+ aAppLocale,
+ '.',
getParseContext());
m_aText = aPreparedText;
}
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 9bd657063ea6..8b665eb9a508 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -903,7 +903,7 @@ sal_Bool FmFilterModel::ValidateText(FmFilterItem* pItem, OUString& rText, OUStr
OUString aPreparedText;
Locale aAppLocale = Application::GetSettings().GetUILanguageTag().getLocale();
xParseNode->parseNodeToPredicateStr(
- aPreparedText, xConnection, xFormatter, xField, aAppLocale, '.', getParseContext() );
+ aPreparedText, xConnection, xFormatter, xField, OUString(), aAppLocale, '.', getParseContext() );
rText = aPreparedText;
return sal_True;
}
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index c9fab0b9761c..313fcd84e7f2 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -3246,6 +3246,7 @@ void FormController::setFilter(::std::vector<FmFieldInfo>& rFieldInfos)
,xConnection
,xFormatter
,xField
+ ,OUString()
,aAppLocale
,cDecimalSeparator
,getParseContext());