I have a table with a few rows. The datatypes are not set in the table structure and some rows are integers while some are BLOBs.
How would I figure out what’s what? I’m using the C API.
sqlite3_column_type gives me the same datatype for all rows, which isn’t correct.
sqlite3_column_typeis the function that gives you the actual type of the data.sqlite3_column_*functions, sqlite converts the data it has and the type changes to reflect that. Ask for types before doing anything else with the row.typeofSQL function (thesqlite3_column_typeC function andtypeofSQL function should always return the same value).