From 3d5a27bf5a50870adce0bd43f9f71211e9caaac2 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 2 Aug 2013 12:10:57 +0200 Subject: for later... Change-Id: I266d2992bcd212a6539e4b50c9daf2c53ff98904 --- dbaccess/source/core/api/SingleSelectQueryComposer.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx index b1270f0368d7..9143aff769be 100644 --- a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx +++ b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx @@ -1591,6 +1591,9 @@ void OSingleSelectQueryComposer::setConditionByColumn( const Reference< XPropert const OUString aQuote = m_xMetaData->getIdentifierQuoteString(); getColumns(); + // TODO: if this is called for HAVING, check that the column is a GROUP BY column + // or that it is an aggregate function + if ( m_aCurrentColumns[SelectColumns] && m_aCurrentColumns[SelectColumns]->hasByName(aName) ) { Reference xColumn; -- cgit