# HG changeset patch # User catherine@cordelia # Date 1208784347 14400 # Node ID 2060f9e4b27b5a5810297b9198ddb6aaf2f87654 # Parent bfc81b9b99a74f2310ea86f1a21e8752832df49f outstanding changes? diff -r bfc81b9b99a7 -r 2060f9e4b27b sqlpyPlus.py --- a/sqlpyPlus.py Mon Apr 14 16:56:44 2008 -0400 +++ b/sqlpyPlus.py Mon Apr 21 09:25:47 2008 -0400 @@ -744,15 +744,6 @@ else: for (var, val) in self.binds.items(): print ':%s = %s' % (var, val) - - # keep bind vars in sync on both sides? - - def push_binds(self): - commands = [":%s := '%s'" for b in self.binds.items()] - curs.execute('begin\n%s\nend;' % '\n'.join(commands)) - def pull_binds(self): - i DON'T THINK THIS WILL WORK! - def do_setbind(self, arg): args = arg.split(None, 2) @@ -770,6 +761,7 @@ except ValueError: val = self.curs.callfunc(val, []) # submit to sql + self.binds[var] = val # but what if val is a function call? else: print 'Could not parse ', args