@@ -45,9 +45,10 @@ def _commentCheck(self):
4545 # Reference: https://dev.mysql.com/doc/relnotes/mysql/<major>.<minor>/en/
4646
4747 versions = (
48+ (90200 , 90202 ), # MySQL 9.2
4849 (90100 , 90102 ), # MySQL 9.1
4950 (90000 , 90002 ), # MySQL 9.0
50- (80400 , 80404 ), # MySQL 8.4
51+ (80400 , 80405 ), # MySQL 8.4
5152 (80300 , 80302 ), # MySQL 8.3
5253 (80200 , 80202 ), # MySQL 8.2
5354 (80100 , 80102 ), # MySQL 8.1
@@ -207,8 +208,14 @@ def checkDbms(self):
207208
208209 kb .data .has_information_schema = True
209210
211+ # Determine if it is MySQL >= 9.0.0
212+ if inject .checkBooleanExpression ("ISNULL(VECTOR_DIM(NULL))" ):
213+ Backend .setVersion (">= 9.0.0" )
214+ setDbms ("%s 9" % DBMS .MYSQL )
215+ self .getBanner ()
216+
210217 # Determine if it is MySQL >= 8.0.0
211- if inject .checkBooleanExpression ("ISNULL(JSON_STORAGE_FREE(NULL))" ):
218+ elif inject .checkBooleanExpression ("ISNULL(JSON_STORAGE_FREE(NULL))" ):
212219 Backend .setVersion (">= 8.0.0" )
213220 setDbms ("%s 8" % DBMS .MYSQL )
214221 self .getBanner ()
0 commit comments