summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <stewart@mysql.com>2005-11-29 14:55:26 +0100
committerunknown <stewart@mysql.com>2005-11-29 14:55:26 +0100
commitdb2c1beec157790e212dd0e98bdd987c3f481821 (patch)
tree6475ea55b7619c1746bc64a9025f50dad3d0b8c7 /ndb
parent16647d07e067cb2740431cebcad7cb64b89067b4 (diff)
downloadmariadb-git-db2c1beec157790e212dd0e98bdd987c3f481821.tar.gz
ndb_size.pl:
fix incorrect quoting of column name ndb/tools/ndb_size.pl: fix incorrect quoting of column name
Diffstat (limited to 'ndb')
-rw-r--r--ndb/tools/ndb_size.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/ndb/tools/ndb_size.pl b/ndb/tools/ndb_size.pl
index ece0901e0b2..e0085c619f0 100644
--- a/ndb/tools/ndb_size.pl
+++ b/ndb/tools/ndb_size.pl
@@ -146,9 +146,9 @@ foreach(@{$tables})
elsif($type =~ /varchar/ || $type =~ /varbinary/)
{
my $fixed= 1+$size;
- my @dynamic=$dbh->selectrow_array("select avg(length("
- .$dbh->quote($name)
- .")) from `".$table.'`');
+ my @dynamic=$dbh->selectrow_array("select avg(length(`"
+ .$name.
+ ."`)) from `".$table.'`');
$dynamic[0]=0 if !$dynamic[0];
@realsize= ($fixed,$fixed,ceil($dynamic[0]));
}