Closed GoogleCodeExporter closed 8 years ago
corrected test case.
it had 2 issues
a) use fully qualified name for a function in a declare statement
b) incorrectly placed the declare function statement as part of DDL
the branch builds now and should be ready for its next destination (master,
right Madhu ?)
Original comment by ram...@uci.edu
on 4 Jun 2013 at 4:10
Yeah! I am just verifying, by re-building after merging my branches to latest
master. Thanks for the quick turnaround Raman!
Original comment by madhusudancs
on 4 Jun 2013 at 4:18
What is the difference between the following two use cases ?
i) CREATE FUNCTION function-name()
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create function test.f1(){
100
};
f1();
ii) DECLARE FUNCTION function-name()
drop dataverse test if exists;
create dataverse test;
use dataverse test;
declare function f1(){
100
};
let $x:=f1()
return $x
Original comment by khfaraaz82
on 4 Jun 2013 at 4:35
Khurram, I think declare is per session, whereas create is for the whole
instance of asterix.
Marking this issue as verified since Raman fixed it and I verified it.
Original comment by madhusudancs
on 4 Jun 2013 at 4:45
Original issue reported on code.google.com by
madhusudancs
on 3 Jun 2013 at 11:17