SQLite: Afinal o à vontade é mesmo à vontadinha
Porque é que, por defeito, não existe uma verificação de tipos durante a inserção, caso tenham sido definidos tipos de dados na criação da tabela?
Retirado da introdução à funcionalidade que “corrige isto”:
Some developers appreciate the freedom that SQLite’s flexible typing rules provide and use that freedom to advantage. But other developers are aghast at SQLite’s flagrant rule-breaking and prefer the traditional rigid type system found in all other SQL database engines and in the SQL standard. For this latter group, SQLite supports a strict typing mode, as of version 3.37.0 (2021-11-27), that is enabled separately for each table.
A palavra aghast está muito bem empregue.