Skip to content

Conversation

@rcarver
Copy link
Contributor

@rcarver rcarver commented Nov 18, 2025

Tests for a few issues I've found while using @selection, fixes #232

@rcarver rcarver marked this pull request as draft November 18, 2025 15:14
assertInlineSnapshot(
of: Root.update {
$0.fields.honestCount = honestValue
//$0.fields.optionalCount = honestValue
Copy link
Contributor Author

Choose a reason for hiding this comment

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

compile error here

) {
"""
UPDATE "roots"
SET "optionalCount" = "nestedFieldses"."optionalCount", "honestCount" = "nestedFieldses"."honestCount"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

using selections table name instead of root's table name

@rcarver
Copy link
Contributor Author

rcarver commented Nov 18, 2025

@stephencelis I cannot figure out how to fix, but here are two failing tests for you.

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.

@Selection field name is incorrect within update

1 participant