summaryrefslogtreecommitdiff
path: root/storage/ndb/tools/ndb_size.pl
diff options
context:
space:
mode:
authorstewart@flamingspork.com[stewart] <>2007-08-15 12:12:46 +1000
committerstewart@flamingspork.com[stewart] <>2007-08-15 12:12:46 +1000
commitf788d0d8f78db05fdef4c2f31ce4c8903250602f (patch)
tree36965b90d49e353b7606fed0be6553f3f0cfbd89 /storage/ndb/tools/ndb_size.pl
parent74b475e2b473871f92dee4ef66f2cc3358244f18 (diff)
downloadmariadb-git-f788d0d8f78db05fdef4c2f31ce4c8903250602f.tar.gz
[PATCH] Bug#29228 ndb_size.pl borks on float columns with comma in ()
Index: ndb-work/storage/ndb/tools/ndb_size.pl ===================================================================
Diffstat (limited to 'storage/ndb/tools/ndb_size.pl')
-rw-r--r--storage/ndb/tools/ndb_size.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/ndb/tools/ndb_size.pl b/storage/ndb/tools/ndb_size.pl
index 709e2eb3d5c..8f6395443ba 100644
--- a/storage/ndb/tools/ndb_size.pl
+++ b/storage/ndb/tools/ndb_size.pl
@@ -582,6 +582,8 @@ sub do_table {
{$col->dm(4)}
elsif($type =~ /float/)
{
+ my @sz= split ',', $size;
+ $size= $sz[0]+$sz[1];
if(!defined($size) || $size<=24)
{$col->dm(4)}
else