Changeset 197
- Timestamp:
- 10/12/06 22:42:10 (2 years ago)
- Files:
-
- 06/libkombilo/search.cc (modified) (2 diffs)
- 06/libkombilo/search.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/search.cc
r196 r197 3751 3751 } 3752 3752 3753 string GameList::getSGF(int i) { 3753 string GameList::getSGF(int i) throw(DBError) { 3754 if (!p_op->sgfInDB) return ""; 3754 3755 if (i < 0 || i >= (int)currentList->size()) return ""; 3755 3756 int index = (*currentList)[i].second; … … 3764 3765 sprintf(sql, "select sgf from games where id = %d;", index); 3765 3766 // printf("%s\n", sql); 3766 sqlite3_exec(db, sql, getsgfcallback, &sgf, 0);3767 3767 int rc = sqlite3_exec(db, sql, getsgfcallback, &sgf, 0); 3768 if (rc != SQLITE_OK) throw DBError(); 3768 3769 // sqlite3_close(db); 3769 3770 // db = 0; 06/libkombilo/search.h
r196 r197 599 599 std::string currentEntryAsString(int i); 600 600 std::vector<std::string> currentEntriesAsStrings(int start=0, int end=0); 601 std::string getSGF(int i) ;601 std::string getSGF(int i) throw(DBError); 602 602 int numHits(); 603 603 … … 624 624 void readDB() throw(DBError); 625 625 void addAlgos(int bs); 626 void parseFormatString(std::string ORDERBY, std::string FORMAT);627 626 int posDT; // used when parsing the DT field during processing 628 627 int posSZ; // used when parsing the SZ field during processing
