From 4115ce82dde0952f486fca5013d7fd204401cc88 Mon Sep 17 00:00:00 2001 From: Hyunsang Han Date: Sun, 18 May 2025 16:38:19 +0900 Subject: [PATCH] Include the OID explicitly in the SELECT clause --- src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java b/src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java index e33c8bfb..e7c47068 100644 --- a/src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java +++ b/src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java @@ -40,7 +40,7 @@ public class PostgresTypes { public final static int NO_SUCH_TYPE = -1; // parameterized with %s for the comparator (=, IN), %s for the actual criteria value and %s for a potential LIMIT 1 statement - private static final String SELECT_PG_TYPE = "SELECT pg_type.* " + private static final String SELECT_PG_TYPE = "SELECT pg_type.oid, pg_type.* " + " FROM pg_catalog.pg_type " + " LEFT " + " JOIN (select ns.oid as nspoid, ns.nspname, r.r "