From 06f853b92c351506155998159efd203652f26867 Mon Sep 17 00:00:00 2001 From: ISHIKAWA Mutsumi Date: Tue, 6 Nov 2012 19:07:45 +0900 Subject: [PATCH 1/1] fix return value format --- lib/Mubot4FB/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Mubot4FB/DB.pm b/lib/Mubot4FB/DB.pm index cb5b642..b939515 100644 --- a/lib/Mubot4FB/DB.pm +++ b/lib/Mubot4FB/DB.pm @@ -95,7 +95,7 @@ sub search_by_fb_post_id { my $sth = $me->{dbh}->prepare('select * from posts where fb_post_id = ?'); $sth->bind_param(1, $db_args->{fb_post_id}, SQL_BIGINT); $sth->execute(); - my $ret = $sth->fetchall_arrayref({}); + my $ret = $sth->fetchrow_hashref(); $sth->finish; return $ret; -- 2.11.0