diff options
author | Adam <Adam@anope.org> | 2011-10-24 16:37:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-24 16:37:29 -0400 |
commit | 7c62de1f27ee21e41b7655e9d82a227f6e2cf2b5 (patch) | |
tree | 9393c1c5b18c3d34da786556f960fe5cc010ee98 /modules/extra/m_sqlite.cpp | |
parent | ccf29c013465ba4b9709c04ba4452f4454b1ebdc (diff) | |
parent | 377a7a968b6a906f262a45abea9a563ffc471938 (diff) |
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
Diffstat (limited to 'modules/extra/m_sqlite.cpp')
-rw-r--r-- | modules/extra/m_sqlite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp index adf244bbd..58eab1c32 100644 --- a/modules/extra/m_sqlite.cpp +++ b/modules/extra/m_sqlite.cpp @@ -147,15 +147,15 @@ SQLResult SQLiteService::RunQuery(const SQLQuery &query) int err = sqlite3_prepare_v2(this->sql, real_query.c_str(), real_query.length(), &stmt, NULL); if (err != SQLITE_OK) return SQLiteResult(query, real_query, sqlite3_errmsg(this->sql)); - + std::vector<Anope::string> columns; int cols = sqlite3_column_count(stmt); columns.resize(cols); for (int i = 0; i < cols; ++i) columns[i] = sqlite3_column_name(stmt, i); - + SQLiteResult result(query, real_query); - + do { err = sqlite3_step(stmt); @@ -175,7 +175,7 @@ SQLResult SQLiteService::RunQuery(const SQLQuery &query) if (err != SQLITE_DONE) return SQLiteResult(query, real_query, sqlite3_errmsg(this->sql)); - + return result; } |