You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ " JOIN (select ns.oid as nspoid, ns.nspname, r.r "
50
+
+ " JOIN (select ns.oid as nspoid, ns.nspname as schema_name, r.r "
47
51
+ " from pg_namespace as ns "
48
52
+ " join ( select s.r, (current_schemas(false))[s.r] as nspname "
49
53
+ " from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r "
@@ -66,12 +70,14 @@ public static PostgresTypes from(PostgresqlConnection connection) {
66
70
}
67
71
68
72
/**
69
-
* Lookup Postgres types by {@code typname}. Please note that {@code typname} inlined to use simple statements. Therefore, {@code typname} gets verified against {@link #TYPENAME} to prevent SQL
73
+
* Lookup Postgres types by {@code typname}. Please note that {@code typeName} inlined to use simple statements. Therefore, {@code typname} gets verified against {@link #TYPENAME} to prevent SQL
70
74
* injection.
71
75
*
72
76
* @param typeName the type name. Must comply with the pattern {@code [a-zA-Z0-9_]+}
73
77
* @return a mono emitting the {@link PostgresType} if found or {@link Mono#empty()} if not found
78
+
* @deprecated in favor of {@link #lookupTypes(String...)}
* Lookup Postgres types by {@code typname}. Please note that {@code typeName} inlined to use simple statements. Therefore, {@code typeName} gets verified against {@link #TYPENAME} to prevent SQL
92
+
* injection.
93
+
*
94
+
* @param typeName the type name. Must comply with the pattern {@code [a-zA-Z0-9_]+}
95
+
* @return a mono emitting the {@link PostgresType} if found or {@link Mono#empty()} if not found
0 commit comments