Sebastian Bermudez wrote: > sqlite3_open > sqlite3_prepare ( "select * from t1" ) > get sqlite3_column_count(stmt) > for 1 to colcount > sqlite3_column_type(stmt,index) "always return 5" > next
You need to call sqlite3_step first. sqlite3_column_type examines actual data in an actual row, but you haven't fetched any rows yet. Perhaps you meant to use sqlite3_column_decltype[16] ? Also, columns are numbered from 0. You might be thinking about parameters (sqlite3_bind_*) which are numbered from 1. Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users