Mercurial > sqlpython
comparison sqlpyPlus.py @ 96:5e274ecfd679
testing for pl/sql usage
author | catherine@cordelia |
---|---|
date | Sun, 25 May 2008 05:46:22 -0400 |
parents | 84a26822e28c |
children | 2619e81c5772 |
comparison
equal
deleted
inserted
replaced
95:84a26822e28c | 96:5e274ecfd679 |
---|---|
824 ''' | 824 ''' |
825 exec :x := 'box' | 825 exec :x := 'box' |
826 exec :y := sysdate | 826 exec :y := sysdate |
827 ''' | 827 ''' |
828 | 828 |
829 '''Works: | |
830 exec myproc() | |
831 begin | |
832 myproc(); | |
833 end; | |
834 | |
835 Fails: | |
836 select n into :n from test; | |
837 :d := sysdate | |
838 :n := myfunc()''' | |
839 | |
840 | |
841 | |
829 def anon_plsql(self, line1): | 842 def anon_plsql(self, line1): |
830 lines = [line1] | 843 lines = [line1] |
831 while True: | 844 while True: |
832 line = self.pseudo_raw_input(self.continuationPrompt) | 845 line = self.pseudo_raw_input(self.continuationPrompt) |
833 if line.strip() == '/': | 846 if line.strip() == '/': |