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

Single column views/tables produce invalid Swift code #1

Closed
helje5 opened this issue Aug 16, 2022 · 1 comment
Closed

Single column views/tables produce invalid Swift code #1

helje5 opened this issue Aug 16, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@helje5
Copy link
Member

helje5 commented Aug 16, 2022

E.g.:

CREATE VIEW fun_sum
  AS SELECT SUM(intCol) + SUM(doubleCol) AS lol FROM fun;

breaks Swift with:

Cannot create a single-element tuple with an element label
on this generated code:

public typealias PropertyIndices = ( idx_lol: Int32 )
@helje5 helje5 added the bug Something isn't working label Aug 16, 2022
@helje5 helje5 self-assigned this Aug 17, 2022
helje5 added a commit that referenced this issue Aug 17, 2022
This fixes issue #1. As part of the fix the init/match
generators have been reworked quite a bit, but deserve
even more love. They should share more code.
@helje5
Copy link
Member Author

helje5 commented Aug 17, 2022

Fixed

@helje5 helje5 closed this as completed Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant