Properly handle setting comments and other options on databases with allowconn = False. Fixes #2024

This commit is contained in:
Murtuza Zabuawala
2017-02-01 10:23:45 +00:00
committed by Dave Page
parent 6d05302ca1
commit 2d442da9ff
2 changed files with 100 additions and 75 deletions

View File

@@ -1525,6 +1525,8 @@ WHERE db.oid = {0}""".format(did))
if my_id in self.connections:
self.connections[my_id]._release()
del self.connections[my_id]
if did is not None:
del self.db_info[did]
if len(self.connections) == 0:
self.ver = None