Use strict table with SQLite 3.37 and above

Created on 15 May 2023, over 1 year ago
Updated 21 July 2023, over 1 year ago

Problem/Motivation

Currently SQLite provides flexible inserting of values inside tables. For example inserting FALSE into a integer value results in a 0. But this is not common Behaviour in our other databases. To streamline this more so we can create beter (and wider) covering tests we should use the strict mode implemented in SQLite 3.37.

Documentation about this change can be found here.

The current minimum version for SQLite is lower than the required minimum for this change, hence we have to do this in Drupal 11.

Steps to reproduce

  1. Using SQLite create a table with a integer field.
  2. Insert a string with numbers in the field
  3. SQLite will automatically create a integer from the string

Proposed resolution

Use strict mode on all tables.

Remaining tasks

T.B.D.

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

T.B.D.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
SQLite driver 

Last updated 3 days ago

No maintainer
Created by

🇳🇱Netherlands arantxio Dordrecht

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024