Changeset 61472 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/testcase.pgsql
- Timestamp:
- Jun 5, 2016 5:46:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testcase.pgsql
r61468 r61472 32 32 DROP FUNCTION IF EXISTS del_testcase(INTEGER); 33 33 DROP FUNCTION IF EXISTS TestCaseLogic_delEntry(INTEGER, INTEGER); 34 DROP FUNCTION IF EXISTS TestCaseLogic_addEntry(a_uidAuthor INTEGER, a_sName TEXT, a_sDescription TEXT, 35 a_fEnabled BOOL, a_cSecTimeout INTEGER, a_sTestBoxReqExpr TEXT, 36 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT); 37 DROP FUNCTION IF EXISTS TestCaseLogic_editEntry(a_uidAuthor INTEGER, a_idTestCase INTEGER, a_sName TEXT, a_sDescription TEXT, 38 a_fEnabled BOOL, a_cSecTimeout INTEGER, a_sTestBoxReqExpr TEXT, 39 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT); 34 40 35 41 --- … … 96 102 $$ LANGUAGE plpgsql; 97 103 104 98 105 CREATE OR REPLACE function TestCaseLogic_addEntry(a_uidAuthor INTEGER, a_sName TEXT, a_sDescription TEXT, 99 106 a_fEnabled BOOL, a_cSecTimeout INTEGER, a_sTestBoxReqExpr TEXT, 100 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT) 107 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT, 108 a_sComment TEXT) 101 109 RETURNS INTEGER AS $$ 102 110 DECLARE … … 106 114 107 115 INSERT INTO TestCases (uidAuthor, sName, sDescription, fEnabled, cSecTimeout, 108 sTestBoxReqExpr, sBuildReqExpr, sBaseCmd, sTestSuiteZips )116 sTestBoxReqExpr, sBuildReqExpr, sBaseCmd, sTestSuiteZips, sComment) 109 117 VALUES (a_uidAuthor, a_sName, a_sDescription, a_fEnabled, a_cSecTimeout, 110 a_sTestBoxReqExpr, a_sBuildReqExpr, a_sBaseCmd, a_sTestSuiteZips )118 a_sTestBoxReqExpr, a_sBuildReqExpr, a_sBaseCmd, a_sTestSuiteZips, a_Comment) 111 119 RETURNING idTestcase INTO v_idTestCase; 112 120 RETURN v_idTestCase; … … 114 122 $$ LANGUAGE plpgsql; 115 123 124 116 125 CREATE OR REPLACE function TestCaseLogic_editEntry(a_uidAuthor INTEGER, a_idTestCase INTEGER, a_sName TEXT, a_sDescription TEXT, 117 126 a_fEnabled BOOL, a_cSecTimeout INTEGER, a_sTestBoxReqExpr TEXT, 118 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT) 127 a_sBuildReqExpr TEXT, a_sBaseCmd TEXT, a_sTestSuiteZips TEXT, 128 a_sComment TEXT) 119 129 RETURNS INTEGER AS $$ 120 130 DECLARE … … 126 136 PERFORM TestCaseLogic_historizeEntry(a_idTestCase, CURRENT_TIMESTAMP); 127 137 INSERT INTO TestCases (idTestCase, uidAuthor, sName, sDescription, fEnabled, cSecTimeout, 128 sTestBoxReqExpr, sBuildReqExpr, sBaseCmd, sTestSuiteZips )138 sTestBoxReqExpr, sBuildReqExpr, sBaseCmd, sTestSuiteZips, sComment) 129 139 VALUES (a_idTestCase, a_uidAuthor, a_sName, a_sDescription, a_fEnabled, a_cSecTimeout, 130 a_sTestBoxReqExpr, a_sBuildReqExpr, a_sBaseCmd, a_sTestSuiteZips )140 a_sTestBoxReqExpr, a_sBuildReqExpr, a_sBaseCmd, a_sTestSuiteZips, a_sComment) 131 141 RETURNING idGenTestCase INTO v_idGenTestCase; 132 142 RETURN v_idGenTestCase;
Note:
See TracChangeset
for help on using the changeset viewer.