-
-
Notifications
You must be signed in to change notification settings - Fork 268
Potential bug in BETWEEN operator #7839
Copy link
Copy link
Closed
Labels
affect-version: 3.0.0affect-version: 4.0.0affect-version: 5.0 Initialaffect-version: 6.0 Initialcomponent: enginefix-version: 3.0.12fix-version: 4.0.5fix-version: 5.0 RC 2fix-version: 6.0 Alpha 1qa: done successfullyrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: bug
Metadata
Metadata
Assignees
Labels
affect-version: 3.0.0affect-version: 4.0.0affect-version: 5.0 Initialaffect-version: 6.0 Initialcomponent: enginefix-version: 3.0.12fix-version: 4.0.5fix-version: 5.0 RC 2fix-version: 6.0 Alpha 1qa: done successfullyrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: bug
Consider the following two statements:
It is unexpected that both of them evaluate to true, since the expression
-1 BETWEEN 0 AND NULLcannot evaluate tonullandfalseat the same time. Based on this, I believe that theBETWEENoperator implementation is affected by a bug.I checked that this reproduces in the latest release version (4.0.4): The version string is (WI-V4.0.4.3010 Firebird 4.0).
I originally found this in version 4.0.2 using the latest Dockerfile available at https://hub.docker.com/r/jacobalberty/firebird.