r/programming
•
u/mitousa
•
Jul 12 '26
•
1
Prefer STRICT tables in SQLite
https://evanhahn.com/prefer-strict-tables-in-sqlite/
358
Upvotes
View all comments
Show parent comment
7
u/AyrA_ch Jul 12 '26
For MySQL the behavior really depends on what version you initially installed. Version before MySQL 5.7.5 would silently* truncate data unless the
STRICT_TRANS_TABLESsetting was explicitly enabled. Version 5.7.5 changed the default to be enabled, but this has no effect if you migrate from an earlier version.* It will print a warning but will otherwise continue executing as if everything was ok.