@@ -134,14 +134,16 @@ def checkDbmsOs(self, detailed=False):
134134 self .createSupportTbl (self .fileTblName , self .tblField , "varchar(1000)" )
135135 inject .goStacked ("INSERT INTO %s(%s) VALUES (%s)" % (self .fileTblName , self .tblField , "@@VERSION" ))
136136
137- versions = { "2003" : ("5.2" , (2 , 1 )),
138- # TODO: verify this
139- #"2003": ("6.0", (2, 1)),
140- "2008" : ("7.0" , (2 , 1 ,)),
137+ # Reference: http://en.wikipedia.org/wiki/Comparison_of_Microsoft_Windows_versions
138+ # http://en.wikipedia.org/wiki/Windows_NT#Releases
139+ versions = { "NT" : ("4.0" , (6 , 5 , 4 , 3 , 2 , 1 )),
141140 "2000" : ("5.0" , (4 , 3 , 2 , 1 )),
142- "7" : ("6.1" , (1 , 0 )),
143141 "XP" : ("5.1" , (3 , 2 , 1 )),
144- "NT" : ("4.0" , (6 , 5 , 4 , 3 , 2 , 1 )) }
142+ "2003" : ("5.2" , (2 , 1 )),
143+ "Vista or 2008" : ("6.0" , (2 , 1 )),
144+ "7 or 2008 R2" : ("6.1" , (1 , 0 )),
145+ "8 or 2012" : ("6.2" , (0 ,)),
146+ "8.1 or 2012 R2" : ("6.3" , (0 ,)) }
145147
146148 # Get back-end DBMS underlying operating system version
147149 for version , data in versions .items ():
0 commit comments