8000 Composite primary key support · Issue #1140 · kaminari/kaminari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Composite primary key support #1140
Open
@ausangshukla

Description

@ausangshukla

I have a Model which has composite primary key and is Rails 8 based
When I use the paginate helper method

It fires queries like
SELECT COUNT(DISTINCT ["id", "snapshot_date"]) FROM aggregate_portfolio_investment_snapshots INNER JOIN entities ON entities.deleted_at IS NULL AND entities.id = aggregate_portfolio_investment_snapshots.entity_id WHERE aggregate_portfolio_investment_snapshots.entity_id = 17

Which throws error
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '["id", "snapshot_date"]) FROM aggregate_portfolio_investment_snapshots

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

      0