From 3b09ae20a3ed526cd80fe27be785e8bc9ff2ce5e Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Wed, 28 Jan 2015 18:24:40 +0100 Subject: Query Design: use correct name for columns that come from another query. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I25b4ccdc2f50ba89687e1f4c871f286251a28e21 Reviewed-on: https://gerrit.libreoffice.org/14232 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/connectivity/sqlparse.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/connectivity/sqlparse.hxx b/include/connectivity/sqlparse.hxx index 8240be502c38..398e69f256c9 100644 --- a/include/connectivity/sqlparse.hxx +++ b/include/connectivity/sqlparse.hxx @@ -191,9 +191,12 @@ namespace connectivity bool bInternational = false); // Check a Predicate + // set bUseRealName to false if you pass a xField that comes from where you got that field, + // as opposed from to from yourself. OSQLParseNode* predicateTree(OUString& rErrorMessage, const OUString& rStatement, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > & xFormatter, - const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & xField); + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & xField, + bool bUseRealName = true); // Access to the context const IParseContext& getContext() const {return *m_pContext;} -- cgit v1.2.3