Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
416cd04a
Commit
416cd04a
authored
Nov 29, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb_size.pl:
fix incorrect quoting of column name
parent
e6f2d500
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ndb/tools/ndb_size.pl
ndb/tools/ndb_size.pl
+3
-3
No files found.
ndb/tools/ndb_size.pl
View file @
416cd04a
...
...
@@ -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
]));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment