Skip to content

Conversation

@stephencelis
Copy link
Member

Nice find by @acosmicflamingo.

///
/// - Parameter input: Expressions representing the arguments of the function.
/// - Returns: An expression representing the function call.
@_disfavoredOverload
Copy link
Member Author

Choose a reason for hiding this comment

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

This is for better compiler error messaging.

Comment on lines +129 to +130
public typealias Input = [String].JSONRepresentation
public typealias Output = [String].JSONRepresentation
Copy link
Member Author

Choose a reason for hiding this comment

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

This was allowing the generic callAsFunction to be called with invalid input when a representation was involved.

@stephencelis stephencelis merged commit e30ebd6 into main Sep 4, 2025
3 checks passed
@stephencelis stephencelis deleted the custom-function-representable-fix branch September 4, 2025 01:54
coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 14, 2025
…ntfreeco#156)

* Functions should be generic over their query-representable types

* wip
coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 15, 2025
…ntfreeco#156)

* Functions should be generic over their query-representable types

* wip
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.

3 participants