[Libreoffice-bugs] [Bug 96370] BASE: filter doesn't work for query fields which are sum

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 25 07:58:31 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=96370

--- Comment #11 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated yesterday, I could reproduce
this.

Just for information, it works if I do this:
diff --git a/dbaccess/source/core/api/RowSet.cxx
b/dbaccess/source/core/api/RowSet.cxx
index 68da787a81dc..43fbd979235c 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -2320,9 +2320,8 @@ void ORowSet::impl_initComposer_throw( OUString&
_out_rCommandToExecute )

     m_xComposer->setCommand( m_aCommand,m_nCommandType );
     m_aActiveCommand = m_xComposer->getQuery();
-
-    m_xComposer->setFilter( m_bApplyFilter ? m_aFilter : OUString() );
-    m_xComposer->setHavingClause( m_bApplyFilter ? m_aHavingClause :
OUString() );
+    // m_xComposer->setFilter( m_bApplyFilter ? m_aFilter : OUString() );
+    m_xComposer->setHavingClause( m_bApplyFilter ? m_aFilter : OUString() );

     if ( m_bIgnoreResult )
     {   // append a "0=1" filter

Of course, it's just for the test, not a fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170725/21a8c27c/attachment.html>


More information about the Libreoffice-bugs mailing list