From 381ef5b3f044dc9e5f3de91175917e11d578a50a Mon Sep 17 00:00:00 2001 From: Kensaku Araga Date: Thu, 18 Oct 2012 17:10:12 +0900 Subject: [PATCH] =?UTF-8?q?=E6=A8=99=E6=BA=96=E5=85=A5=E5=8A=9B=E3=81=AE?= =?UTF-8?q?=E5=8F=97=E3=81=91=E5=8F=96=E3=82=8A=E3=81=8B=E3=81=9F=E3=81=8C?= =?UTF-8?q?=E9=96=93=E9=81=95=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/shard_prompt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/shard_prompt b/bin/shard_prompt index 4e93c55..ed2133f 100755 --- a/bin/shard_prompt +++ b/bin/shard_prompt @@ -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(); + my $sql = ""; + $sql .= $_ while (<>); + MySQL::Sharding::Client::Output->new( yaml => $config )->execute($sql); }