]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Table/TableQuery.py
Sync EDKII BaseTools to BaseTools project r1903.
[mirror_edk2.git] / BaseTools / Source / Python / Table / TableQuery.py
index 9a9a66ccb6a7624d56d740d16837ae4652bfb8b3..4ad9dc5e5507e4eacb5227c4e19ecd6458e9480a 100644 (file)
@@ -21,7 +21,7 @@ from Table import Table
 ## TableQuery\r
 #\r
 # This class defined a table used for Query\r
-# \r
+#\r
 # @param object:       Inherited from object class\r
 #\r
 #\r
@@ -29,19 +29,21 @@ class TableQuery(Table):
     def __init__(self, Cursor):\r
         Table.__init__(self, Cursor)\r
         self.Table = 'Query'\r
-    \r
+\r
     ## Create table\r
     #\r
     # Create table Query\r
     #\r
     # @param ID:                 ID of a Query\r
-    # @param Name:               Modifier of a Query\r
+    # @param Name:               Name of a Query\r
+    # @param Modifer:            Modifier of a Query\r
     # @param Value:              Type of a Query\r
     # @param Model:              Model of a Query\r
     #\r
     def Create(self):\r
         SqlCommand = """create table IF NOT EXISTS %s(ID INTEGER PRIMARY KEY,\r
                                                       Name TEXT DEFAULT '',\r
+                                                      Modifier TEXT DEFAULT '',\r
                                                       Value TEXT DEFAULT '',\r
                                                       Model INTEGER DEFAULT 0\r
                                                      )""" % self.Table\r
@@ -52,15 +54,15 @@ class TableQuery(Table):
     # Insert a record into table Query\r
     #\r
     # @param ID:                 ID of a Query\r
-    # @param Name:               Modifier of a Query\r
-    # @param Value:              Type of a Query\r
+    # @param Name:               Name of a Query\r
+    # @param Modifier:           Modifier of a Query\r
+    # @param Value:              Value of a Query\r
     # @param Model:              Model of a Query\r
     #\r
-    def Insert(self, Name, Value, Model):\r
+    def Insert(self, Name, Modifier, Value, Model):\r
         self.ID = self.ID + 1\r
-        SqlCommand = """insert into %s values(%s, '%s', '%s', %s)""" \\r
-                                           % (self.Table, self.ID, Name, Value, Model)\r
+        SqlCommand = """insert into %s values(%s, '%s', '%s', '%s', %s)""" \\r
+                                           % (self.Table, self.ID, Name, Modifier, Value, Model)\r
         Table.Insert(self, SqlCommand)\r
 \r
         return self.ID\r
-    
\ No newline at end of file