Skip to content

fix: adding missing whitespaces in SQL queries#4147

Open
mauroseb wants to merge 1 commit intochef:mainfrom
mauroseb:fix_pgsql_statements_for_17
Open

fix: adding missing whitespaces in SQL queries#4147
mauroseb wants to merge 1 commit intochef:mainfrom
mauroseb:fix_pgsql_statements_for_17

Conversation

@mauroseb
Copy link

Description

There are missing whitespaces in some of the queries which make Chef Server trigger errors when running against a PostgreSQL 17 database. Apparently due to a more stringent SQL parsing in that version.

Issues Resolved

The following error in the DB logs was corrected by the changes at the time of associating a user to an organization:

ERROR: trailing junk after parameter at or near "$3WHERE" at character 62
STATEMENT: UPDATE groups SET last_updated_by= $1, updated_at= $2, name= $3WHERE| id=

Check List

There are missing whitespaces in some of the queries which
make triggers errors when running against a PostgreSQL 17 database.
Apparently due to a more stringent SQL parsing in that version.

The following error in the DB logs was corrected by the changes at the
time of associating a user to an organization:

```console
ERROR: trailing junk after parameter at or near "$3WHERE" at character 62
STATEMENT: UPDATE groups SET last_updated_by= $1, updated_at= $2, name= $3WHERE| id=
```

Signed-off-by: Mauro Oddi <mauro.oddi@progress.com>
@mauroseb mauroseb requested review from a team as code owners February 12, 2026 15:38
@netlify
Copy link

netlify bot commented Feb 12, 2026

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit eca9603
🔍 Latest deploy log https://app.netlify.com/projects/chef-server/deploys/698df41620eb7600088904ae

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant