Select SQL Generated With Different Column Orders In Select Clause

(Doc ID 1574944.1)

Last updated on AUGUST 09, 2013

Applies to:

Oracle TopLink - Version and later
Information in this document applies to any platform.


Using TopLink version, 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