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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
862a7b80
Commit
862a7b80
authored
Apr 30, 2004
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/my/mysql-4.1
parents
d854a85f
3856bdfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
40 deletions
+7
-40
scripts/fill_help_tables.sh
scripts/fill_help_tables.sh
+7
-40
No files found.
scripts/fill_help_tables.sh
View file @
862a7b80
...
...
@@ -45,7 +45,6 @@ use strict;
use Getopt::Long
;
my
$insert_portion_size
=
15
;
my
$maximum_line_length
=
2040
;
my
$error_prefix
=
"---- help parsing errors :"
;
my
$path_to_lex_file
=
"../sql/lex.h"
;
...
...
@@ -167,7 +166,6 @@ sub add_description
print_error
"double description for
$topic_name
\n
"
;
}
$topics
{
$topic_name
}
->
{
description
}=
$description
;
$topics
{
$topic_name
}
->
{
line_of_description
}=
$cur_line
;
add_topic_to_category
(
$topic_name
)
;
}
...
...
@@ -517,52 +515,21 @@ if (scalar(@topic_names))
{
my
$header
=
"insert into help_topic "
.
"(help_topic_id,help_category_id,name,description,example) values "
;
my
$line_accumulator
=
$header
;
my
$lines_in_accumulator
=
0
;
my
$actual_max_line_length
=
$maximum_line_length
-2
;
# for ";\n"
my
$topic_name
;
my
$count
=
0
;
foreach
$topic_name
(
@topic_names
)
{
print_insert_header
(
$count
,
$header
)
;
my
$topic
=
$topics
{
$topic_name
}
;
my
$line
=
"(
$count
,"
;
$line
.
=
"
$topic
->{category}->{__id__},"
;
$line
.
=
"
\"
$topic_name
\"
,"
;
$line
.
=
"
\"
$topic
->{description}
\"
,"
;
$line
.
=
"
\"
$topic
->{example}
\"
)"
;
if
(
$lines_in_accumulator
<
=
$insert_portion_size
&&
length
(
$line
)
+ length
(
$line_accumulator
)
<
$actual_max_line_length
)
{
if
(
$lines_in_accumulator
ne 0
)
{
$line_accumulator
.
=
","
;
}
$line_accumulator
.
=
$line
;
$lines_in_accumulator
++
;
}
else
{
if
(
length
(
$line
)
+ length
(
$header
)
>=
$actual_max_line_length
)
{
$cur_line
=
$topics
{
$topic_name
}
->
{
line_of_description
}
;
print_error
"too long record for topic
\"
$topic_name
\"
\n
"
.
" please decrease its description or example!
\n
"
;
}
else
{
print
"
$line_accumulator
;
\n
"
;
$line_accumulator
=
$header
.
$line
;
$lines_in_accumulator
=
1
;
}
}
print
"(
$count
,"
;
print
"
$topic
->{category}->{__id__},"
;
print
"
\"
$topic_name
\"
,"
;
print
"
\"
$topic
->{description}
\"
,"
;
print
"
\"
$topic
->{example}
\"
)"
;
$topics
{
$topic_name
}
->
{
__id__
}=
$count
;
$count
++
;
}
if
(
$lines_in_accumulator
ne 0
)
{
print
"
$line_accumulator
;
\n
"
;
}
printf
"
\n
"
;
printf
";
\n\n
"
;
}
my @keywords_names
=
keys
(
%keywords
)
;
...
...
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