Select SQL Generated With Different Column Orders In Select Clause
Last updated on AUGUST 09, 2013
Applies to:Oracle TopLink - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
Using TopLink version 126.96.36.199.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