changeset 114:c1c05670b4e5

going to modify to work with new cmd2
author catherine@Elli.myhome.westell.com
date Fri, 27 Jun 2008 16:09:30 -0400
parents d48034a42b26
children 43f5dc75b791
files sqlpyPlus.py sqlpython.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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)