[GH-ISSUE #256] Sandman Error for composite primary keys #79

Open
opened 2026-02-26 01:33:04 +03:00 by kerem · 0 comments
Owner

Originally created by @moedawood on GitHub (Jan 31, 2022).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/256

Hi Guys

I seem to get the following error when calling sandman

sqlalchemy.exc.InvalidRequestError: Incorrect number of values in identifier to formulate primary key for query.get(); primary key columns are 'abpi_orders.order_id','abpi_orders.customer_id','abpi_orders.order_status_id'

My table seems to have composite primary keys ? Are these supported by sandman ?

Originally created by @moedawood on GitHub (Jan 31, 2022). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/256 Hi Guys I seem to get the following error when calling sandman sqlalchemy.exc.InvalidRequestError: Incorrect number of values in identifier to formulate primary key for query.get(); primary key columns are 'abpi_orders.order_id','abpi_orders.customer_id','abpi_orders.order_status_id' My table seems to have composite primary keys ? Are these supported by sandman ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#79
No description provided.