<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:robert@familiegrosskopf.de" title="Robert Großkopf <robert@familiegrosskopf.de>"> <span class="fn">Robert Großkopf</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - base sql query parameter with negative value fails"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130672">bug 130672</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>NEW
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>robert@familiegrosskopf.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - base sql query parameter with negative value fails"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130672#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - base sql query parameter with negative value fails"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130672">bug 130672</a>
from <span class="vcard"><a class="email" href="mailto:robert@familiegrosskopf.de" title="Robert Großkopf <robert@familiegrosskopf.de>"> <span class="fn">Robert Großkopf</span></a>
</span></b>
<pre>Could confirm the buggy behavior with the internal database HSQLDB. Seems the
parameter isn't set as Integer.
SELECT * FROM "table1" WHERE "aid" = CAST(:P1 AS INTEGER)
will work. Multiplication with '1' will do the same.
SELECT "aid", :P1 AS "T" FROM "table1" WHERE "aid" = :P1
will work also.
With internal Firebird the bug appears also, but there is no known workaround.
Tested with LO 6.4.0.3 on OpenSUSE 15.1 64bit rpm Linux</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>