Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1809

Built-in functions not working in views.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6, 10.3.1.4
    • 10.2.1.6, 10.3.1.4
    • SQL
    • None

    Description

      The built-in functions acos, asin, degrees, radians, log, floor, etc. all fail to work when used in views. The following transcript demonstrates the problem:

      ij version 10.3
      ij> connect 'jdbc:derby:test;create=true';
      ij> create table simple_tab (
      x integer
      );
      0 rows inserted/updated/deleted
      ij> insert into simple_tab values (1);
      1 row inserted/updated/deleted
      ij> select acos y from simple_tab;
      Y
      ----------------------
      0.0

      1 row selected
      ij> create view simple_acos_view as (
      select acos y from simple_tab
      );

      ERROR 42X94: OBJECT '2fb0c07e-010d-6f90-2909-00000012ff18' does not exist.
      ij>
      quit;

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--broken.sql
          1 kB
          Richard Wheeldon
        2. ASF.LICENSE.NOT.GRANTED--working.sql
          0.6 kB
          Richard Wheeldon
        3. derby1809_diff.txt
          2 kB
          Daniel John Debrunner

        Activity

          People

            djd Daniel John Debrunner
            zcacrgw Richard Wheeldon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: