Derby
  1. Derby
  2. DERBY-4583

TRUE by itself is not accepted in WHERE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.3.0
    • Fix Version/s: 10.7.1.1
    • Component/s: SQL
    • Labels:
      None
    • Environment:
      n/a
    • Bug behavior facts:
      Deviation from standard

      Description

      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?

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Wouter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development