Mercurial > sqlpython
changeset 361:f65f74c948bc 1.6.6
v1.6.6
author | catherine@cordelia |
---|---|
date | Tue, 02 Jun 2009 07:39:15 -0400 |
parents | 692ce3ee80d2 |
children | d0f8c9e81efc |
files | sqlpython/sqlpyPlus.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py Mon Jun 01 17:31:57 2009 -0400 +++ b/sqlpython/sqlpyPlus.py Tue Jun 02 07:39:15 2009 -0400 @@ -723,10 +723,12 @@ self.pfeedback('\nSelected Max Num rows (%d)' % self.rc) def do_cat(self, arg): - '''Shortcut for SELECT * FROM''' + '''Shortcut for SELECT * FROM return self.do_select(self.parsed('SELECT * FROM %s;' % arg, terminator = arg.parsed.terminator or ';', - suffix = arg.parsed.suffix)) + suffix = arg.parsed.suffix))''' + return self.onecmd('SELECT * FROM %s%s%s' % (arg, arg.parsed.terminator or ';', + arg.parsed.suffix or '')) def _pull(self, arg, opts, vc=None): """Displays source code."""