Mercurial > sqlpython
comparison sqlpyPlus.py @ 118:0776ceacfc79
send up
author | catherine@Elli.myhome.westell.com |
---|---|
date | Fri, 11 Jul 2008 09:06:00 -0400 |
parents | dfb71885dd41 |
children | 7882c5e4d744 |
comparison
equal
deleted
inserted
replaced
117:dfb71885dd41 | 118:0776ceacfc79 |
---|---|
811 | 811 |
812 def do_setbind(self, arg): | 812 def do_setbind(self, arg): |
813 args = arg.split(None, 2) | 813 args = arg.split(None, 2) |
814 if len(args) < 2: | 814 if len(args) < 2: |
815 self.do_print(arg) | 815 self.do_print(arg) |
816 return | |
816 elif len(args) > 2 and args[1] in ('=',':='): | 817 elif len(args) > 2 and args[1] in ('=',':='): |
817 var, val = args[0], args[2] | 818 var, val = args[0], args[2] |
818 if val[0] == val[-1] == "'" and len(val) > 1: | 819 if val[0] == val[-1] == "'" and len(val) > 1: |
819 self.binds[var] = val[1:-1] | 820 self.binds[var] = val[1:-1] |
820 return | 821 return |