diff options
| author | Christophe Monniez <moc@odoo.com> | 2017-11-10 13:40:59 +0100 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2017-11-17 15:23:14 +0100 |
| commit | 0fdf2913052eecd426be6515d8f77cbd176dcee1 (patch) | |
| tree | e743c416fbfc54ec6cdc4fda8193afdfb37f9f9a /addons/mail/static/src/js | |
| parent | 21dd24c071fe09e9157ddbf44b90925709744f40 (diff) | |
[REF] db: simplify list_dbs
When trying to list db's, the db_user is searched and verified before
searching for the databases.
As it's enclosed in a db.cursor context manager, we can assume that
there is a db user at this very moment.
This commit uses a single query to find databases that belongs to this
cursor user.
Also, this commit adds a message in the logs when an exception occurs
to facilitate debugging instead of silently returning an empty list.
Diffstat (limited to 'addons/mail/static/src/js')
0 files changed, 0 insertions, 0 deletions
