mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Generate the proper unique name for the duplicate column name.
Thanks Murtuza for reporting the issue.
This commit is contained in:
@@ -151,7 +151,7 @@ class DictCursor(_cursor):
|
||||
if idx == 0:
|
||||
od[d.name] = 1
|
||||
else:
|
||||
name = ("%s-%s" % (d.name, idx))
|
||||
name = d.name
|
||||
while name in od:
|
||||
idx += 1
|
||||
name = ("%s-%s" % (d.name, idx))
|
||||
|
||||
Reference in New Issue
Block a user