Mercurial > sqlpython
changeset 145:7e5105efa15d
catch all terminators when parsing
author | catherine@Elli.myhome.westell.com |
---|---|
date | Tue, 23 Sep 2008 07:43:11 -0400 |
parents | 5a021524805a |
children | d5917f02ae83 |
files | sqlpyPlus.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpyPlus.py Tue Sep 23 07:29:30 2008 -0400 +++ b/sqlpyPlus.py Tue Sep 23 07:43:11 2008 -0400 @@ -555,7 +555,7 @@ return completions rowlimitPattern = pyparsing.Word(pyparsing.nums)('rowlimit') - terminatorPattern = (pyparsing.oneOf('; \\s \\S \\c \\C \\t \\x \\h') + terminatorPattern = (pyparsing.oneOf('; \\s \\S \\c \\C \\t \\x \\h \\g \\G \\i') ^ pyparsing.Literal('\n/') ^ \ (pyparsing.Literal('\nEOF') + pyparsing.stringEnd)) \ ('terminator') + \ @@ -726,7 +726,6 @@ print 'Could not resolve object %s.' % identifier object_type, owner, object_name = '', '', '' return object_type, owner, object_name - #todo: resolve not finding cwm$ table def do_resolve(self, arg): arg = self.parsed(arg).unterminated.upper()