Review main Merged

75385[BUGFIX] Fix relationship import with sql strict_mode

Rémy DANIEL CR +2 V +2 Easy +19 −2 updated 08/07/22, 15:28

Commit message

When sql strict mode is enabled on the database server,
if a value has a wrong data type for the database column,
the INSERT or UPDATE query will fail.
This happened during a t3d import: relationships are lost.

This patch fixes the issue by using the TCA default value for the field.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1