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

--- Comment #2 from Julien Nabet <[email protected]> ---
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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to