Skip to content

Commit

Permalink
add order by ordinal position for query columns
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Aaqil <[email protected]>
  • Loading branch information
aaqilniz committed Oct 13, 2023
1 parent 21e3bba commit 6069423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/discovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ function mixinDiscovery(MySQL, mysql) {
(table ? ' WHERE table_name=' + mysql.escape(table) : ''),
'table_name, ordinal_position', {});
}
sql += " ORDER BY ordinal_position";

Check failure on line 189 in lib/discovery.js

View workflow job for this annotation

GitHub Actions / Code Lint

Strings must use singlequote
return sql;
};

Expand Down

0 comments on commit 6069423

Please sign in to comment.