/* | |
* Description : Test that a listify on a nullable type creates a homogeneous list of type ANY. | |
* Guards against regression to issue 186. | |
* Expected Result : Success | |
*/ | |
drop dataverse test if exists; | |
create dataverse test; | |
use dataverse test; | |
write output to nc1:"rttest/list_listify_03.adm"; | |
// The for prohibits the subplan from being eliminated. | |
for $x in [1, 2] | |
let $y := (for $i in [[1,2,3],[10,20,30],[-2,-5,0]] return min($i)) | |
return min($y) |