#1074 closed defect (fixed)

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

Reported by: gmerticariu Owned by: dmisev
Priority: minor Milestone:
Component: rasserver Version: development
Keywords: Cc: pbaumann, mdumitru, atoader, vmerticariu
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 Changed 16 months ago by pbaumann

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 Changed 16 months ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.