[PATCH] Bug#29228 ndb_size.pl borks on float columns with comma in ()

Index: ndb-work/storage/ndb/tools/ndb_size.pl
===================================================================
parent 74b475e2
...@@ -582,6 +582,8 @@ sub do_table { ...@@ -582,6 +582,8 @@ sub do_table {
{$col->dm(4)} {$col->dm(4)}
elsif($type =~ /float/) elsif($type =~ /float/)
{ {
my @sz= split ',', $size;
$size= $sz[0]+$sz[1];
if(!defined($size) || $size<=24) if(!defined($size) || $size<=24)
{$col->dm(4)} {$col->dm(4)}
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment