comparison 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
comparison
equal deleted inserted replaced
2:59903dcaf327 3:cd23cd62de3c
132 return '\n'.join(lines) 132 return '\n'.join(lines)
133 lines.append(raw_input(prompt2)) 133 lines.append(raw_input(prompt2))
134 134
135 def findTerminator(statement): 135 def findTerminator(statement):
136 m = stmtEndFinder.search(statement) 136 m = stmtEndFinder.search(statement)
137 return m.groups() 137 if m:
138 return m.groups()
139 else:
140 return statement, None, None
138 141
139 def pmatrix(rows,desc,maxlen=30): 142 def pmatrix(rows,desc,maxlen=30):
140 '''prints a matrix, used by sqlpython to print queries' result sets''' 143 '''prints a matrix, used by sqlpython to print queries' result sets'''
141 names = [] 144 names = []
142 maxen = [] 145 maxen = []