X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fdb%2Fsqlite3recordset.cpp;h=2ec07912f10d10fe15eac1e9209ba54e7d4061e8;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=9ddfb23c34d1dc45ce9c3a6bd17c704d33247f46;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/src/db/sqlite3recordset.cpp b/src/db/sqlite3recordset.cpp index 9ddfb23..2ec0791 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); - PThread::Guard g(DB::Instance()->m_mutex); if(sqlite3_get_table(db->GetDB(),sql.c_str(),&m_rs,&m_rows,&m_cols,NULL)==SQLITE_OK) { }