From 39e33bea997d787a9c33fba07b50bfed8c95e293 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 12 Oct 2011 12:31:47 +0000 Subject: [PATCH] important fix (LIMIT m,n should not be considered deterministic in column by column table dumping) --- plugins/generic/enumeration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 92780580b..b7e398321 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1619,6 +1619,8 @@ class Enumeration: query = rootQuery.inband.query % (colString, conf.db, tbl) if not entries and query: + if Backend.getIdentifiedDbms() in (DBMS.MYSQL,): + query = "%s ORDER BY %s" % (query, sorted(colList, key=len)[0]) entries = inject.getValue(query, blind=False, dump=True) if isNoneValue(entries):