[Libreoffice-bugs] [Bug 131330] Firebird/View-editor: Views aren't shown in table directly after creating a view

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Mar 14 14:26:21 UTC 2020


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

--- Comment #2 from Julien Nabet <serval2412 at yahoo.fr> ---
Contrary to embedded hsqldb, with Firebird we enter in the if:
1408      // if we successfully saved a view we were creating, then close the
designer
1409      if ( bSuccess && editingView() && !m_xAlterView.is() )
1410      {
1411          closeTask();
1412      }
See
https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/querydesign/querycontroller.cxx?r=131d5cdb#1408

because m_xAlterView.is() is false.

It's due to the fact that:
1374                  if ( xElements->hasByName( m_sName ) )
1375                      m_xAlterView.set( xElements->getByName( m_sName ),
UNO_QUERY );

it doesn't set m_xAlterView
If I replace "UNO_QUERY" by "UNO_QUERY_THROW", I get:
warn:dbaccess:185477:185477:dbaccess/source/ui/querydesign/querycontroller.cxx:1411:
DBG_UNHANDLED_EXCEPTION in bool dbaui::OQueryController::doSaveAsDoc(bool)
exception: com.sun.star.uno.RuntimeException message: unsatisfied query for
interface of type com.sun.star.sdbcx.XAlterView!

In brief, XAlterView should be implemented

-- 
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/20200314/b9826230/attachment.htm>


More information about the Libreoffice-bugs mailing list