diff sqlpython.py @ 3:cd23cd62de3c

history working pretty well
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Mon, 03 Dec 2007 16:43:43 -0500
parents 59903dcaf327
children f70cc3be6377
line wrap: on
line diff
--- a/sqlpython.py	Mon Dec 03 14:29:16 2007 -0500
+++ b/sqlpython.py	Mon Dec 03 16:43:43 2007 -0500
@@ -134,7 +134,10 @@
 
 def findTerminator(statement):
     m = stmtEndFinder.search(statement)
-    return m.groups()
+    if m:
+        return m.groups()
+    else:
+        return statement, None, None
     
 def pmatrix(rows,desc,maxlen=30):
     '''prints a matrix, used by sqlpython to print queries' result sets'''