diff --git a/extra/dbwire/firebird.py b/extra/dbwire/firebird.py index 0e1c8ec5a..647070723 100644 --- a/extra/dbwire/firebird.py +++ b/extra/dbwire/firebird.py @@ -341,7 +341,18 @@ def _b2i_signed(b): return n def _scaled(n, scale): - # integer n represents n * 10**scale (scale <= 0); render as an exact decimal string + """ + integer n represents n * 10**scale (scale <= 0); render as an exact decimal string + + >>> _scaled(1234, -2) + '12.34' + >>> _scaled(-5, -2) + '-0.05' + >>> _scaled(5, -4) + '0.0005' + >>> _scaled(7, 0) + '7' + """ if scale >= 0: return str(n * (10 ** scale)) digits = "%0*d" % (-scale + 1, abs(n)) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8653a9dd2..70cf154e8 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.8.5" +VERSION = "1.10.8.6" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)