Add support for dropping multiple objects at once from the collection Properties panel. Fixes #1513

This commit is contained in:
Khushboo Vashi
2018-10-31 10:30:36 +00:00
committed by Dave Page
parent 3359a0de7a
commit f17979141c
124 changed files with 5969 additions and 1315 deletions

View File

@@ -44,7 +44,7 @@ def get_tablespace_data(tablespace_path, db_owner):
return data
def create_tablespace(server, test_tablespace_name):
def create_tablespace(server, test_tablespace_name, test_tablespace_dir=None):
try:
connection = utils.get_db_connection(server['db'],
server['username'],
@@ -55,8 +55,10 @@ def create_tablespace(server, test_tablespace_name):
old_isolation_level = connection.isolation_level
connection.set_isolation_level(0)
pg_cursor = connection.cursor()
if test_tablespace_dir is None:
test_tablespace_dir = server['tablespace_path']
pg_cursor.execute("CREATE TABLESPACE %s LOCATION '%s'" %
(test_tablespace_name, server['tablespace_path']))
(test_tablespace_name, test_tablespace_dir))
connection.set_isolation_level(old_isolation_level)
connection.commit()