https://bugs.freedesktop.org/show_bug.cgi?id=48807
Bug #: 48807
Summary: AutoFilter in form uses field value as LIKE pattern
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.3.4 release
Platform: All
OS/Version: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Database
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Depends on: 42120
Test case: see attachment 52678 of bug 42120.
1) Add a record with fname='A*' and lname left blank (or any arbitrary value).
2) Position form on this record.
3) Click on AutoFilter button (Filters the records, based on the content of the
currently selected field)
Result is two records, namely "Alex Thurgood" and "A*". "Alex Thurgood" should
not be in the results, since the fname is not "A*", but is "Alex".
The problem is that the generated filter is "fname LIKE 'A*'" instead of "fname
= 'A*'". The "A*" in the fname field in the newly inserted record is a *value*
and should not silently be treated as a *pattern*.
Note that when doing AutoFilter on lname, the generated filter is "IS EMPTY" (a
synonym for "IS NULL"), not "LIKE NULL" or "LIKE ''". That is good.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs