Skip to content

Commit

Permalink
Fix typo in tap changer steps query (#98)
Browse files Browse the repository at this point in the history
Did postgres become stricter on the query in recent versions ? We had this with postgres 17

org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$3order" at com.powsybl.network.store.server.NetworkStoreRepository.innerGetTapChangerSteps(NetworkStoreRepository.java:2622) ~[classes/:na] at com.powsybl.network.store.server.NetworkStoreRepository.getTapChangerSteps(NetworkStoreRepository.java:2615) ~[classes/:na]

Signed-off-by: BOUHOURS Antoine <[email protected]>
  • Loading branch information
antoinebhs authored Feb 4, 2025
1 parent 71034d6 commit 98a4bc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ public static String buildTapChangerStepQuery(String columnNameForWhereClause) {
"where " +
NETWORK_UUID_COLUMN + " = ?" + " and " +
VARIANT_NUM_COLUMN + " = ? and " +
columnNameForWhereClause + " = ?" + "order by " + INDEX_COLUMN;
columnNameForWhereClause + " = ? order by " + INDEX_COLUMN;
}

public static String buildTapChangerStepWithInClauseQuery(String columnNameForInClause, int numberOfValues) {
Expand Down

0 comments on commit 98a4bc6

Please sign in to comment.