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

Division between integer and decimal produces incorrect result

    XMLWordPrintableJSON

Details

    Description

      The following program

      SELECT 95.0 / 100

      produces the expected result, .95, as a DECIMAL(14, 8).

      However, the program

      SELECT 95 / 100.0

      produces the result 0E+! with type DECIMAL(17, -1)

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: