Skip to content

Fix bug in materialized CTE#26

Merged
veewee merged 1 commit into
phpro:mainfrom
veewee:materialized-bug
Apr 13, 2026
Merged

Fix bug in materialized CTE#26
veewee merged 1 commit into
phpro:mainfrom
veewee:materialized-bug

Conversation

@veewee
Copy link
Copy Markdown
Contributor

@veewee veewee commented Apr 13, 2026

Q A
Type bug
BC Break no
Fixed issues

Summary

Materialized / non materialized not working properly

@veewee veewee merged commit 42265d5 into phpro:main Apr 13, 2026
4 checks passed
Comment on lines 267 to 271
match (true) {
$query[1]?->materialized ?? null === true => 'MATERIALIZED ',
$query[1]?->materialized ?? null === false => 'NOT MATERIALIZED ',
($query[1]?->materialized ?? null) === true => 'MATERIALIZED ',
($query[1]?->materialized ?? null) === false => 'NOT MATERIALIZED ',
default => '',
},
Copy link
Copy Markdown
Contributor

@jdreesen jdreesen Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not like this?

match ($query[1]?->materialized ?? null) {
    true => 'MATERIALIZED ',
    false => 'NOT MATERIALIZED ',
    default => '',
},

https://3v4l.org/uqFNN

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to send it as an improvement :)

I was just bumping against this issue and fixed it quickly without looking to the surroundings too much :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#27

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.

2 participants