Opened 6 years ago

Last modified 6 years ago

#1858 closed defect

rasql should output scalar results to a file on --out file — at Version 1

Reported by: Dimitar Misev Owned by: aahmed
Priority: major Milestone: 9.7
Component: rasql Version: development
Keywords: Cc: Peter Baumann
Complexity: Medium

Description (last modified by Dimitar Misev)

Specifying --out file in rasql has no effect if the results are scalars, the result is simply printed to stdout:

$ rasql -q 'select 1' --out file
rasql: rasdaman query tool v1.0, rasdaman 9.7.0.
Opening database RASBASE at localhost:7001... ok.
Executing retrieval query... ok.
Query result collection has 1 element(s):
  Result element 1: 1
rasql done.

This inconsistency should be fixed, —out file should be handled in the same way as for array results. Same should be ensured for minterval/sinterval and point results.

This code for rasql and printing results is in source:applications/rasql/rasql.cc

Doing this change will require updating the source:systemtest/util/common.sh probably in how the comparison is done for scalar results (this will probably need to be removed: browser:systemtest/util/common.sh#L861)

Change History (1)

comment:1 by Dimitar Misev, 6 years ago

Description: modified (diff)
Owner: set to aahmed
Status: newassigned
Note: See TracTickets for help on using tickets.