Changeset 205
- Timestamp:
- 10/29/06 20:53:56 (2 years ago)
- Files:
-
- 06/libkombilo/search.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/search.cc
r204 r205 3936 3936 3937 3937 string GameList::plEntry(int i) { 3938 if (i < 0 || i >= pl.size()) return "";3938 if (i < 0 || i >= (int)pl.size()) return ""; 3939 3939 else return pl[i]; 3940 3940 } … … 3948 3948 void GameList::readPlayersList() throw(DBError) { 3949 3949 if (pl.size()) pl = vector<string>(); 3950 int rc =sqlite3_exec(db, "select p from (select pw p from games union select pb p from games) order by lower(p)", rpl_callback, &pl, 0);3951 if (rc != SQLITE_OK) throw DBError();3950 sqlite3_exec(db, "select p from (select pw p from games union select pb p from games) order by lower(p)", rpl_callback, &pl, 0); 3951 // we ignore possible errors, since the table might not yet exist 3952 3952 } 3953 3953
