From: Rupert Swarbrick Date: Sat, 25 Sep 2010 15:42:03 +0000 (+0100) Subject: Fix behaviour with auto-inc primary keys. X-Git-Tag: v5.2.0~1 X-Git-Url: http://git.kpe.io/?a=commitdiff_plain;ds=inline;h=29184a377bfebf51266104aadafc5fe422cbd791;hp=29184a377bfebf51266104aadafc5fe422cbd791;p=clsql.git 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). ---