SQLite Forum

Improve sqlite3_column_name() return value documentation
Login
> What return value did you expect for a NULL statement pointer or an out of range column index, given that the function returns const char*?

Assumption is the mother of a lot of programming errors. What if the programmer assumed an empty string was returned in those cases? I prefer clarity. Check the manual page for `isdigit()`, for example. The return value of `isdigit` is pretty obvious, but it's still documented.