Opened 11 years ago

Closed 10 years ago

#491 closed defect (duplicate)

parsing of parameter variables with rasj is inflexible

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: minor Milestone:
Component: java Version: 8.5
Keywords: Cc: Dirk Daems, Peter Baumann
Complexity: Medium

Description

reported by Daems Dirk on rasdaman-users:

Parsing of parameters is different when using the RASJ API compared to the command-line RASQL utility. When using the RASJ API, I have to add a space character before and after the parameter that needs to be substituted:

insert into my_collection values inv_tiff( $1 )

If I omit these whitespace characters, I get an error: “0 variable(s) in the query string vs. 1 parameter(s) bound to the query”.

In the RasOQLQuery class, a StringTokenizer (default delimiter is whitespace) is used to locate the parameters. As such, the parameter is not found when omitting the whitespace.

Change History (1)

comment:1 by Dimitar Misev, 10 years ago

Resolution: duplicate
Status: newclosed

duplicate of already fixed #408

Note: See TracTickets for help on using tickets.