Minor fix

This commit is contained in:
Bernardo Damele 2011-02-04 15:57:53 +00:00
parent 1e8eb27156
commit fec88f6a6d
2 changed files with 10 additions and 10 deletions

View File

@ -920,7 +920,7 @@ def parseTargetDirect():
errMsg = "missing remote connection details" errMsg = "missing remote connection details"
raise sqlmapSyntaxException, errMsg raise sqlmapSyntaxException, errMsg
if dbmsName == DBMS.MSSQL: if dbmsName in (DBMS.MSSQL, DBMS.SYBASE):
import _mssql import _mssql
import pymssql import pymssql

View File

@ -25,15 +25,15 @@ class SORTORDER:
LAST = 100 LAST = 100
class DBMS: class DBMS:
ACCESS = "Microsoft Access" ACCESS = "Microsoft Access"
FIREBIRD = "Firebird" FIREBIRD = "Firebird"
MAXDB = "SAP MaxDB" MAXDB = "SAP MaxDB"
MSSQL = "Microsoft SQL Server" MSSQL = "Microsoft SQL Server"
MYSQL = "MySQL" MYSQL = "MySQL"
ORACLE = "Oracle" ORACLE = "Oracle"
PGSQL = "PostgreSQL" PGSQL = "PostgreSQL"
SQLITE = "SQLite" SQLITE = "SQLite"
SYBASE = "Sybase" SYBASE = "Sybase"
class PLACE: class PLACE:
GET = "GET" GET = "GET"