[#9754] Commented out version of ordering by type signature

This commit is contained in:
Lukas Eder 2020-01-28 11:20:42 +01:00
parent e01d695e51
commit 4c5b8b0c7e

View File

@ -831,7 +831,12 @@ public class PostgresDatabase extends AbstractDatabase {
// Calculate overload index if applicable
when(
count().over(partitionBy(r1.ROUTINE_SCHEMA, r1.ROUTINE_NAME)).gt(one()),
rowNumber().over(partitionBy(r1.ROUTINE_SCHEMA, r1.ROUTINE_NAME).orderBy(r1.SPECIFIC_NAME))
rowNumber().over(partitionBy(r1.ROUTINE_SCHEMA, r1.ROUTINE_NAME).orderBy(
// [#9754] To stabilise overload calculation, we use the type signature
// replace(field("pg_get_function_arguments({0})", VARCHAR, oid(PG_PROC)), inline('"'), inline("")),
r1.SPECIFIC_NAME
))
).as("overload"),
isAgg)