@@ -142,9 +142,11 @@ def checkDbmsOs(self, detailed=False):
142142 inject .goStacked ("INSERT INTO %s(%s) VALUES (%s)" % (self .fileTblName , self .tblField , "@@VERSION" ))
143143
144144 versions = { "2003" : ("5.2" , (2 , 1 )),
145+ # TODO: verify this
145146 #"2003": ("6.0", (2, 1)),
146147 "2008" : ("7.0" , (1 ,)),
147148 "2000" : ("5.0" , (4 , 3 , 2 , 1 )),
149+ "7" : ("6.1" , (1 , 0 )),
148150 "XP" : ("5.1" , (2 , 1 )),
149151 "NT" : ("4.0" , (6 , 5 , 4 , 3 , 2 , 1 )) }
150152
@@ -154,7 +156,7 @@ def checkDbmsOs(self, detailed=False):
154156 query += "LIKE '%Windows NT " + data [0 ] + "%'"
155157 result = inject .goStacked (query )
156158
157- if result is not None and result .isdigit ():
159+ if result is not None and len ( result ) > 0 and result [ 0 ] .isdigit ():
158160 Backend .setOsVersion (version )
159161 infoMsg += " %s" % Backend .getOsVersion ()
160162 break
@@ -180,7 +182,7 @@ def checkDbmsOs(self, detailed=False):
180182 query += "LIKE '%Service Pack " + getUnicode (sp ) + "%'"
181183 result = inject .goStacked (query )
182184
183- if result is not None and result .isdigit ():
185+ if result is not None and len ( result ) > 0 and result [ 0 ] .isdigit ():
184186 Backend .setOsServicePack (sp )
185187 break
186188
0 commit comments