Arrest-MySQL icon indicating copy to clipboard operation
Arrest-MySQL copied to clipboard

multi column primary keys not supported

Open stitch opened this issue 11 years ago • 1 comments

Hi,

The API does not support multi column primary keys. Is there a way to work with this still without changing the database?

Example: $arrest->set_table_index('part', 'system','part number'); or $arrest->set_table_index('lulz_stash_console_part', array('system','part number'));

Regards, Elger

stitch avatar Jul 07 '13 18:07 stitch

The code is written in a way assuming there will be one primary key per table and it will be an int (possibly autoincrement), as can be seen in the code.

$id = intval($this->segment(1));

Fix is possible. If you just want a quick fix I might implement it; but as I think this project is lacking a lot of features I am looking for, a new project is the way to go.

ludesign avatar Jul 13 '13 08:07 ludesign