Fixed potential bug in the table node.
parent
03477d407e
commit
9d985d3d8f
|
@ -823,9 +823,9 @@ class TableView(BaseTableView, DataTypeReader, SchemaDiffTableCompare):
|
||||||
if 'relacl' in data:
|
if 'relacl' in data:
|
||||||
data['relacl'] = parse_priv_to_db(data['relacl'], self.acl)
|
data['relacl'] = parse_priv_to_db(data['relacl'], self.acl)
|
||||||
|
|
||||||
# Parse & format columns
|
# Parse & format columns
|
||||||
data = column_utils.parse_format_columns(data)
|
data = column_utils.parse_format_columns(data)
|
||||||
data = TableView.check_and_convert_name_to_string(data)
|
data = TableView.check_and_convert_name_to_string(data)
|
||||||
|
|
||||||
# 'coll_inherits' is Array but it comes as string from browser
|
# 'coll_inherits' is Array but it comes as string from browser
|
||||||
# We will convert it again to list
|
# We will convert it again to list
|
||||||
|
|
|
@ -1473,7 +1473,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
|
||||||
else:
|
else:
|
||||||
error, errmsg = BaseTableView._check_for_create_sql(data)
|
error, errmsg = BaseTableView._check_for_create_sql(data)
|
||||||
if error:
|
if error:
|
||||||
return gettext('-- definition incomplete')
|
return gettext('-- definition incomplete'), data['name']
|
||||||
|
|
||||||
# validate constraint data.
|
# validate constraint data.
|
||||||
self._validate_constraint_data(data)
|
self._validate_constraint_data(data)
|
||||||
|
|
Loading…
Reference in New Issue