| 112 | } |
| 113 | |
| 114 | bool 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 | |
| 132 | bool WizIndexBase::logSQLException(const CppSQLite3Exception& e, const CString& strSQL) |
| 133 | { |
nothing calls this directly
no test coverage detected