Skip to content

Commit f3752eb

Browse files
HyunSangHanmp911de
authored andcommitted
Include OID explicitly in the SELECT clause for older Postgres databases.
[resolves #680][resolves #670]
1 parent e8dd622 commit f3752eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class PostgresTypes {
4040
public final static int NO_SUCH_TYPE = -1;
4141

4242
// parameterized with %s for the comparator (=, IN), %s for the actual criteria value and %s for a potential LIMIT 1 statement
43-
private static final String SELECT_PG_TYPE = "SELECT pg_type.* "
43+
private static final String SELECT_PG_TYPE = "SELECT pg_type.oid, pg_type.* "
4444
+ " FROM pg_catalog.pg_type "
4545
+ " LEFT "
4646
+ " JOIN (select ns.oid as nspoid, ns.nspname, r.r "

0 commit comments

Comments
 (0)