comparison sqlpyPlus.py @ 130:40bbe808e98a

seems to have fixed editing of hanging files
author catherine@Elli.myhome.westell.com
date Tue, 26 Aug 2008 14:52:48 -0400
parents d8661065fb77
children 2b7ce838120d
comparison
equal deleted inserted replaced
129:d8661065fb77 130:40bbe808e98a
506 506
507 legalOracle = re.compile('[a-zA-Z_$#]') 507 legalOracle = re.compile('[a-zA-Z_$#]')
508 508
509 rowlimitPattern = pyparsing.Word(pyparsing.nums)('rowlimit') 509 rowlimitPattern = pyparsing.Word(pyparsing.nums)('rowlimit')
510 terminatorPattern = (pyparsing.oneOf('; \\s \\S \\c \\C \\t \\x \\h') 510 terminatorPattern = (pyparsing.oneOf('; \\s \\S \\c \\C \\t \\x \\h')
511 ^ pyparsing.Literal('\n/\n')) ('terminator') + \ 511 ^ pyparsing.Literal('\n/') ^ \
512 (pyparsing.Literal('\nEOF') + pyparsing.stringEnd)) \
513 ('terminator') + \
512 pyparsing.Optional(rowlimitPattern) 514 pyparsing.Optional(rowlimitPattern)
513 def do_select(self, arg, bindVarsIn=None, override_terminator=None): 515 def do_select(self, arg, bindVarsIn=None, override_terminator=None):
514 """Fetch rows from a table. 516 """Fetch rows from a table.
515 517
516 Limit the number of rows retrieved by appending 518 Limit the number of rows retrieved by appending