]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Table/TableReport.py
BaseTools/Ecc: Add a checkpoint for invalid UNI file.
[mirror_edk2.git] / BaseTools / Source / Python / Table / TableReport.py
index 4065a43c5b55a4df81a61341bafcdc8d9a8fc90c..c7829c0097bf9c8c2730e2d3d0afcff5442f6744 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to create/update/query/erase table for ECC reports\r
 #\r
-# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -85,6 +85,13 @@ class TableReport(Table):
                         where Enabled > -1 order by ErrorID, BelongsToItem""" % (self.Table)\r
         return self.Exec(SqlCommand)\r
 \r
+    ## Update table\r
+    #\r
+    def UpdateBelongsToItemByFile(self, ItemID=-1, File=""):\r
+        SqlCommand = """update Report set BelongsToItem=%s where BelongsToTable='File' and BelongsToItem=-2\r
+                        and OtherMsg like '%%%s%%'""" % (ItemID, File)\r
+        return self.Exec(SqlCommand)\r
+\r
     ## Convert to CSV\r
     #\r
     # Get all enabled records from table report and save them to a .csv file\r