Skip to content

Conversation

@stephencelis
Copy link
Member

This was allowed with @Selection before, so let's restore support for it.

This was allowed with `@Selection` before, so let's restore support for
it.
@Playrom
Copy link

Playrom commented Oct 21, 2025

the PR works for non-optional tables

But the following declarations (which worked on previous versions) still do not works

@Columns(as: StructuredQueries.TableAlias<Child, Alias>?.self)
    let secondChild: Child?

Initializer 'init(father:firstChild:secondChild:)' requires the types 'Optional<TableAlias<Child, Alias>>.QueryValue' (aka 'Optional') and 'TableAlias<Child, Alias>?' be equivalent

@stephencelis
Copy link
Member Author

@Playrom Thanks for the edge case repro! Should be fixed now.

@stephencelis stephencelis merged commit 0352774 into main Oct 21, 2025
3 checks passed
@stephencelis stephencelis deleted the columns-as branch October 21, 2025 21:44
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.

4 participants