Skip to content

Commit

Permalink
Do not require typarray column when auto-registering extensions.
Browse files Browse the repository at this point in the history
[resolves #632]
  • Loading branch information
mp911de committed Feb 15, 2024
1 parent 9931b99 commit 24af094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public Publisher<Void> register(PostgresqlConnection connection, ByteBufAllocato
}

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

private static String getPlaceholders() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/r2dbc/postgresql/codec/PostgresTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.oid, typarray, typname, typcategory "
private static final String SELECT_PG_TYPE = "SELECT pg_type.* "
+ " FROM pg_catalog.pg_type "
+ " LEFT "
+ " JOIN (select ns.oid as nspoid, ns.nspname, r.r "
Expand Down

0 comments on commit 24af094

Please sign in to comment.