[
https://issues.apache.org/jira/browse/DERBY-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-4583:
---------------------------------
Attachment: derby-4583-01-ac-booleanLiterals.diff
Attaching derby-4583-01-ac-booleanLiterals.diff. This patch re-enables the
boolean literals TRUE and FALSE. The regression tests passed for me after
applying this patch.
Touches the following files:
---------
M java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
Small edit to enable the literals.
---------
M
java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
New test case to verify that the literals work again.
---------
M
java/testing/org/apache/derbyTesting/functionTests/tests/lang/db2Compatibility.sql
M
java/testing/org/apache/derbyTesting/functionTests/master/db2Compatibility.out
M
java/testing/org/apache/derbyTesting/functionTests/master/implicitConversions.out
Tweaks to other regression tests to reflect the new behavior.
> TRUE by itself is not accepted in WHERE
> ---------------------------------------
>
> Key: DERBY-4583
> URL: https://issues.apache.org/jira/browse/DERBY-4583
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.5.3.0
> Environment: n/a
> Reporter: Wouter
> Assignee: Rick Hillegas
> Attachments: derby-4583-01-ac-booleanLiterals.diff
>
>
> A SELECT query with a literal boolean value in its WHERE clause results in a
> syntax error.
> How to reproduce:
> CREATE TABLE list (value VARCHAR(10));
> Given this table, the following queries result in a syntax error.
> SELECT * FROM list WHERE TRUE;
> SELECT * FROM list WHERE FALSE;
> SELECT * FROM list WHERE value='A' OR TRUE;
> Why is TRUE/FALSE not a boolean expression?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.