Skip to content

Commit

Permalink
Issue: Poor performance of InformixPlatform with IDENTITY generated p…
Browse files Browse the repository at this point in the history
…rimary keys#968 (eclipse-ee4j#1991)
  • Loading branch information
gpancrazzi authored Nov 8, 2023
1 parent 5db018c commit 7f18d64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected Hashtable<Class<?>, FieldTypeDefinition> buildFieldTypes() {
public ValueReadQuery buildSelectQueryForIdentity() {
ValueReadQuery selectQuery = new ValueReadQuery();
StringWriter writer = new StringWriter();
writer.write("SELECT DISTINCT(DBINFO('sqlca.sqlerrd1')) FROM systables");
writer.write("SELECT FIRST 1 DBINFO('sqlca.sqlerrd1') FROM systables");
selectQuery.setSQLString(writer.toString());
return selectQuery;
}
Expand Down

0 comments on commit 7f18d64

Please sign in to comment.