mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +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/)
|
||||
{
|
||||
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]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue