# HG changeset patch # User catherine@cordelia # Date 1207184123 14400 # Node ID 4931f32c8ff5bea4be9178f566fac2fa93705aa0 # Parent dd1ab6a6d1dc560ebc21d566fa485f7c7fc40239 fixed bug in load diff -r dd1ab6a6d1dc -r 4931f32c8ff5 sqlpyPlus.py --- a/sqlpyPlus.py Wed Apr 02 20:35:18 2008 -0400 +++ b/sqlpyPlus.py Wed Apr 02 20:55:23 2008 -0400 @@ -505,7 +505,6 @@ rowlimit = int(rowlimit or 0) try: self.varsUsed = findBinds(self.query, self.binds, bindVarsIn) - #import pdb; pdb.set_trace() self.curs.execute(self.query, self.varsUsed) self.rows = self.curs.fetchmany(min(self.maxfetch, (rowlimit or self.maxfetch))) self.desc = self.curs.description @@ -671,7 +670,7 @@ self.do_list('%d -' % (len(self.history) - numCommandsLoaded)) def do_getrun(self, fname): 'Brings SQL commands from a file to the in-memory SQL buffer, and executes them.' - numCommandsLoaded = self.load(fname) * -1 + numCommandsLoaded = self.do_load(fname) * -1 if numCommandsLoaded: for command in self.history[numCommandsLoaded:]: self.onecmd_plus_hooks(command)