diff sqlpython.py @ 117:dfb71885dd41

everything seems working
author catherine@Elli.myhome.westell.com
date Fri, 04 Jul 2008 18:54:26 -0400
parents 38ee1ca92801
children e11bbeb3f34c
line wrap: on
line diff
--- a/sqlpython.py	Fri Jul 04 14:54:01 2008 -0400
+++ b/sqlpython.py	Fri Jul 04 18:54:26 2008 -0400
@@ -124,7 +124,8 @@
     do_sen = do_senora       
 
     def default(self, arg, do_everywhere = False):
-        self.query = self.finishStatement(arg).strip().rstrip(';')
+        statement = self.parsed(arg)
+        self.query = statement.unterminated
         try:
             self.varsUsed = sqlpyPlus.findBinds(self.query, self.binds, givenBindVars={})
             self.curs.execute(self.query, self.varsUsed)