Opened 9 years ago

Closed 9 years ago

#1074 closed defect (fixed)

sqlite database missing - error: "no such table RAS_COUTERS"

Reported by: George Merticariu Owned by: Dimitar Misev
Priority: minor Milestone:
Component: rasserver Version: development
Keywords: Cc: Peter Baumann, Alex Dumitru, Alex Toader, Vlad Merticariu
Complexity: Medium

Description

Conditions:

  1. rasdaman is configured with the sqlite database backend
  2. database RASBASE is not created

Run:
./rasql -q "select a from RAS_COLLECTIONNAMES a" —out string

Error:
"No such table: RAS_COUNTERS"

Expected behavior:
When RASBASE was not created an exception should mention that. E.g. "RASBASE was not created. Please run create_db.sh and restart rasdaman".

Change History (2)

comment:1 by Peter Baumann, 9 years ago

In DatabaseIf::createDB() I find a role model:

SQLiteQuery checkTable("SELECT name FROM sqlite_master WHERE type='table' AND name='RAS_COUNTERS'");
if (checkTable.nextRow())
{

LFATAL << "Database exists already.";
checkTable.finalize();
disconnect();
throw r_Error( 832 );

}

comment:2 by Dimitar Misev, 9 years ago

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