Fix behaviour with auto-inc primary keys.
authorRupert Swarbrick <rswarbrick@gmail.com>
Sat, 25 Sep 2010 15:42:03 +0000 (16:42 +0100)
committerKevin Rosenberg <kevin@rosenberg.net>
Sun, 7 Nov 2010 16:35:45 +0000 (09:35 -0700)
commit29184a377bfebf51266104aadafc5fe422cbd791
tree6543e42f2e200fca165d99a5ad0e168f747c0ba2
parent048c6482ef47de32bcbd19011afa1acd03142389
Fix behaviour with auto-inc primary keys.

This patch sets the slot value of the field containing the primary key
to the one that the database gave it. Before, it wasn't saved so then
changes to other slots didn't update the database (since the query
ended up looking something like "UPDATE blah WHEN id = 'NULL' ...",
which obviously doesn't work).
sql/oodml.lisp