RamanGrover29@gmail.com | 58cf330 | 2012-11-09 00:27:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Description : Detect Recursion in UDFs |
| 3 | * Expected Res : Failure |
| 4 | * Date : 30 Aug 2012 |
| 5 | * Ignored : Not part of test build, as its a negative test case that thrwos an exception |
| 6 | */ |
| 7 | |
| 8 | drop dataverse testdv1 if exists; |
| 9 | create dataverse testdv1; |
| 10 | |
| 11 | write output to nc1:"rttest/cross-dataverse_cross-dv16.adm"; |
| 12 | |
| 13 | // UDF with no inputs |
| 14 | create function testdv1.fun01(){ |
| 15 | testdv1.fun02() |
| 16 | } |
| 17 | |
| 18 | // UDF with one input |
| 19 | create function testdv1.fun02(){ |
| 20 | testdv1.fun03() |
| 21 | } |
| 22 | |
| 23 | // UDF with two inputs |
| 24 | create function testdv1.fun03(){ |
| 25 | testdv1.fun04() |
| 26 | } |
| 27 | |
| 28 | create function testdv1.fun04(){ |
| 29 | testdv1.fun02() |
| 30 | } |
| 31 | |
| 32 | testdv1.fun01() |