[
https://issues.apache.org/jira/browse/OPENJPA-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18123639#comment-18123639
]
ASF subversion and git services commented on OPENJPA-2988:
----------------------------------------------------------
Commit c6e60b5ded27a24d25eaffd671559f2391fe7bd2 in openjpa's branch
refs/heads/OPENJPA-2988 from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=c6e60b5de ]
[OPENJPA-2988] tautology in query is removed
> LOCAL TIME test query is a tautology matching all rows
> ------------------------------------------------------
>
> Key: OPENJPA-2988
> URL: https://issues.apache.org/jira/browse/OPENJPA-2988
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 4.2.0
> Reporter: Maxim Solodovnik
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 4.2.0
>
>
> Discussion thread:
> https://github.com/apache/openjpa/pull/144#discussion_r3683006359
> **(high)** The query in testGetCurrentLocalTime was changed to
> `localTimeField < LOCAL TIME OR localTimeField >= LOCAL TIME`, a tautology
> matching every row no matter what LOCAL TIME evaluates to. The test now only
> verifies the query parses. Could we keep an assertion that actually
> constrains the result (e.g. compare against a value persisted just before)?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)