[Libreoffice-bugs] [Bug 143656] Direct SQL: Queries in Tools → SQL and macro give wrong results - direct SQL works well

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 4 05:42:57 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143656

--- Comment #10 from Robert Großkopf <robert at familiegrosskopf.de> ---
(In reply to Julien Nabet from comment #8)
> (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 '%%'"

This is the reason for the buggy behavior: Not the Escaping, but the function,
which returns '%%' instead of '%*'.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210804/018d4a97/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list