File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4040,6 +4040,14 @@ def safeSQLIdentificatorNaming(name, isTable=False):
40404040 Returns a safe representation of SQL identificator name (internal data format)
40414041
40424042 # Reference: http://stackoverflow.com/questions/954884/what-special-characters-are-allowed-in-t-sql-column-retVal
4043+
4044+ >>> pushValue(kb.forcedDbms)
4045+ >>> kb.forcedDbms = DBMS.MSSQL
4046+ >>> getText(safeSQLIdentificatorNaming("begin"))
4047+ '[begin]'
4048+ >>> getText(safeSQLIdentificatorNaming("foobar"))
4049+ 'foobar'
4050+ >>> kb.forceDbms = popValue()
40434051 """
40444052
40454053 retVal = name
@@ -4079,6 +4087,14 @@ def safeSQLIdentificatorNaming(name, isTable=False):
40794087def unsafeSQLIdentificatorNaming (name ):
40804088 """
40814089 Extracts identificator's name from its safe SQL representation
4090+
4091+ >>> pushValue(kb.forcedDbms)
4092+ >>> kb.forcedDbms = DBMS.MSSQL
4093+ >>> getText(unsafeSQLIdentificatorNaming("[begin]"))
4094+ 'begin'
4095+ >>> getText(unsafeSQLIdentificatorNaming("foobar"))
4096+ 'foobar'
4097+ >>> kb.forceDbms = popValue()
40824098 """
40834099
40844100 retVal = name
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.11.41 "
21+ VERSION = "1.3.11.42 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments