d) However, the real content is different (not negative!)(ignore the order, as sql doesn't guarantee the same order, etc...; the offending records are identified !)
This is a problem with SQLite. The driver doesn't tell the correct type unless it has actually seen one of the large values while iterating over the table. Until then it returns "Integer" for the column type instead of the correct "Long". This is a know issue with SQLite therefore we recommend using H2 for embedded databases which doesn't have these problems.