[MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)
This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases) bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50
This commit is contained in:
commit
c0308d7522
|
@ -371,7 +371,7 @@ class db(netsvc.ExportService):
|
|||
cr.execute("select datname from pg_database where datdba=(select usesysid from pg_user where usename=%s) and datname not in %s order by datname", (db_user, templates_list))
|
||||
else:
|
||||
cr.execute("select datname from pg_database where datname not in %s order by datname", (templates_list,))
|
||||
res = [str(name) for (name,) in cr.fetchall()]
|
||||
res = [tools.ustr(name) for (name,) in cr.fetchall()]
|
||||
except Exception:
|
||||
res = []
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue