Skip to content

Commit 1de1097

Browse files
committed
minor bug fix introduced in 2267dd8
1 parent 0b8de94 commit 1de1097

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/generic/misc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ def delRemoteFile(self, filename):
119119

120120
def createSupportTbl(self, tblName, tblField, tblType):
121121
inject.goStacked("DROP TABLE %s" % tblName, silent=True)
122-
inject.goStacked("CREATE TABLE %s(id INT PRIMARY KEY IDENTITY, %s %s)" % (tblName, tblField, tblType))
122+
123+
if Backend.isDbms(DBMS.MSSQL) and tblName == self.cmdTblName:
124+
inject.goStacked("CREATE TABLE %s(id INT PRIMARY KEY IDENTITY, %s %s)" % (tblName, tblField, tblType))
125+
else:
126+
inject.goStacked("CREATE TABLE %s(%s %s)" % (tblName, tblField, tblType))
123127

124128
def cleanup(self, onlyFileTbl=False, udfDict=None, web=False):
125129
"""

0 commit comments

Comments
 (0)