<div dir="ltr">Hi Alex,<div><br></div><div>Thanks for the note. I looked up the thread on german discuss list. The problem is not that "<span style="font-family:arial,sans-serif;font-size:13px">doesn't insert the required WHERE clause before the LIMIT" (it sounds like adding a criteria on GUI and this criteria not inserted into the select statement before the limit clause while running), but hsqldb does not support queries like "select * from table limit y". In hsqldb's concept we have to use a WHERE or an ORDER BY clause before LIMIT or at least a Table alias.</span></div>

<div><br></div><div><font face="arial, sans-serif">In case of mysql, Base appends a table alias automatically to the select statement (read on the german list). I don't sure this appending's aim is to avoid this problem or not, but can use for hsqldb too.</font></div>

<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Lionel,</font></div><div><font face="arial, sans-serif">I found a driver property with name "AppendTableAliasInSelect" which seems to be responsible for appending alias. It is used only in generating statement in QueryDesignView.cxx, so I think it can be used wihtout any problem. I can't test whether it works yet, I'm compiling by now, but it seems to me it works as its name suggests.</font><span style="font-family:arial,sans-serif"> So if you don't have any objection to it or don't have a better solution than I solve the problem in this way. </span></div>
<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif">Best regards,</span></div><div style>
<span style="font-family:arial,sans-serif">Tamás</span></div><div style><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_extra"><div class="gmail_quote">2013/6/10 Alexander Thurgood <span dir="ltr"><<a href="mailto:alex.thurgood@gmail.com" target="_blank">alex.thurgood@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 19/01/13 03:46, Lionel Elie Mamane a écrit :<br>
<br>
Hi all,<br>
<br>
FYI, there is a report/discussion on the German discuss list that this<br>
functionality fails with hsqldb embedded databases and current 4.1 beta2<br>
because it doesn't insert the required WHERE clause before the LIMIT<br>
operator.<br>
<br>
The functionality is reported to work correctly with a msyql db.<br>
<br>
<br>
Alex<br>
<br>
<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div><br></div></div>