Value1 VARCHAR NOT NULL,\r
Value2 VARCHAR,\r
Value3 VARCHAR,\r
- Arch VarCHAR,\r
+ Scope1 VarCHAR,\r
+ Scope2 VarCHAR,\r
BelongsToItem SINGLE NOT NULL,\r
BelongsToFile SINGLE NOT NULL,\r
StartLine INTEGER NOT NULL,\r
# @param EndColumn: EndColumn of a Fdf item\r
# @param Enabled: If this item enabled\r
#\r
- def Insert(self, Model, Value1, Value2, Value3, Arch, BelongsToItem, BelongsToFile, StartLine, StartColumn, EndLine, EndColumn, Enabled):\r
+ def Insert(self, Model, Value1, Value2, Value3, Scope1, Scope2, BelongsToItem, BelongsToFile, StartLine, StartColumn, EndLine, EndColumn, Enabled):\r
self.ID = self.ID + 1\r
- (Value1, Value2, Value3, Arch) = ConvertToSqlString((Value1, Value2, Value3, Arch))\r
- SqlCommand = """insert into %s values(%s, %s, '%s', '%s', '%s', '%s', %s, %s, %s, %s, %s, %s, %s)""" \\r
- % (self.Table, self.ID, Model, Value1, Value2, Value3, Arch, BelongsToItem, BelongsToFile, StartLine, StartColumn, EndLine, EndColumn, Enabled)\r
+ (Value1, Value2, Value3, Scope1, Scope2) = ConvertToSqlString((Value1, Value2, Value3, Scope1, Scope2))\r
+ SqlCommand = """insert into %s values(%s, %s, '%s', '%s', '%s', '%s', '%s', %s, %s, %s, %s, %s, %s, %s)""" \\r
+ % (self.Table, self.ID, Model, Value1, Value2, Value3, Scope1, Scope2, BelongsToItem, BelongsToFile, StartLine, StartColumn, EndLine, EndColumn, Enabled)\r
Table.Insert(self, SqlCommand)\r
\r
return self.ID\r
# @retval: A recordSet of all found records \r
#\r
def Query(self, Model):\r
- SqlCommand = """select ID, Value1, Value2, Value3, Arch, BelongsToItem, BelongsToFile, StartLine from %s\r
+ SqlCommand = """select ID, Value1, Value2, Value3, Scope1, Scope2, BelongsToItem, BelongsToFile, StartLine from %s\r
where Model = %s\r
and Enabled > -1""" % (self.Table, Model)\r
EdkLogger.debug(4, "SqlCommand: %s" % SqlCommand)\r