X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FTable%2FTableEotReport.py;h=e8291b48d7c369564a5768ffe7e557e6d62ac18b;hb=c6a14de3ef30291918f3b15436cf6a75db413eea;hp=740105c8f99d721fc68923e71b303757a5869e00;hpb=1be2ed90a20618d71ddf34b8a07d038da0b36854;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/Table/TableEotReport.py b/BaseTools/Source/Python/Table/TableEotReport.py index 740105c8f9..e8291b48d7 100644 --- a/BaseTools/Source/Python/Table/TableEotReport.py +++ b/BaseTools/Source/Python/Table/TableEotReport.py @@ -1,7 +1,7 @@ ## @file # This file is used to create/update/query/erase table for ECC reports # -# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -17,14 +17,14 @@ import Common.EdkLogger as EdkLogger import Common.LongFilePathOs as os, time from Table import Table -from Common.String import ConvertToSqlString2 +from Common.StringUtils import ConvertToSqlString2 import Eot.EotToolError as EotToolError import Eot.EotGlobalData as EotGlobalData ## TableReport # # This class defined a table used for data model -# +# # @param object: Inherited from object class # # @@ -32,7 +32,7 @@ class TableEotReport(Table): def __init__(self, Cursor): Table.__init__(self, Cursor) self.Table = 'Report' - + ## Create table # # Create table report @@ -68,9 +68,9 @@ class TableEotReport(Table): % (self.Table, self.ID, ModuleID, ModuleName, ModuleGuid, SourceFileID, SourceFileFullPath, \ ItemName, ItemType, ItemMode, GuidName, GuidMacro, GuidValue, BelongsToFunction, Enabled) Table.Insert(self, SqlCommand) - + def GetMaxID(self): SqlCommand = """select max(ID) from %s""" % self.Table self.Cur.execute(SqlCommand) for Item in self.Cur: - return Item[0] \ No newline at end of file + return Item[0]