Default repository for the execsql-upsert scripts
Revision | 98d0a593abe07d2b183c2f01e60f864eb10df8dd (tree) |
---|---|
Time | 2020-04-29 09:38:28 |
Author | Dreas Nielsen <dreas.nielsen@gmai...> |
Commiter | Dreas Nielsen |
Modified to explicitly roll back changes if do_commit is 'No' rather than just restoring the previous autocommit state.
@@ -94,6 +94,11 @@ | ||
94 | 94 | margin-left: 1.5em; |
95 | 95 | } |
96 | 96 | |
97 | +pre { | |
98 | + font-family: "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Lucida Console", "Courier New", Courier, fixed; | |
99 | + font-size: 90%; | |
100 | +} | |
101 | + | |
97 | 102 | h1, h2, h3, h4 { |
98 | 103 | font-family: {{ theme_headerfont }}; |
99 | 104 | font-weight: normal; |
@@ -142,6 +142,7 @@ | ||
142 | 142 | -- through QA check 8. RDN. |
143 | 143 | -- 2019-06-16 Nominally complete revisions of PK updating scripts. RDN. |
144 | 144 | -- 2019-06-23 Completed debugging of PK updating scripts. RDN. |
145 | +-- 2020-04-28 Explicitly rolled back the changes if 'do_commit' = "No". RDN. | |
145 | 146 | -- ================================================================== |
146 | 147 | |
147 | 148 |
@@ -527,6 +528,7 @@ | ||
527 | 528 | -- !x! write "!!$current_time!! -- CHANGES COMMITTED." to !!logfile!! |
528 | 529 | -- !x! endif |
529 | 530 | -- !x! else |
531 | + -- !x! autocommit on with rollback | |
530 | 532 | -- !x! write "CHANGES NOT COMMITTED ('do_commit' argument = !!#do_commit!!)" |
531 | 533 | -- !x! if(sub_defined(log_changes)) |
532 | 534 | -- !x! andif(is_true(!!log_changes!!)) |
@@ -154,6 +154,7 @@ | ||
154 | 154 | -- 2019-05-29 Added script UPDTPK_ONE. ES. |
155 | 155 | -- 2019-05-30 Added UPDTPKQA_ONE through check #8. ES. |
156 | 156 | -- 2019-06-03 Completed UPDTPKQA_ONE and added UPDTPKQA_ONE_INNERLOOP. ES. |
157 | +-- 2020-04-28 Explicitly rolled back the changes if 'do_commit' = "No". RDN. | |
157 | 158 | -- ================================================================== |
158 | 159 | |
159 | 160 |
@@ -585,6 +586,7 @@ | ||
585 | 586 | -- !x! write "!!$current_time!! -- CHANGES COMMITTED." to !!logfile!! |
586 | 587 | -- !x! endif |
587 | 588 | -- !x! else |
589 | + -- !x! autocommit on with rollback | |
588 | 590 | -- !x! write "CHANGES NOT COMMITTED ('do_commit' argument = !!#do_commit!!)" |
589 | 591 | -- !x! if(sub_defined(log_changes)) |
590 | 592 | -- !x! andif(is_true(!!log_changes!!)) |
@@ -125,6 +125,7 @@ | ||
125 | 125 | -- in UPDTPKQA_ONE. ES. |
126 | 126 | -- 2019-05-29 Corrections to comments. ES. |
127 | 127 | -- 2019-06-03 Correction to logging in UPDTPKQA_ONE_INNERLOOP. ES. |
128 | +-- 2020-04-28 Explicitly rolled back the changes if 'do_commit' = "No". RDN. | |
128 | 129 | -- ================================================================== |
129 | 130 | |
130 | 131 | -- ################################################################ |
@@ -695,7 +696,8 @@ | ||
695 | 696 | -- !x! write "==================================================================" to !!logfile!! |
696 | 697 | -- !x! write "!!$current_time!! -- CHANGES COMMITTED." to !!logfile!! |
697 | 698 | -- !x! endif |
698 | - -- !x! else | |
699 | + -- !x! else | |
700 | + -- !x! autocommit on with rollback | |
699 | 701 | -- !x! write "CHANGES NOT COMMITTED ('do_commit' argument = !!#do_commit!!)" |
700 | 702 | -- !x! if(sub_defined(log_changes)) |
701 | 703 | -- !x! andif(is_true(!!log_changes!!)) |