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

Skip to content

Commit fdf417f

Browse files
committed
Minor adjustment and bug fix
1 parent 91dd609 commit fdf417f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

lib/core/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,9 @@ def __setVerbosity():
10721072

10731073
if conf.verbose == 1:
10741074
logger.setLevel(logging.INFO)
1075-
elif conf.verbose > 1 and conf.eta:
1076-
conf.verbose = 1
1077-
logger.setLevel(logging.INFO)
1075+
elif conf.verbose > 2 and conf.eta:
1076+
conf.verbose = 2
1077+
logger.setLevel(logging.DEBUG)
10781078
elif conf.verbose == 2:
10791079
logger.setLevel(logging.DEBUG)
10801080
elif conf.verbose == 3:

lib/utils/resume.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def queryOutputLength(expression, payload):
6464
return None, None, None
6565

6666
if selectDistinctExpr:
67-
lengthExpr = "SELECT %s FROM (%s) AS T%s" % (lengthQuery % regExpr, expression, randomStr(4))
67+
lengthExpr = "SELECT %s FROM (%s)" % (lengthQuery % regExpr, expression)
68+
69+
if kb.dbms in ( "MySQL", "PostgreSQL" ):
70+
lengthExpr += " AS %s" % randomStr(lowercase=True)
6871
elif select:
6972
lengthExpr = expression.replace(regExpr, lengthQuery % regExpr, 1)
7073
else:

0 commit comments

Comments
 (0)