commit | 7c83cdd320bb65e45cb28e7c5248e17b99bc40db | [log] [tgz] |
---|---|---|
author | ramangrover29 <ramangrover29@gmail.com> | Mon Jun 03 21:08:03 2013 -0700 |
committer | ramangrover29 <ramangrover29@gmail.com> | Mon Jun 03 21:08:03 2013 -0700 |
tree | a2839c7dc267564c75bfd8205b4602f440fd91f5 | |
parent | 097793e19ffd14d4ea9f3cc76af24a8354c22cdc [diff] |
corrected test case. it had 2 issues a) use fully qualified name for a function in a declare statement 2) incorrectly placed the declare function statement as part of DDL
diff --git a/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.1.ddl.aql b/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.1.ddl.aql index edede00..f9f1e25 100644 --- a/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.1.ddl.aql +++ b/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.1.ddl.aql
@@ -8,9 +8,3 @@ drop dataverse test if exists; create dataverse test; -use dataverse test; - -declare function test.f1(){ -100 -}; -
diff --git a/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.2.query.aql b/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.2.query.aql index 2f9e763..5755963 100644 --- a/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.2.query.aql +++ b/asterix-app/src/test/resources/runtimets/queries/user-defined-functions/udf29/udf29.2.query.aql
@@ -5,5 +5,10 @@ */ use dataverse test; + +declare function f1(){ +100 +}; + let $x:=f1() return $x