jarodwen | cbbab14 | 2013-02-01 07:56:46 +0000 | [diff] [blame^] | 1 | /* |
2 | * Description : Create UDF that returns string | ||||
3 | * : compute the string lenght of the string | ||||
4 | * Expected Res : Success | ||||
5 | * Date : Sep 5th 2012 | ||||
6 | */ | ||||
7 | |||||
8 | drop dataverse test if exists; | ||||
9 | create dataverse test; | ||||
10 | |||||
11 | write output to nc1:"rttest/user-defined-functions_udf16.adm"; | ||||
12 | |||||
13 | create function test.fn02(){ | ||||
14 | "Welcome to the world of Asterix" | ||||
15 | } | ||||
16 | |||||
17 | let $str := test.fn02() | ||||
18 | return string-length($str) |