Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(202): RemoteQuery should not SELECT * #203

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

joshua-spacetime
Copy link
Contributor

@joshua-spacetime joshua-spacetime commented Jan 6, 2025

Fixes #202.

Because SELECT * is ambiguous if the query is a join

Description of Changes

Bug Fix

Previously RemoteQuery would implicitly SELECT *. This was wrong because you can use RemoteQuery to issue join queries.

API

  • This is an API breaking change to the SDK

If the API is breaking, please state below what will break

Requires SpacetimeDB PRs

List any PRs here that are required for this SDK change to work

Testsuite

If you would like to run the your SDK changes in this PR against a specific SpacetimeDB branch, specify that here. This can be a branch name or a link to a PR.

SpacetimeDB branch name: v1.0.0-rc1

Testing

NOTE: This patch is untested. The risk is minimal given the simplicity of the fix. I looked for some example tests that I could extend, but didn't see anything applicable. Nevertheless it would still be useful to add a regression test.

@joshua-spacetime joshua-spacetime self-assigned this Jan 6, 2025
@joshua-spacetime joshua-spacetime changed the base branch from master to staging January 6, 2025 19:32
@RReverser RReverser force-pushed the joshua/fix/202/remote-query branch from 0f987ed to 10649ac Compare January 6, 2025 20:03
@joshua-spacetime joshua-spacetime changed the base branch from staging to release/v1.0.0-rc1 January 6, 2025 20:13
@joshua-spacetime joshua-spacetime changed the base branch from release/v1.0.0-rc1 to staging January 6, 2025 20:14
@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/202/remote-query branch from 10649ac to 9dc0cb5 Compare January 6, 2025 20:20
Fixes #202.

Because SELECT * is ambiguous for join queries
@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/202/remote-query branch from 9dc0cb5 to 397752d Compare January 6, 2025 20:22
@joshua-spacetime joshua-spacetime merged commit b35379c into staging Jan 6, 2025
2 of 4 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/fix/202/remote-query branch January 6, 2025 23:11
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.

RemoteQuery should not SELECT *
2 participants