XMLTABLE-expressions Do Not Work on 12.1.0.2 after upgrade from 11.2.0.4 (Doc ID 2278459.1)

Last updated on JUNE 23, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Before 12c, below query worked

  SELECT nd.id_stage,
  TrimContribution."Quarter",
  TrimContribution."ContributionType"
  FROM nd_vwr_formAIndependent nd,
  XMLTABLE (
  XMLNAMESPACES ('http://ws.nd.dgine.minsoc.fed.be' AS "x"),
  '//x:TrimContribution'
  PASSING nd.stateofneed
  COLUMNS "Quarter" PATH '*:Quarter',
  "ContributionType" PATH '*:ContributionType'
  ) AS TrimContribution
  WHERE TrimContribution."Quarter" NOT IN ('11111');

Since 12c, the query returns no records.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms