Implementing support for v2.x for H2

This commit is contained in:
Miroslav Stampar
2025-12-25 01:04:41 +01:00
parent af8742e882
commit 60d145ab6b
5 changed files with 15 additions and 9 deletions

View File

@@ -103,6 +103,10 @@ class Fingerprint(GenericFingerprint):
else:
setDbms(DBMS.H2)
result = inject.checkBooleanExpression("JSON_OBJECT() IS NOT NULL")
version = '2' if result else '1'
Backend.setVersion(version)
self.getBanner()
return True