From: Jesse Vincent Date: Sat, 28 Jul 2007 22:34:14 +0000 (-0500) Subject: * Did a hacky job of bludgeoning last_insert_id into working X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=64d843b0f21cec9f78bfb905f66376e0676ec45a;p=dbsrgits%2FDBIx-Class-Historic.git * Did a hacky job of bludgeoning last_insert_id into working --- diff --git a/lib/DBIx/Class/JDBICompat/Handle.pm b/lib/DBIx/Class/JDBICompat/Handle.pm index 04d999a..9043ac4 100755 --- a/lib/DBIx/Class/JDBICompat/Handle.pm +++ b/lib/DBIx/Class/JDBICompat/Handle.pm @@ -338,7 +338,7 @@ sub insert { warn $@; return undef; } - return $storage->last_insert_id; + return $storage->last_insert_id($source, 'id'); # XXX TODO. HARDCODED THE ID. CAN WE NOT GET THIS FROM THE $source? } =head2 update_record_value