Opened 9 years ago

Closed 6 years ago

#1273 closed defect (fixed)

Petascope ODMG - Wrong return from single boolean value in Rasql query

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.7
Component: petascope Version: development
Keywords: rasql query, sing boolean, return value Cc: Dimitar Misev
Complexity: Medium

Description

In Petascope with this kind of Rasql query

SELECT c[0,50] = 73 FROM mr AS c

it will return 1 instead of t, same as

SELECT c[0,50] = 0 FROM mr AS c 

it will return 0 instead of f as in Rasql result.

I've traced to executeRasqlQuery of RasUtil.java and could not access more as it is a Java Interface packages odmg.

This make the result is not correct when it is ambiguous between return integer and boolean.

Change History (3)

comment:1 by Bang Pham Huu, 9 years ago

It also is not consistent with "Infinity", i.e: Rasql query

SELECT 20 / c[0,10] FROM mr AS c

which returns 'inf' in Rasql but 'Infinity' in Petascope, it does not have this problem if encode in "csv".

 for c in (mr) return encode(-20 / c[i(0), j(10)], "csv")

comment:2 by Bang Pham Huu, 6 years ago

Milestone: 10.09.7
Owner: set to Bang Pham Huu
Status: newassigned

comment:3 by Bang Pham Huu, 6 years ago

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