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

Method execQuery

src/database/cppsqlite3.cpp:610–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608
609
610CppSQLite3Query CppSQLite3Statement::execQuery()
611{
612 checkDB();
613 checkVM();
614
615 int nRet = sqlite3_step(mpVM);
616
617 if (nRet == SQLITE_DONE)
618 {
619 // no rows
620 return CppSQLite3Query(mpDB, mpVM, true/*eof*/, false);
621 }
622 else if (nRet == SQLITE_ROW)
623 {
624 // at least 1 row
625 return CppSQLite3Query(mpDB, mpVM, false/*eof*/, false);
626 }
627 else
628 {
629 nRet = sqlite3_reset(mpVM);
630 const char* szError = sqlite3_errmsg(mpDB);
631 throw CppSQLite3Exception(nRet, szError);
632 }
633}
634
635
636void CppSQLite3Statement::bind(int nParam, const char* szValue)

Callers 15

abstractFromGuidMethod · 0.80
abstractIsExistMethod · 0.80
QueryMethod · 0.80
hasRecordMethod · 0.80
getFirstRowFieldValueMethod · 0.80
sqlToSizeMethod · 0.80
sqlToTagDataArrayMethod · 0.80
sqlToStyleDataArrayMethod · 0.80
sqlToMetaDataArrayMethod · 0.80
sqlToStringArrayMethod · 0.80

Calls 2

CppSQLite3QueryClass · 0.85
CppSQLite3ExceptionClass · 0.85

Tested by

no test coverage detected