Opened 10 years ago

Closed 9 years ago

#842 closed defect (fixed)

rasql should throw a proper exception on empty file

Reported by: Dimitar Misev Owned by: bismaili
Priority: minor Milestone: 9.1
Component: applications Version: development
Keywords: Cc:
Complexity: Medium

Description

The error displayed now doesn't match so well if a file of size 0 is given to rasql. To reproduce:

dimitar@blade:~$ touch test
dimitar@blade:~$ rasql -q 'insert into test_coll values inv_tiff($1)' -f test
rasql: rasdaman query tool v1.0, rasdaman v9.0.5-gd8eddb9 -- generated on 23.10.2014 10:48:23.
opening database RASBASE at localhost:7001...ok
fetching type information for GreyString from database, using readonly transaction...ok
reading file test...rasdaman error 201: Exception: The result is no interval.
aborting transaction...ok
rasql done.

Change History (3)

comment:1 by Dimitar Misev, 9 years ago

Owner: changed from Dimitar Misev to Bidesh Thapaliya
Status: newassigned

comment:2 by Dimitar Misev, 9 years ago

Milestone: 9.0.x9.1
Owner: changed from Bidesh Thapaliya to bismaili

comment:3 by Dimitar Misev, 9 years ago

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