Skip to content

fix(CalDAV/Backend/PDO): bind transparent as int in updateCalendar#1637

Open
sylvinus wants to merge 1 commit intosabre-io:masterfrom
sylvinus:master
Open

fix(CalDAV/Backend/PDO): bind transparent as int in updateCalendar#1637
sylvinus wants to merge 1 commit intosabre-io:masterfrom
sylvinus:master

Conversation

@sylvinus
Copy link
Copy Markdown
Contributor

@sylvinus sylvinus commented Apr 6, 2026

updateCalendar stored the transparent field as a PHP boolean, which the pgsql PDO driver serializes as the empty string '' when the value is false. The transparent SMALLINT NOT NULL column then rejects the parameter with SQLSTATE 22P02.

This looks like a follow-up, 10 years later (!), of #816 :-)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (cd7f9f8) to head (7e6eb94).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1637   +/-   ##
=========================================
  Coverage     97.26%   97.26%           
- Complexity     2844     2845    +1     
=========================================
  Files           175      175           
  Lines          8887     8887           
=========================================
  Hits           8644     8644           
  Misses          243      243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

`updateCalendar` stored the `transparent` field as a PHP boolean,
which the pgsql PDO driver serializes as the empty string `''`
when the value is `false`. The `transparent SMALLINT NOT NULL`
column then rejects the parameter with SQLSTATE 22P02.

This looks like a follow-up, 10 years later (!), of sabre-io#816 :-)
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