Closed iainlane closed 11 months ago
The unit test seems to fail, mind having a look @iainlane ?
Hmm, it works here 🤔
I'll take a look later and see if CI does something different to me.
@Duologic I found the cause, nondeterministic map iteration order, should be fixed in e761eaa, could you take a look please?
Inside postgresql, some privileges are altered when issuing a
GRANT
, for exampleALL
is expanded toCREATE, TEMPORARY, CONNECT
.When we observe the grant, we query privileges on the database to see if the ones in the grant exist. Given that they are expanded, we can't simply query for what the user gave us. Expand the privileges which need expanding before we make the query.
Closes: #92
How has this code been tested