Opened 5 years ago

Closed 5 years ago

#2213 closed defect (fixed)

rasql: multiple marray variables not evaluated properly

Reported by: Peter Baumann Owned by: Dimitar Misev
Priority: critical Milestone: 10.0
Component: rasql Version: 9.8
Keywords: Cc:
Complexity: Medium

Description

If an marray contains more than one variables occurrences of some variables are not treated properly.

Example: y not interpreted properly here:

select encode( marray x in [1:5], y in [1:5]
               values x+y, "csv" )

This returns (wrongly)

{2,2,2,2,2},{4,4,4,4,4},{6,6,6,6,6},{8,8,8,8,8},{10,10,10,10,10}

Workaround: use a multi-dimensional variable:

select encode( marray x in [1:5,1:5]
               values x[0]+x[1], "csv" )

Change History (5)

comment:1 by Dimitar Misev, 5 years ago

Another workaround, add [0] to the x and y:

select encode( marray x in [1:5], y in [1:5]
               values x[0]+y[0], "csv" )

comment:2 by Dimitar Misev, 5 years ago

Owner: changed from Dimitar Misev to dkamov
Status: newassigned

comment:3 by Dimitar Misev, 5 years ago

Priority: majorcritical

comment:4 by Dimitar Misev, 5 years ago

Owner: changed from dkamov to Dimitar Misev

comment:5 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.