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

Method execScalar

src/database/cppsqlite3.cpp:878–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876
877
878int CppSQLite3DB::execScalar(const CString& strSQL)
879{
880 CppSQLite3Query q = execQuery(strSQL);
881
882 if (q.eof() || q.numFields() < 1)
883 {
884 throw CppSQLite3Exception(CPPSQLITE_ERROR, "Invalid scalar query");
885 }
886
887 return atoi(q.fieldValue(0));
888}
889
890sqlite_int64 CppSQLite3DB::lastRowId()
891{

Callers

nothing calls this directly

Calls 4

CppSQLite3ExceptionClass · 0.85
eofMethod · 0.80
numFieldsMethod · 0.80
fieldValueMethod · 0.80

Tested by

no test coverage detected