Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4ddfe8

Browse files
committed
Minor bug fixed (variable undeclared)
1 parent 50bbb0c commit b4ddfe8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/dbms/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def checkDbms(self):
219219
kb.dbmsVersion = [">= 8.4.0"]
220220
elif inject.getValue("SUBSTR(TRANSACTION_TIMESTAMP()::text, 1, 1)", unpack=False, charsetType=2) in ( "1", "2" ) and not inject.getValue("SUBSTR(TRANSACTION_TIMESTAMP(), 1, 1)", unpack=False, charsetType=2) in ( "1", "2" ):
221221
kb.dbmsVersion = [">= 8.3.0", "< 8.4"]
222-
elif transTime:
222+
elif inject.getValue("SUBSTR(TRANSACTION_TIMESTAMP(), 1, 1)", unpack=False, charsetType=2):
223223
kb.dbmsVersion = [">= 8.2.0", "< 8.3.0"]
224224
elif inject.getValue("GREATEST(5, 9, 1)", unpack=False, charsetType=2) == "9":
225225
kb.dbmsVersion = [">= 8.1.0", "< 8.2.0"]

0 commit comments

Comments
 (0)