mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
ndb_size.pl:
fix incorrect quoting of column name ndb/tools/ndb_size.pl: fix incorrect quoting of column name
This commit is contained in:
parent
16647d07e0
commit
db2c1beec1
1 changed files with 3 additions and 3 deletions
|
|
@ -146,9 +146,9 @@ foreach(@{$tables})
|
||||||
elsif($type =~ /varchar/ || $type =~ /varbinary/)
|
elsif($type =~ /varchar/ || $type =~ /varbinary/)
|
||||||
{
|
{
|
||||||
my $fixed= 1+$size;
|
my $fixed= 1+$size;
|
||||||
my @dynamic=$dbh->selectrow_array("select avg(length("
|
my @dynamic=$dbh->selectrow_array("select avg(length(`"
|
||||||
.$dbh->quote($name)
|
.$name.
|
||||||
.")) from `".$table.'`');
|
."`)) from `".$table.'`');
|
||||||
$dynamic[0]=0 if !$dynamic[0];
|
$dynamic[0]=0 if !$dynamic[0];
|
||||||
@realsize= ($fixed,$fixed,ceil($dynamic[0]));
|
@realsize= ($fixed,$fixed,ceil($dynamic[0]));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue