Skip to content

Commit d79ddbf

Browse files
Andrzej Religadahlerlend
authored andcommitted
WL#15440 MySQL REST Service (MRS) - Umbrella WL
Post-push fix: fixing search_mapping.test failing due to the previous push Change-Id: Icd1eae01a7a543b273aa4b284d5c0a9e763d609c
1 parent f19f186 commit d79ddbf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mysql-test/suite/router/include/mrs/db_object/modify_fields.inc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ if (!$mrs_modify_fields)
2121
let $_columns=$mrs_modify_columns;
2222
let $_fileds=$mrs_modify_fields;
2323

24-
START TRANSACTION;
24+
if ($mrs_modify_use_transaction) {
25+
START TRANSACTION;
26+
}
2527

2628
while($_columns)
2729
{
@@ -43,12 +45,15 @@ while($_columns)
4345
WHERE db_column->>"\$.name"="$_column_element";
4446
}
4547

46-
COMMIT;
48+
if ($mrs_modify_use_transaction) {
49+
COMMIT;
50+
}
4751

4852
--enable_query_log
4953
--enable_result_log
5054

5155
--let $$mrs_modify_columns=
5256
--let $mrs_modify_fields=
57+
--let $mrs_modify_use_transaction=
5358

5459

mysql-test/suite/router/t/detect_changes_db_object.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
--let $mrs_sql_id_variable=@db_obj2
110110
--let $mrs_modify_columns=id, name, comments, date
111111
--let $mrs_modify_fields=my_id, my_name, my_comments, my_date
112+
--let $mrs_modify_use_transaction=1
112113
--source ../include/mrs/db_object/modify_fields.inc
113114

114115

0 commit comments

Comments
 (0)