Christoph Zwerschke schrieb:
Composite primary keys are now working. I have added a few unit tests
for these as well and made the code a bit cleaner.
Will look into the "returning *" issue again later this weekend.
The "returning *" stuff works now, and the methods check in advance
whether the table is selectable. If the table is not selectable, the
original data is returned (without any error message or warning).
Removed the "return_changes" again because it's not necessary any more.
The delete method now works with primary key(s) as well and now returns
whether the row to be deleted existed or not.
We might consider giving up the whole maintenance and caching of primary
keys and make get(), insert(), update() and delete() simply work with
multiple rows in case they get no unique key. But I think that would be
too much of a change. Maybe we should add new methods getmany(),
insertmany() etc. instead, but we can do that later.
-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql