File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,12 @@ def execute_sql_string_sanstran(self, sqlString):
277277 SQL commands are expected to be delimited by a semi-colon (';').
278278
279279 For example:
280- | Execute Sql String Sanstran | DELETE FROM person_employee_table; DELETE FROM person_table |
281-
282- For example with an argument:
283- | Execute Sql String Sanstran | SELECT * FROM person WHERE first_name = ${FIRSTNAME} |
280+ | Check If Exists In Database SELECT * FROM dbo.ExampleTable WHERE Id = 1 AND ExampleFlag = 0
281+ | Execute Sql String Sanstran BEGIN TRAN
282+ | Execute Sql String Sanstran UPDATE dbo.ExampleTable SET ExampleFlag = 1 WHERE Id = 1 AND ExampleFlag = 0
283+ | Check If Exists In Database SELECT * FROM dbo.ExampleTable WHERE Id = 1 AND ExampleFlag = 1
284+ | Execute Sql String Sanstran ROLLBACK TRAN
285+ | Check If Exists In Database SELECT * FROM dbo.ExampleTable WHERE Id = 1 AND ExampleFlag = 0
284286 """
285287 cur = self ._dbconnection .cursor ()
286288 logger .info ('Executing : Execute SQL String Sanstran | %s ' % (sqlString ))
You can’t perform that action at this time.
0 commit comments