Bug 97723 - Query <= not working
Summary: Query <= not working
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 18:47 UTC by RAV
Modified: 2017-03-01 10:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RAV 2016-02-10 18:47:36 UTC
I am using Libre 5.0.4,I am using libre base as front end and mysql as backend,i had created a query of ChallanDate_Min and ChallanDate_Max using sql design view,


SELECT "tbl_generateid".*,"tbl_particularid".*

FROM
 "odb_vishwakarmaenterprises"."tbl_generateid" , "odb_vishwakarmaenterprises"."tbl_particularid"

WHERE
"tbl_generateid"."ChallanID" = "tbl_particularid"."Challan_ID"

AND
(("Party_ID" = :var_PARTY_ID) OR (:var_PARTY_ID IS NULL))
AND
(("ChallanDate" >= :var_DATE_FROM) OR (:var_DATE_FROM IS NULL))
AND 
(("ChallanDate" <= :var_DATE_TILL) OR (:var_DATE_TILL IS NULL))
AND
(("ChallanID" = :var_CHALLAN_ID) OR (:var_CHALLAN_ID IS NULL))

The following where condition:
(("ChallanDate" <= :var_DATE_TILL) OR (:var_DATE_TILL IS NULL))
doesnot give values equal to :var_DATE_TILL buts gives values less than :var_DATE_TILL.

And on contrary the following where condition:
(("ChallanDate" >= :var_DATE_FROM) OR (:var_DATE_FROM IS NULL))
gives perfect values of equal to greater than :var_DATE_FROM IS NULL.
Comment 1 RAV 2016-02-12 07:03:05 UTC
Please try to solve my issue
Comment 2 Buovjaga 2016-02-16 12:05:42 UTC
Did it work in an older LibreOffice version?
Comment 3 Robert Großkopf 2016-02-16 18:34:28 UTC
Have tested with LO 5.1.1.1, also LO 5.0.4.2, OpenSUSE 42.1 64bit rpm-Linux and MariaDB direct connection:
SELECT "Date" FROM "Database"."Table" AS "Table" WHERE ( "Date" >= :FROM AND "Date" <= :TO )
Shows all dates beginning with 'FROM' and ending with 'TO'. Same result as
SELECT "Date" FROM "Database"."Table" AS "Table" WHERE ( "Date" BETWEEN :FROM AND :TO )
So I can't confirm this bug.
Comment 4 RAV 2016-02-17 05:08:01 UTC
Thanks sir,But i have even tried with BETWEEN command but same problem is there,i think this could be because i have backend of mysql.
Comment 5 Alex Thurgood 2016-05-20 08:34:42 UTC
(In reply to RAV from comment #4)
> Thanks sir,But i have even tried with BETWEEN command but same problem is
> there,i think this could be because i have backend of mysql.

@RAV : have you tried an explicit cast 'AS DATE' of the value returned by your comparison ?
Comment 6 Alex Thurgood 2016-05-20 08:37:50 UTC
@RAV : it would also help if you could provide a sample DDL instruction SQL file to create and populate a test table on mysql and an ODB file containing the corresponding query that you are having problems with.
Comment 7 Alex Thurgood 2016-06-20 08:05:41 UTC
Qa requests information ==>> needinfo
Comment 8 QA Administrators 2017-01-31 00:29:36 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2017-03-01 10:36:54 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170301