SQLite User Forum

Improve sqlite3_column_name() return value documentation
Login
Of course, I agree with all you say here. In my case, both the statement pointer and the index is under control; that is not the problem. The reason I started investigating this was because the docs only say the following:

_"If sqlite3_malloc() fails during the processing of either routine (for example during a conversion from UTF-8 to UTF-16) then a NULL pointer is returned."_

But I know from experience that argument value errors also leads to `sqlite3_column_name()` returning `NULL`. This (obvious) fact is not mentioned in the docs, something I read as "I cannot trust the documentation". Are there other cases not mentioned?