| 876 | |
| 877 | |
| 878 | int 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 | |
| 890 | sqlite_int64 CppSQLite3DB::lastRowId() |
| 891 | { |
nothing calls this directly
no test coverage detected