Fix PostgreSQL column name escaping in field constraints

Created on 6 May 2023, almost 2 years ago
Updated 26 January 2024, about 1 year ago

Problem/Motivation

The field name for the column that has the great than zero check is not quoted.

Steps to reproduce

Create a custom entity type with entity reference field named "order".
Try to install it.
The following error will be thrown.

Exception thrown while performing a schema update. SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "order"
LINE 5: "order" bigint CHECK (order >= 0) NULL,

Proposed resolution

Add the quotes to the field name.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
PostgreSQL driverΒ  β†’

Last updated 22 days ago

No maintainer
Created by

πŸ‡·πŸ‡ΊRussia Chi

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024