# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1214597370 14400 # Node ID c1c05670b4e5d87d19cacf1f6ac60c22782c9aaf # Parent d48034a42b26a4459ec785f65746ab5888baf4b8 going to modify to work with new cmd2 diff -r d48034a42b26 -r c1c05670b4e5 sqlpyPlus.py --- a/sqlpyPlus.py Mon Jun 23 22:01:51 2008 -0400 +++ b/sqlpyPlus.py Fri Jun 27 16:09:30 2008 -0400 @@ -340,7 +340,6 @@ sqlpython.sqlpython.shortcuts.update({':': 'setbind', '\\': 'psql', '@': '_load'}) multilineCommands = '''select insert update delete tselect create drop alter'''.split() - terminatorKeepingCommands = ['select'] defaultFileName = 'afiedt.buf' def __init__(self): sqlpython.sqlpython.__init__(self) diff -r d48034a42b26 -r c1c05670b4e5 sqlpython.py --- a/sqlpython.py Mon Jun 23 22:01:51 2008 -0400 +++ b/sqlpython.py Fri Jun 27 16:09:30 2008 -0400 @@ -124,7 +124,8 @@ do_sen = do_senora def default(self, arg, do_everywhere = False): - self.query = self.finishStatement(arg).strip().rstrip(';') + #self.query = self.finishStatement(arg).strip().rstrip(';') + self.query = arg try: self.varsUsed = sqlpyPlus.findBinds(self.query, self.binds, givenBindVars={}) self.curs.execute(self.query, self.varsUsed)