Re: [sqlite] Using sqlite3_errcode()

2016-10-06 Thread Cezary H. Noweta
On 2016-09-29 15:17, Otto Wallenius wrote: [...] To my understanding it follows that if you first call sqlite3_column_blob() and then sqlite3_errcode(), the errcode might be SQLITE_NOMEM whether memory allocation failed or not: either it failed and the error code was set ot SQLITE_NOMEM, or it su

[sqlite] Using sqlite3_errcode()

2016-10-01 Thread Otto Wallenius
Hello, I'm writing a function to read from an sqlite3 database. I'd like to use function sqlite3_column_blob() (and similar functions) to read a column's value in a row. However I'm confused about how to check for errors when using this function. The documentation