mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fixed an issue where collation was set to none if we remove it while creating partitioned table. #5820
This commit is contained in:
parent
9587d2bb3b
commit
288ba1d1f9
@ -370,7 +370,7 @@ class CollationView(PGChildNodeView, SchemaDiffObjectCompare):
|
||||
as AJAX response.
|
||||
"""
|
||||
|
||||
res = [{'label': '', 'value': ''}]
|
||||
res = []
|
||||
try:
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
'get_collations.sql']))
|
||||
|
@ -1139,7 +1139,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
|
||||
if row['key_type'] == 'column':
|
||||
partition_scheme += self.qtIdent(
|
||||
self.conn, row['pt_column'])
|
||||
if 'collationame' in row:
|
||||
if 'collationame' in row and row['collationame']:
|
||||
partition_scheme += ' COLLATE %s' % row['collationame']
|
||||
|
||||
if 'op_class' in row:
|
||||
|
Loading…
Reference in New Issue
Block a user