projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
288e6ad
)
don't die on insert in firebird with no pk
Rafael Kitover [Sat, 6 Mar 2010 23:15:13 +0000 (23:15 +0000)]
lib/DBIx/Class/Storage/DBI/InterBase.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI/InterBase.pm
b/lib/DBIx/Class/Storage/DBI/InterBase.pm
index
7487bd9
..
2e5d706
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/InterBase.pm
+++ b/
lib/DBIx/Class/Storage/DBI/InterBase.pm
@@
-42,7
+42,7
@@
sub _prep_for_execute {
if ($op eq 'insert') {
$self->_auto_incs([]);
- my @pk = $ident->_pri_cols;
+ my @pk = eval { local $@; $ident->_pri_cols };
my %pk;
@pk{@pk} = ();