• R/O
  • SSH

execsql-upsert: Commit

Default repository for the execsql-upsert scripts


Commit MetaInfo

Revisiónd035be3dd62cdf795a6fa6612d7709745e3fa6e3 (tree)
Tiempo2021-04-28 09:53:38
Autorrdnielsen
Commiterrdnielsen

Log Message

Added a semicolon to the end of all logged SQL statements.

Cambiar Resumen

Diferencia incremental

diff -r 8c636a69de57 -r d035be3dd62c upsert/pg_upsert.sql
--- a/upsert/pg_upsert.sql Sat May 09 09:33:04 2020 -0700
+++ b/upsert/pg_upsert.sql Tue Apr 27 17:53:38 2021 -0700
@@ -157,6 +157,8 @@
157157 -- 2020-04-28 Explicitly rolled back the changes if 'do_commit' = "No". RDN.
158158 -- 2020-05-09 Moved the assignment of 'upsert_progress_denom' out of the
159159 -- 'update_console_qa' script. RDN.
160+-- 2021-04-27 Added a semicolon to the end of all SQL statements that are
161+-- written to the logfile. RDN.
160162 -- ==================================================================
161163
162164
@@ -861,7 +863,7 @@
861863 -- !x! andif(sub_defined(log_sql))
862864 -- !x! andif(is_true(!!log_sql!!))
863865 -- !x! write "SQL for primary key check:" to !!logfile!!
864- -- !x! write [!!~pk_check!!] to !!logfile!!
866+ -- !x! write [!!~pk_check!!;] to !!logfile!!
865867 -- !x! endif
866868
867869 -- Run the check.
@@ -1119,7 +1121,7 @@
11191121 -- !x! andif(sub_defined(log_sql))
11201122 -- !x! andif(is_true(!!log_sql!!))
11211123 -- !x! write "SQL for foreign key check:" to !!logfile!!
1122- -- !x! write [!!~fk_check!!] to !!logfile!!
1124+ -- !x! write [!!~fk_check!!;] to !!logfile!!
11231125 -- !x! endif
11241126
11251127 -- Run the check.
@@ -1417,7 +1419,7 @@
14171419 -- !x! if(sub_defined(log_sql))
14181420 -- !x! andif(is_true(!!log_sql!!))
14191421 -- !x! write "UPDATE statement for !!#base_schema!!.!!#table!!:" to !!logfile!!
1420- -- !x! write [!!~updatestmt!!] to !!logfile!!
1422+ -- !x! write [!!~updatestmt!!;] to !!logfile!!
14211423 -- !x! endif
14221424 -- !x! if(sub_defined(log_changes))
14231425 -- !x! andif(is_true(!!log_changes!!))
@@ -1443,7 +1445,7 @@
14431445 -- !x! if(sub_defined(log_sql))
14441446 -- !x! andif(is_true(!!log_sql!!))
14451447 -- !x! write "INSERT statement for !!#base_schema!!.!!#table!!:" to !!logfile!!
1446- -- !x! write [!!~insertstmt!!] to !!logfile!!
1448+ -- !x! write [!!~insertstmt!!;] to !!logfile!!
14471449 -- !x! endif
14481450 -- !x! if(sub_defined(log_changes))
14491451 -- !x! andif(is_true(!!log_changes!!))
@@ -2110,7 +2112,7 @@
21102112 -- !x! if(sub_defined(log_sql))
21112113 -- !x! andif(is_true(!!log_sql!!))
21122114 -- !x! write "UPDATE statement for !!#base_schema!!.!!#table!!:" to !!logfile!!
2113- -- !x! write [!!~updatestmt!!] to !!logfile!!
2115+ -- !x! write [!!~updatestmt!!;] to !!logfile!!
21142116 -- !x! endif
21152117 -- !x! if(sub_defined(log_changes))
21162118 -- !x! andif(is_true(!!log_changes!!))
@@ -2696,7 +2698,7 @@
26962698 -- !x! andif(is_true(!!log_sql!!))
26972699 -- !x! write "" to !!logfile!!
26982700 -- !x! write "SQL for checking foreign key !!@fk_constraint!! for PK update to !!@table_schema!!.!!@table_name!!:" to !!logfile!!
2699- -- !x! write [!!~fk_check!!] to !!logfile!!
2701+ -- !x! write [!!~fk_check!!;] to !!logfile!!
27002702 -- !x! endif
27012703
27022704 -- Run the check
Show on old repository browser