| 382 | return nLen; |
| 383 | } |
| 384 | const unsigned char* CppSQLite3Query::getBlobField(int nField, int& nLen) |
| 385 | { |
| 386 | checkVM(); |
| 387 | |
| 388 | if (nField < 0 || nField > mnCols-1) |
| 389 | { |
| 390 | throw CppSQLite3Exception(CPPSQLITE_ERROR, "Invalid field index requested"); |
| 391 | } |
| 392 | |
| 393 | nLen = sqlite3_column_bytes(mpVM, nField); |
| 394 | return (const unsigned char*)sqlite3_column_blob(mpVM, nField); |
| 395 | } |
| 396 | |
| 397 | |
| 398 | const unsigned char* CppSQLite3Query::getBlobField(const CString& szField, int& nLen) |
no test coverage detected