From 1de109747f21a0168e035cbf47da64ba657ef05e Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 14 Feb 2013 12:39:17 +0000 Subject: [PATCH] minor bug fix introduced in 2267dd8f47fe27869d389a6f61654ad504a9dd74 --- plugins/generic/misc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/generic/misc.py b/plugins/generic/misc.py index 953ce1f17..05131740e 100644 --- a/plugins/generic/misc.py +++ b/plugins/generic/misc.py @@ -119,7 +119,11 @@ class Miscellaneous: def createSupportTbl(self, tblName, tblField, tblType): inject.goStacked("DROP TABLE %s" % tblName, silent=True) - inject.goStacked("CREATE TABLE %s(id INT PRIMARY KEY IDENTITY, %s %s)" % (tblName, tblField, tblType)) + + if Backend.isDbms(DBMS.MSSQL) and tblName == self.cmdTblName: + inject.goStacked("CREATE TABLE %s(id INT PRIMARY KEY IDENTITY, %s %s)" % (tblName, tblField, tblType)) + else: + inject.goStacked("CREATE TABLE %s(%s %s)" % (tblName, tblField, tblType)) def cleanup(self, onlyFileTbl=False, udfDict=None, web=False): """