MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / getFirstRowFieldValue

Method getFirstRowFieldValue

src/database/WizIndexBase.cpp:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool WizIndexBase::getFirstRowFieldValue(const CString& strSQL, int nFieldIndex, CString& strValue)
115{
116 try
117 {
118 CppSQLite3Query query = m_db.execQuery(strSQL);
119 if (!query.eof()) {
120 strValue = query.getStringField(nFieldIndex);
121 return true;
122 } else {
123 return false;
124 }
125 }
126 catch (const CppSQLite3Exception& e)
127 {
128 return logSQLException(e, strSQL);
129 }
130}
131
132bool WizIndexBase::logSQLException(const CppSQLite3Exception& e, const CString& strSQL)
133{

Callers

nothing calls this directly

Calls 3

execQueryMethod · 0.80
eofMethod · 0.80
getStringFieldMethod · 0.80

Tested by

no test coverage detected