Skip to content

Raw SQL + getWith parsing error: field 'sons' is not accessible for type 'SqlNodeObj' using 'kind = nkIdent #1

Description

@georgelemon
Models.rawSQL("SELECT * FROM plugins").getWith(Plugins)

gives

query.nim(632, 26) Error: field 'sons' is not accessible for type 'SqlNodeObj' using 'kind = nkIdent

selecting specific columns compiles fine:

Models.rawSQL("SELECT id, settings_schema FROM plugins").getWith(Plugins)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions