I suppose I should mention that this was 15 years ago, so the behavior very well could have changed since then.
At the time, though, this was happening even though I had set the columns' type affinity to TEXT. That was the very first thing I checked when the bug rolled in.