Like mentioned in this comment, INT column types are not recognized properly in some situations.
If you use INTEGER, everything will be fine. Additional type checks need to be implemented, since SQLite does not seem to normalize everything to INTEGER obivously.
At the same time, it makes sense to check for things like VARCHAR instead of TEXT, and so on as well.
If no "correct" type has been used, apply SQLite type-affinity rules to check for other matches. These checks have a lot more overhead and you should always use proper SQLite types for best performance. The rules from 3.1. Determination Of Column Affinity have been applied. Not 100% exactly though because of the other checks I am doing beforehand already and I don't need to check some things twice.
Like mentioned in this comment,
INT
column types are not recognized properly in some situations.If you use
INTEGER
, everything will be fine. Additional type checks need to be implemented, since SQLite does not seem to normalize everything toINTEGER
obivously.At the same time, it makes sense to check for things like
VARCHAR
instead ofTEXT
, and so on as well.