changeset 57:4931f32c8ff5

fixed bug in load
author catherine@cordelia
date Wed, 02 Apr 2008 20:55:23 -0400
parents dd1ab6a6d1dc
children de6278a3bf53
files sqlpyPlus.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)