<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FIREBIRD (internal): Parameter query with :parameter IS NULL doesn't work"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130595#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FIREBIRD (internal): Parameter query with :parameter IS NULL doesn't work"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130595">bug 130595</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>Have tested a little bit more:
SELECT * FROM "Table1" WHERE "Name" = :name OR :name IS NULL
must be changed to
SELECT * FROM "Table1" WHERE "Name" = :name OR CAST( :name AS VARCHAR ( 20 ) )
IS NULL
and it will work. You have to set a parameter to the fieldtype of the field
"Name". So if it should work with an INTEGER-field you have to change to
INTEGER here. But: The casting of the parameter isn't needed, because this part
of the query only want to know, if the parameter is without value (NULL).</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>