Adding support for TiDB

This commit is contained in:
Miroslav Stampar
2020-01-23 23:27:33 +01:00
parent 447e5ec0ea
commit 3779531540
4 changed files with 10 additions and 3 deletions

View File

@@ -99,7 +99,13 @@ class Fingerprint(GenericFingerprint):
fork = hashDBRetrieve(HASHDB_KEYS.DBMS_FORK)
if fork is None:
fork = inject.checkBooleanExpression("VERSION() LIKE '%MariaDB%'") and FORK.MARIADB or ""
if inject.checkBooleanExpression("VERSION() LIKE '%MariaDB%'"):
fork = FORK.MARIADB
elif inject.checkBooleanExpression("VERSION() LIKE '%TiDB%'"):
fork = FORK.TIDB
else:
fork = ""
hashDBWrite(HASHDB_KEYS.DBMS_FORK, fork)
value = ""