OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5eb72
)
Model::Base: when rollback called, set error strings
author
hylom
<hylom@users.sourceforge.jp>
Thu, 2 Feb 2017 13:41:31 +0000
(22:41 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Thu, 2 Feb 2017 13:41:31 +0000
(22:41 +0900)
src/newslash_web/lib/Newslash/Model/Base.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/Base.pm
b/src/newslash_web/lib/Newslash/Model/Base.pm
index
d0ff321
..
02c1c4a
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/Base.pm
+++ b/
src/newslash_web/lib/Newslash/Model/Base.pm
@@
-67,6
+67,8
@@
sub rollback {
my $self = shift;
return if !$self->transaction_mode;
+ $self->set_error($self->{_tr_dbh}->errstr);
+
$self->{_tr_dbh}->rollback;
$self->{_tr_dbh}->disconnect;
delete $self->{_tr_dbh};