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

Comparing Java type long with SQL type INTEGER gives wrong answer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: