Merge ~cjwatson/launchpad:sqlbase-connect-set-role-after-connecting into launchpad:master
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | f0e405fde4eb69c5d800201af66100ae1b136670 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:sqlbase-connect-set-role-after-connecting |
Merge into: | launchpad:master |
Diff against target: |
316 lines (+188/-66) 5 files modified
dev/null (+0/-41) lib/lp/services/database/sqlbase.py (+23/-18) lib/lp/services/database/tests/test_sqlbase.py (+156/-7) lib/lp/services/webapp/adapter.py (+3/-0) lib/lp/testing/pgsql.py (+6/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Guruprasad | Approve | ||
Review via email: mp+439909@code.launchpad.net |
Commit message
Rework sqlbase.connect to honour set_role_
Description of the change
Commit 31b283765f2cb0c
To fix this, rework `sqlbase.connect` so that it honours `set_role_
I amended this to remove my change to always use `dbconfig.dbuser` as the user to connect to, since that turned out to break `make schema`.