From 6069423dc681686fdb3038439ab45b51f69ea99f Mon Sep 17 00:00:00 2001 From: Muhammad Aaqil Date: Fri, 13 Oct 2023 19:32:11 +0500 Subject: [PATCH] add order by ordinal position for query columns Signed-off-by: Muhammad Aaqil --- lib/discovery.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/discovery.js b/lib/discovery.js index d765ea945..63fb4a98a 100644 --- a/lib/discovery.js +++ b/lib/discovery.js @@ -186,6 +186,7 @@ function mixinDiscovery(MySQL, mysql) { (table ? ' WHERE table_name=' + mysql.escape(table) : ''), 'table_name, ordinal_position', {}); } + sql += " ORDER BY ordinal_position"; return sql; };