From f8850e3f41b118cac45f0ef3662de9bbe83e60ab Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 23 Oct 2010 07:44:34 +0000 Subject: [PATCH] update (xml fix and refactoring) --- plugins/generic/enumeration.py | 4 ++-- xml/queries.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 894ebbff8..ad740acd6 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1147,7 +1147,7 @@ class Enumeration: lengths = {} entries = {} - if kb.dbms == "Oracle": + if kb.dbms in ("Oracle", "Microsoft SQL Server", "Sybase"): plusOne = True else: plusOne = False @@ -1169,7 +1169,7 @@ class Enumeration: conf.tbl.upper(), index) elif kb.dbms in ("Microsoft SQL Server", "Sybase"): - query = rootQuery.blind.query % (column, index + 1, conf.db, + query = rootQuery.blind.query % (column, index, conf.db, conf.tbl, colList[0], colList[0], colList[0]) diff --git a/xml/queries.xml b/xml/queries.xml index 4a1d3e274..9a6fa34ac 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -458,7 +458,7 @@ - +