mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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.
|
as AJAX response.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
res = [{'label': '', 'value': ''}]
|
res = []
|
||||||
try:
|
try:
|
||||||
SQL = render_template("/".join([self.template_path,
|
SQL = render_template("/".join([self.template_path,
|
||||||
'get_collations.sql']))
|
'get_collations.sql']))
|
||||||
|
@ -1139,7 +1139,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
|
|||||||
if row['key_type'] == 'column':
|
if row['key_type'] == 'column':
|
||||||
partition_scheme += self.qtIdent(
|
partition_scheme += self.qtIdent(
|
||||||
self.conn, row['pt_column'])
|
self.conn, row['pt_column'])
|
||||||
if 'collationame' in row:
|
if 'collationame' in row and row['collationame']:
|
||||||
partition_scheme += ' COLLATE %s' % row['collationame']
|
partition_scheme += ' COLLATE %s' % row['collationame']
|
||||||
|
|
||||||
if 'op_class' in row:
|
if 'op_class' in row:
|
||||||
|
Loading…
Reference in New Issue
Block a user