Opened 13 years ago
Closed 13 years ago
#93 closed defect (fixed)
Selecting struct component by number fails
Reported by: | Dimitar Misev | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | qlparser | Version: | |
Keywords: | Cc: | Peter Baumann | |
Complexity: | Medium |
Description
According to the manual 9.3.3 Struct Component Selection, we can use a number starting from 0 to select a struct component, however this doesn't seem to work:
$ rasql -q 'select rgb.1 * 2c from rgb' --out file rasql: rasdaman query tool v1.0, rasdaman v8 -- generated on 15.12.2011 17:16:28. opening database RASBASE at localhost:7001...ok Executing retrieval query...rasdaman error 300: Parsing error 300 in line 1, column 11: Unexpected name .1. aborting transaction...ok rasql done.
Note:
See TracTickets
for help on using tickets.
Seems like the bug got introduced with changeset:d5eeb0f236f1a26a5a58a1bc775de813fc659278
I'm not so good with lex and couldn't figure out how to fix it to allow for both cases, so I ended up reverting the changes from that patch. Which means 0.5 can be recognized as a floating point but .5 can not.
The tests in the systemtest pass now.