summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/mysql_upgrade.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c
index a6215d0a977..771fb947e73 100644
--- a/client/mysql_upgrade.c
+++ b/client/mysql_upgrade.c
@@ -965,8 +965,9 @@ static int install_used_engines(void)
{
char buf[512];
DYNAMIC_STRING ds_result;
- const char *query = "SELECT DISTINCT LOWER(engine) FROM information_schema.tables"
- " WHERE table_comment LIKE 'Unknown storage engine%'";
+ const char *query = "SELECT DISTINCT LOWER(engine) AS c1 FROM information_schema.tables"
+ " WHERE table_comment LIKE 'Unknown storage engine%'"
+ " ORDER BY c1";
if (opt_systables_only || !from_before_10_1())
{