File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/charms/postgresql_k8s/v0 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3535
3636# Increment this PATCH version before using `charmcraft publish-lib` or reset
3737# to 0 if you are raising the major API version
38- LIBPATCH = 51
38+ LIBPATCH = 53
3939
4040# Groups to distinguish HBA access
4141ACCESS_GROUP_IDENTITY = "identity_access"
@@ -672,7 +672,9 @@ def list_users_from_relation(self) -> Set[str]:
672672 try :
673673 with self ._connect_to_database () as connection , connection .cursor () as cursor :
674674 cursor .execute (
675- "SELECT usename FROM pg_catalog.pg_user WHERE usename LIKE 'relation_id_%';"
675+ "SELECT usename "
676+ "FROM pg_catalog.pg_user "
677+ "WHERE usename LIKE 'relation_id_%' OR usename LIKE 'relation-%';"
676678 )
677679 usernames = cursor .fetchall ()
678680 return {username [0 ] for username in usernames }
You can’t perform that action at this time.
0 commit comments