diff sqlpython.py @ 2:59903dcaf327

working on history
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Mon, 03 Dec 2007 14:29:16 -0500
parents 8fa146b9a2d7
children cd23cd62de3c
line wrap: on
line diff
--- a/sqlpython.py	Fri Nov 30 16:44:26 2007 -0500
+++ b/sqlpython.py	Mon Dec 03 14:29:16 2007 -0500
@@ -100,7 +100,7 @@
     do_sen = do_senora       
         
     def default(self, arg, do_everywhere = False):
-        self.query = Statement(arg).query
+        self.query = finishStatement(arg)
         try:
             self.curs.execute(self.query)
             print '\nExecuted\n'
@@ -120,7 +120,7 @@
     do_q = do_quit
     do_exit = do_quit
 
-stmtEndSearchString = r'(.*)(%s)\s*(\d+)?\s*$' % terminatorSearchString
+stmtEndSearchString = r'(.*)(%s)\s*(\d+)?\s*$' % sqlpython.terminatorSearchString
 stmtEndFinder = re.compile(stmtEndSearchString, re.MULTILINE | re.DOTALL)
 prompt2 = ' > '