Select SQL Generated With Different Column Orders In Select Clause
Last updated on AUGUST 09, 2013
Applies to:Oracle TopLink - Version 220.127.116.11.0 and later
Information in this document applies to any platform.
Using TopLink version 18.104.22.168.0, created an application which has JPQL joining two entities with non-PK criteria. When EclipseLink generates the SQL from the JPQL, the order of columns listed in the select clause may change, e.g. sometimes it has "SELECT COL_A, COL_BE, ....", sometimes it has "SELECT COL_B, COL_A, ...". The shuffling of the column order causes the database to treat them as different SQL statements.
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