Mercurial > sqlpython
comparison sqlpyPlus.py @ 45:71576bf684c8
before switch to stdout
author | catherine.devlin@gmail.com |
---|---|
date | Tue, 01 Apr 2008 16:43:18 -0400 |
parents | abbfb5a7e32c |
children | ad41f6a577f7 |
comparison
equal
deleted
inserted
replaced
44:f489beb0e644 | 45:71576bf684c8 |
---|---|
473 result = '\n' + sqlpython.pmatrix(transpr,newdesc) | 473 result = '\n' + sqlpython.pmatrix(transpr,newdesc) |
474 else: | 474 else: |
475 result = sqlpython.pmatrix(self.rows, self.curs.description, self.maxfetch) | 475 result = sqlpython.pmatrix(self.rows, self.curs.description, self.maxfetch) |
476 return result | 476 return result |
477 | 477 |
478 statementEndPattern = re.compile(r'(.*)(;|\\[gGhtxicCsS])\s*(\d*)$') | |
479 # what about quote-enclosed? | |
480 | |
478 def findTerminator(self, statement): | 481 def findTerminator(self, statement): |
479 m = self.statementEndPattern.search(statement) | 482 m = self.statementEndPattern.search(statement) |
480 if m: | 483 if m: |
481 return m.groups() | 484 return m.groups() |
482 else: | 485 else: |