--- parser3/www/htdocs/Attic/_bug.html 2004/06/18 15:55:47 1.48
+++ parser3/www/htdocs/Attic/_bug.html 2005/01/20 14:10:29 1.80
@@ -1,16 +1,29 @@
-^connect[oracle://mts_imprimatur2:imp2@mts]{
-# ^void:sql{create table paf(a clob)}
-# ^void:sql{insert into paf (a) values (/**a**/'a')}
-# ^void:sql{insert into paf (a) values (:unk)}
- ^void:sql{delete from pif}
- ^void:sql{call paf(:a)}[
- $.bind[
- $.a[2]
- ]
- ]
- ^int:sql{select count(*) from pif}
- "^string:sql{select a from pif}"
+@main[]
+^first[]
+^if(def $error){
+ ^if(^error.pos[koshmar]>=0){
+ $error, TODO:recover
+ }{
+ $error, TODO:die
+ }
+}
+@first[]
+^second[]
+^if(!def $error){
+ working1
+}
+@second[]
+^if(^math:random(2)){
+ $error[koshmar,test1]
+}
+^if(!def $error){
+ working2
-# ^string:sql{select a from paf}
- OK
+ ^if(^math:random(2)){
+ $error[uzhas,test2]
+ }
+ ^if(!def $error){
+ working3
+ }
}
+