<div dir="ltr"><div><span id="gmail-output">If I modify TConnection.hxx to derive from XConnection2 instead of Xconnection, and implement the new XConnection2 methods in all connection objects relying on TConnection.hxx then the compilation passes but fails in testing...</span></div><div><span id="gmail-output"><br></span></div><div><span id="gmail-output"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">I have access in Base to the default schema (ie: XConnection2.getSchema()) with the native LibreOffice JDBC driver, so why are the tests not passing?</span></span></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 5 sept. 2023 à 08:35, Noel Grandin <<a href="mailto:noelgrandin@gmail.com">noelgrandin@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 4 Sept 2023 at 21:54, Noel Grandin <<a href="mailto:noelgrandin@gmail.com" target="_blank">noelgrandin@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 4 Sept 2023 at 20:43, Lionel Élie Mamane <<a href="mailto:lionel@mamane.lu" target="_blank">lionel@mamane.lu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">becomes an ambiguous base of class bar, as it is derived from twice<br>
:-|<br>
<br>
How do we solve that?<br><br></blockquote><div><br></div><div style="font-family:tahoma,sans-serif">using using</div><div style="font-family:tahoma,sans-serif"><br></div></div></div></blockquote><div><br></div><div><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sorry, could not resist that.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">But unfortunately, I'm wrong, I keep forgetting when "using Baseclass::foo" will work and when it wont.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Likely you will have to implement disambiguation overrides like:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> virtual SAL_CALL void setFoo() override { Baseclass::setFoo(); }</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div></div>
</blockquote></div>