X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fdb%2Fsqlite3recordset.cpp;h=2c372231d7a80b1ec605e52bfc2c4f7c843c2564;hb=56f67ecca96efc7b72d03c95c8c42cfb66e31468;hp=e9cdf5fa572d382b4c44ab8c9979f50ef0cba8c1;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/src/db/sqlite3recordset.cpp b/src/db/sqlite3recordset.cpp index e9cdf5f..2c37223 100644 --- a/src/db/sqlite3recordset.cpp +++ b/src/db/sqlite3recordset.cpp @@ -1,5 +1,7 @@ #include "../../include/db/sqlite3db/sqlite3recordset.h" +#include + #ifdef XMEM #include #endif @@ -40,6 +42,18 @@ const char *Recordset::Get(const int row, const int field) } } +const char *Recordset::GetColumnName(const int column) +{ + if(column>=0 && column g(DB::instance()->m_mutex); + Poco::ScopedLock g(DB::Instance()->m_mutex); if(sqlite3_get_table(db->GetDB(),sql.c_str(),&m_rs,&m_rows,&m_cols,NULL)==SQLITE_OK) { }