OK, thanks for clearing that up. So there seems then little point then in using sqlite3_data_count?
RBS On Thu, Feb 26, 2015 at 12:16 AM, Igor Tandetnik <igor at tandetnik.org> wrote: > On 2/25/2015 7:03 PM, Bart Smissaert wrote: > >> Could somebody tell me what the difference is between these 2 functions? >> > > sqlite3_column_count() returns correct number as soon as the statement is > prepared. sqlite3_data_count returns zero unless the statement is actually > positioned on a row (sqlite3_step was called, and returned SQLITE_ROW). > > Why both are needed, I'm not sure. > -- > Igor Tandetnik > > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users >