Mercurial > sqlpython
diff mysqlpy.py @ 4:23c3a58d7804
about to strip out tselect
author | devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil |
---|---|
date | Tue, 04 Dec 2007 16:28:55 -0500 |
parents | 8fa146b9a2d7 |
children | 65ae6cec71c6 |
line wrap: on
line diff
--- a/mysqlpy.py Mon Dec 03 16:43:43 2007 -0500 +++ b/mysqlpy.py Tue Dec 04 16:28:55 2007 -0500 @@ -109,9 +109,9 @@ def do_tselect(self, arg, rowlimit=None): '''executes a query and prints the result in trasposed form. Useful when querying tables with many columns''' - self.query = sqlpython.Statement('select '+arg).query + self.query = 'select ' + arg # sqlpython.finishStatement('select '+arg) + (self.query, terminator, rowlimit) = sqlpython.findTerminator(self.query) try: - print self.query self.curs.execute(self.query) rows = self.curs.fetchmany(min(self.maxtselctrows, rowlimit or self.maxtselctrows)) desc = self.curs.description