Squash bugs and warnings, optimise CMake builds.

This commit is contained in:
2016-08-15 21:12:47 +02:00
parent 4b2d0ee50a
commit 9c7e4f5a6d
5 changed files with 13 additions and 6 deletions

View File

@ -14,7 +14,7 @@ namespace CommandHelper {
sqlite3 *db; int return_code;
return_code = sqlite3_open("bot/db/trivia.db", &db);
std::string sql = "SELECT * FROM CustomJS";
std::string sql = "SELECT GuildID, CommandName, Script FROM CustomJS";
sqlite3_stmt *stmt;
return_code = sqlite3_prepare_v2(db, sql.c_str(), -1, &stmt, 0);
@ -161,4 +161,4 @@ namespace CommandHelper {
return exists;
}
}
}