[Libreoffice-bugs] [Bug 133997] New: Base Editing Create Query in Design View generates incorrect SQL

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 15 09:42:30 UTC 2020


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

            Bug ID: 133997
           Summary: Base Editing Create Query  in Design View generates
                    incorrect SQL
           Product: LibreOffice
           Version: 6.0.7.3 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: tj_trevor.jones at yahoo.co.uk

Description:
I wanted to generate the following query

SELECT * FROM "Table1" WHERE ( "FieldA" = :AskA OR "FieldA" IS NULL) AND
("FieldB" = :AskB  OR "FieldB" IS NULL )



Steps to Reproduce:
1.Queries>Create Form In Design View
2.Enter query as per attached screenshot
3.Click on Switch Design View On/Off

Actual Results:
SELECT * FROM "Table1" WHERE ( "FieldA" = :AskA AND "FieldB" = :AskB OR
"FieldA" IS NULL AND "FieldB" IS NULL )

Expected Results:
SELECT * FROM "Table1" WHERE ( "FieldA" = :AskA OR "FieldA" IS NULL) AND
("FieldB" = :AskB  OR "FieldB" IS NULL )



Reproducible: Always


User Profile Reset: No



Additional Info:
It works fine for a single field. The more fields you add the more confused it
gets.

-- 
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/20200615/004e6c79/attachment.htm>


More information about the Libreoffice-bugs mailing list