<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Direct SQL: Queries in Tools → SQL and macro give wrong results - direct SQL works well"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143656#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Direct SQL: Queries in Tools → SQL and macro give wrong results - direct SQL works well"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143656">bug 143656</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>(In reply to Julien Nabet from <a href="show_bug.cgi?id=143656#c8">comment #8</a>)
<span class="quote">> (gdb) p _rSQL
> $4 = "SELECT * FROM \"Person\" WHERE \"Name\" LIKE '%*'"
> (gdb) n
> 486 return m_xAggregateStatement->execute( sSQL );
> (gdb) p sSQL
> $5 = "SELECT * FROM \"Person\" WHERE \"Name\" LIKE '%%'"</span >
This is the reason for the buggy behavior: Not the Escaping, but the function,
which returns '%%' instead of '%*'.</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>