comparison sqlpython.py @ 120:e11bbeb3f34c

cleanup statement ends
author catherine@Elli.myhome.westell.com
date Wed, 23 Jul 2008 07:10:49 -0400
parents dfb71885dd41
children 898ed97bec38
comparison
equal deleted inserted replaced
119:7882c5e4d744 120:e11bbeb3f34c
142 def do_rollback(self, arg): 142 def do_rollback(self, arg):
143 self.default('rollback %s;' % (arg), do_everywhere=True) 143 self.default('rollback %s;' % (arg), do_everywhere=True)
144 144
145 # shortcuts 145 # shortcuts
146 do_exit = cmd2.Cmd.do_quit 146 do_exit = cmd2.Cmd.do_quit
147
148 stmtEndSearchString = r'(.*)(%s)\s*(\d+)?\s*$' % terminatorSearchString
149 statementEndPattern = re.compile(stmtEndSearchString, re.MULTILINE | re.DOTALL)
150 147
151 def pmatrix(rows,desc,maxlen=30): 148 def pmatrix(rows,desc,maxlen=30):
152 '''prints a matrix, used by sqlpython to print queries' result sets''' 149 '''prints a matrix, used by sqlpython to print queries' result sets'''
153 names = [] 150 names = []
154 maxen = [] 151 maxen = []