From dba64e77f133c332c339421e3a4844639ea6767e Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 26 May 2017 11:04:32 -0400 Subject: [PATCH] Order columns in multi-column pkeys correctly. Fixes #2417 --- web/pgadmin/tools/sqleditor/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/tools/sqleditor/command.py b/web/pgadmin/tools/sqleditor/command.py index 2bb90c2b4..9ed9154f7 100644 --- a/web/pgadmin/tools/sqleditor/command.py +++ b/web/pgadmin/tools/sqleditor/command.py @@ -10,7 +10,7 @@ """ Implemented classes for the different object type used by data grid """ from abc import ABCMeta, abstractmethod - +from collections import OrderedDict import six from flask import render_template from flask_babel import gettext @@ -368,7 +368,7 @@ class TableCommand(GridCommand): conn = manager.connection(did=self.did, conn_id=self.conn_id) pk_names = '' - primary_keys = dict() + primary_keys = OrderedDict() if conn.connected():