Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2459

WITH statement translated wrongly for Oracle 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.4
    • 7.7.6
    • None
    • None

      I am using Oracle 10g [1] and I have set the Oracle version to 9.2 in a dynamic VDB [2].

      I am running simple WITH statement against Oracle: WITH x AS (select DATEVALUE from SMALLA) select DATEVALUE from x. Which throws [3]. Probably because Oracle 10 doesn't support column aliasing "WITH x (DATEVALUE)".

      [1] Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
      With the Partitioning, OLAP and Data Mining options

      [2] <property name="DatabaseVersion" value="9.2" />

      [3] Caused by: org.teiid.translator.TranslatorException: Error Code:32033 Message:Remote org.teiid.translator.jdbc.JDBCExecutionException: Error Code:32033 Message:'ORA-32033: unsupported column aliasing
      ' error executing statement(s): [Prepared Values: [] SQL: WITH x (DATEVALUE) AS (SELECT g_0."DATEVALUE" FROM "BQT2_RO"."SMALLA" g_0) SELECT g_0.DATEVALUE FROM x g_0]

              rhn-engineering-shawkins Steven Hawkins
              fnguyen_jira Filip Nguyen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: