ApiLogicServer-src icon indicating copy to clipboard operation
ApiLogicServer-src copied to clipboard

Composite Key Updates Fail

Open valhuber opened this issue 2 years ago • 1 comments

In classicmodels, OrderDetails cannot be updated due to primary key of Order & Product IDs.

Setup is Step I of this page: https://apilogicserver.github.io/Docs/DevOps-Containers-Deploy-Multi/

Then, just update an OrderDetail

valhuber avatar Aug 21 '23 13:08 valhuber

The default delimiter for a composite pk is "_", this can be overriden by setting SAFRSBase._s_pk_delimiter to something else (for example "|" ).

Could you try this please?

https://github.com/thomaxxl/safrs/blob/8735f737848d3713b7969c9b586f18453606d293/safrs/base.py#L118

thomaxxl avatar Aug 21 '23 16:08 thomaxxl