Skip to content

Table name with mixed case #2689

@zainab-amir

Description

@zainab-amir

Hey,

I have a following table in objection which maps to a table in db that starts with capital 'M'.

class Markers extends Model {
  static get tableName() {
    return 'Marker';
  }
}

Unfortunately when I run the query, objection converts the table name to lower case and I get this error

"select \"marker\".* from \"marker\" where \"id\" in ($1, $2) - relation \"marker\" does not exist",

Is there a way to make objection keep the table name as is and not convert it to lower case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions