| 481 | |
| 482 | |
| 483 | void CppSQLite3Query::nextRow() |
| 484 | { |
| 485 | checkVM(); |
| 486 | |
| 487 | int nRet = sqlite3_step(mpVM); |
| 488 | |
| 489 | if (nRet == SQLITE_DONE) |
| 490 | { |
| 491 | // no rows |
| 492 | mbEof = true; |
| 493 | } |
| 494 | else if (nRet == SQLITE_ROW) |
| 495 | { |
| 496 | // more rows, nothing to do |
| 497 | } |
| 498 | else |
| 499 | { |
| 500 | nRet = sqlite3_finalize(mpVM); |
| 501 | mpVM = 0; |
| 502 | const char* szError = sqlite3_errmsg(mpDB); |
| 503 | throw CppSQLite3Exception(nRet, szError); |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | |
| 508 | void CppSQLite3Query::finalize() |
no test coverage detected