OSDN Git Service

Merge branch 'master' of git+ssh://master.hanzubon.jp/home/git/mubot4fb
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:07:12 +0000 (15:07 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:07:12 +0000 (15:07 +0900)
Conflicts:
mubot4fb.pl

1  2 
mubot4fb.pl

diff --cc mubot4fb.pl
@@@ -106,17 -107,15 +109,14 @@@ sub _db_insert 
  
  sub _db_delete {
        my ($me, $db_args) = @_;
 -      $db_args->{submitter_type} = 1 unless defined $db_args->{submitter_type};
 +      $db_args->{submitter_type} ||= 1;
  
        my $sth = $me->{dbh}->prepare("delete from posts where fb_post_id = ? and submitter = ? and submitter_type = ?");
-       warn $db_args->{fb_post_id};
-       warn $db_args->{submitter};
-       warn $db_args->{submitter_type};
        $sth->bind_param(1, $db_args->{fb_post_id}, SQL_BIGINT);
        $sth->bind_param(2, $db_args->{submitter}, SQL_VARCHAR);
        $sth->bind_param(3, $db_args->{submitter_type}, SQL_INTEGER);
        my $rv = $sth->execute();
-       warn $rv;
 -
        my $ret = $rv ? $sth->rows : 0;
  
        $sth->finish;