OSDN Git Service
(root)
/
mubot4fb
/
mubot4fb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155b1da
)
DB auto reconnect
author
ISHIKAWA Mutsumi
<ishikawa@hanzubon.jp>
Thu, 25 Oct 2012 03:09:15 +0000
(12:09 +0900)
committer
ISHIKAWA Mutsumi
<ishikawa@hanzubon.jp>
Thu, 25 Oct 2012 03:09:15 +0000
(12:09 +0900)
mubot4fb.pl
patch
|
blob
|
history
diff --git
a/mubot4fb.pl
b/mubot4fb.pl
index
e7f1840
..
82bfc56
100755
(executable)
--- a/
mubot4fb.pl
+++ b/
mubot4fb.pl
@@
-101,7
+101,7
@@
sub new {
sub init {
my ($me) = @_;
- return $me->{dbh} = DBI->connect('DBI:mysql:'.$me->{cfg}->{database}, $me->{cfg}->{db_user}, $me->{cfg}->{db_pass},{mysql_enable_utf8 => 1}) || die $DBI::errstr;
+ return $me->{dbh} = DBI->connect('DBI:mysql:'.$me->{cfg}->{database}, $me->{cfg}->{db_user}, $me->{cfg}->{db_pass},{mysql_enable_utf8 => 1
, mysql_auto_reconnect => 1
}) || die $DBI::errstr;
}
sub check_dup {