Skip to content

Commit

Permalink
標準入力の受け取りかたが間違っていた
Browse files Browse the repository at this point in the history
  • Loading branch information
ken39arg committed Oct 18, 2012
1 parent 3795e77 commit 381ef5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/shard_prompt
Expand Up @@ -26,7 +26,9 @@ die "config not found $config\n" unless ( -f $config );
if (-t STDIN) {
MySQL::Sharding::Client::Prompt->new( yaml => $config )->run;
} else {
MySQL::Sharding::Client::Output->new( yaml => $config )->execute(<STDIN>);
my $sql = "";
$sql .= $_ while (<>);
MySQL::Sharding::Client::Output->new( yaml => $config )->execute($sql);
}


Expand Down

0 comments on commit 381ef5b

Please sign in to comment.