Skip to content

Commit

Permalink
fix: unnecessary set default_transaction_isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Sep 27, 2023
1 parent 3c1cdd4 commit 290d906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- #2939, Fix `count=exact` not being included in `Preference-Applied` - @steve-chavez
- #2800, Fix not including to-one embed resources that had a `NULL` value in any of the selected fields when doing null filtering on them - @laurenceisla
- #2846, Fix error when requesting `Prefer: count=<type>` and doing null filtering on embedded resources - @laurenceisla
- #2846, Fix setting `default_transaction_isolation` unnecessarily - @steve-chavez

## [11.2.0] - 2023-08-10

Expand Down
2 changes: 1 addition & 1 deletion src/PostgREST/Config/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ queryRoleSettings prepared =
select
kv.rolname,
i.value as iso_lvl,
array_agg(row(kv.key, kv.value)) filter (where key <> 'default_transation_isolation') as role_settings
coalesce(array_agg(row(kv.key, kv.value)) filter (where key <> 'default_transaction_isolation'), '{}') as role_settings
from kv_settings kv
join pg_settings ps on ps.name = kv.key and ps.context = 'user'
left join iso_setting i on i.rolname = kv.rolname
Expand Down

0 comments on commit 290d906

Please sign in to comment.