Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-119

Comparing Java type long with SQL type INTEGER gives wrong answer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When comparing a bigint value to an integer value, Optiq gives the wrong answer. Presumably it is converting both arguments to Java int. The query

      ```sql
      select "wrapperLong" as c from "everyTypes" where "wrapperLong" > 0
      ```

      should return the a row where c is 1, but it does not.

      `JdbcTest.testJavaBoolean2` is a test-case.

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/119
      Created by: julianhyde
      Labels:
      Created at: Sat Jan 18 23:25:12 CET 2014
      State: closed

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            github-import GitHub Import
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development