projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e10e166
)
* 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/JDBICompat/Handle.pm
b/lib/DBIx/Class/JDBICompat/Handle.pm
index
04d999a
..
9043ac4
100755
(executable)
--- 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