Skip to content

Cannot define table with column named "read" #2527

@joshua-spacetime

Description

@joshua-spacetime

A user in the public discord ran into this issue.

Apparently if you define a table like:

#[table(name = mails, public)] 
#[derive(Clone)]
pub struct Mail {
    // #[primary_key]
    // #[auto_inc]
    pub mail_id: u32,
    pub read: bool,
}

you'll get an error in Unity about Read being defined multiple times.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions