X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fdb%2Fsqlite3recordset.cpp;h=137f7b365621e493c41ed4285242c2995fda50b9;hb=befd91205eff729a182f66de15374a577a8718f7;hp=e9cdf5fa572d382b4c44ab8c9979f50ef0cba8c1;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/src/db/sqlite3recordset.cpp b/src/db/sqlite3recordset.cpp index e9cdf5f..137f7b3 100644 --- a/src/db/sqlite3recordset.cpp +++ b/src/db/sqlite3recordset.cpp @@ -40,6 +40,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); + //ZThread::Guard 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) { }