* Did a hacky job of bludgeoning last_insert_id into working
Jesse Vincent [Sat, 28 Jul 2007 22:34:14 +0000 (17:34 -0500)]
lib/DBIx/Class/JDBICompat/Handle.pm

index 04d999a..9043ac4 100755 (executable)
@@ -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