• R/O
  • SSH

execsql: Commit

Default repository for execsql.py


Commit MetaInfo

Révisionbb75cc408b9a967d6cff8680a9e8fdfb03fb6884 (tree)
l'heure2019-10-28 02:02:27
AuteurDreas Nielsen <dnielsen@inte...>
CommiterDreas Nielsen

Message de Log

Applied changes from revs 519 and 525.

Change Summary

Modification

diff -r d1a51c963b46 -r bb75cc408b9a execsql/execsql.py
--- a/execsql/execsql.py Sun Oct 27 09:42:19 2019 -0700
+++ b/execsql/execsql.py Sun Oct 27 10:02:27 2019 -0700
@@ -5481,6 +5481,7 @@
54815481 src_msg = ", ".join(["%s line %s" % src for src in sources])
54825482 write_warning("IF level mismatch at beginning and end of script; origin at or after: %s." % src_msg)
54835483 def run_and_increment(self):
5484+ global last_command
54845485 cmditem = self.cmdlist[self.cmdptr]
54855486 last_command = cmditem
54865487 if cmditem.command_type == "sql" and status.batch.in_batch():
@@ -5643,8 +5644,8 @@
56435644 if self.script_id not in savedscripts.keys():
56445645 raise ErrInfo("cmd", other_msg="There is no SCRIPT named %s." % self.script_id)
56455646 self.arg_exp = kwargs["argexp"]
5646- self.looptype = kwargs["looptype"].upper() if kwargs["looptype"] is not None else None
5647- self.loopcond = kwargs["loopcond"]
5647+ self.looptype = kwargs["looptype"].upper() if "looptype" in kwargs and kwargs["looptype"] is not None else None
5648+ self.loopcond = kwargs["loopcond"] if "loopcond" in kwargs else None
56485649 def execute(self):
56495650 # Copy the saved script because otherwise the memory-recovery nullification
56505651 # of completed commands will erase the saved script commands.
Afficher sur ancien navigateur de dépôt.