Skip to content

Commit 24af094

Browse files
committed
Do not require typarray column when auto-registering extensions.
[resolves #632]
1 parent 9931b99 commit 24af094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public Publisher<Void> register(PostgresqlConnection connection, ByteBufAllocato
119119
}
120120

121121
private PostgresqlStatement createQuery(PostgresqlConnection connection) {
122-
return connection.createStatement(String.format("SELECT oid, typname, typarray FROM pg_catalog.pg_type WHERE typname IN (%s)", getPlaceholders()));
122+
return connection.createStatement(String.format("SELECT * FROM pg_catalog.pg_type WHERE typname IN (%s)", getPlaceholders()));
123123
}
124124

125125
private static String getPlaceholders() {

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

+1-1
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.oid, typarray, typname, typcategory "
43+
private static final String SELECT_PG_TYPE = "SELECT 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)