<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Firebird/View-editor: Views aren't shown in table directly after creating a view"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131330#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Firebird/View-editor: Views aren't shown in table directly after creating a view"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131330">bug 131330</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>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
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/querydesign/querycontroller.cxx?r=131d5cdb#1408">https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/querydesign/querycontroller.cxx?r=131d5cdb#1408</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>