blob: a66b00faf464780d0b86e64ea645a1a70caf3d93 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
2 * Test case Name : cpttostr01.aql
3 * Description : Test codepoint-to-string(codepoint) function.
4 * : Pass the codepoints which are in the internal dataset to the function.
5 * Success : Yes
6 * Date : 16th April 2012
7 */
8
9
10drop dataverse test if exists;
11create dataverse test;
12use dataverse test;
13
14create type TestType as open{
15id:int32,
16cpt:[int32]
17}
18
19create dataset testds(TestType) partitioned by key id;
20
21// insert codepoint data into internal dataset testds here into the cpt attribute
22
23insert into dataset testds({"id":123,"cpt":[0048,0045,0057,0044,0065,0045,0090]});
24
25write output to nc1:"rttest/string_cpttostr01.adm";
26
27for $l in dataset('testds')
28return codepoint-to-string($l.cpt)