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

Struct generated are different when specifying all the columns vs using the * jolly selector. MWE provided. #902

Open
maxiride opened this issue Feb 22, 2021 · 1 comment
Labels

Comments

@maxiride
Copy link

The playground demonstrates that:

  • -- name: GetAuthor :one
  • -- name: ListAuthors :many

Yield two different queries which, however, return the same struct, Author in first case and a slice []Author in the second case.

I've encountered an odd behaviour where instead two different structs are generated, below the examples in the playground, from what I noticed, if I specify the fields the generation is not as expected, while using the jolly * selector gives the expected generation.

I've not been able to reproduce the issue using the default playground setup with the Authors and I can't see any reason why this issue rises with my code.

@maxiride maxiride changed the title Struct generated are different when specifying all the columns vs using the jolly selector. MWE provided. Struct generated are different when specifying all the columns vs using the * jolly selector. MWE provided. Feb 22, 2021
@kyleconroy
Copy link
Collaborator

This is indeed very strange and appears to still be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants