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
b79e410f
Commit
b79e410f
authored
May 03, 2002
by
arjen@fred.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanups for reserved words table.
parent
f4693d2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
204 additions
and
197 deletions
+204
-197
Docs/Support/update-reserved-words.pl
Docs/Support/update-reserved-words.pl
+13
-9
Docs/manual.texi
Docs/manual.texi
+191
-188
No files found.
Docs/Support/update-reserved-words.pl
View file @
b79e410f
...
...
@@ -5,6 +5,7 @@
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
# 2002-05-03 Fixup by arjen@mysql.com, fill last row to full # of columns.
print
STDERR
"
Scanning lex.h for symbols..
\n
";
open
LEX
,
"
<../sql/lex.h
";
...
...
@@ -28,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
close
YACC
;
$list
=
sprintf
("
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
});
print
STDERR
"
Copying reserved words to an array...
\n
";
foreach
(
keys
%
words
)
{
push
@words
,
$words
{
$_
};
};
...
...
@@ -42,11 +38,15 @@ print STDERR "Sorting array...\n";
printf
STDERR
"
There are %i reserved words.
\n
",
scalar
@words
;
@pre
=
("
\
@item
",
"
\
@tab
",
"
\
@tab
");
@post
=
("
\n
",
"
\n
",
"
\n
");
$list
=
"";
for
(
$i
=
0
;
$word
=
shift
(
@words
);
$i
++
)
{
$list
.=
sprintf
"
%s %-30s %s
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
",
$post
[
$i
%
3
];
};
$list
.=
"
\n
";
$list
.=
sprintf
"
%s %s
\n
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
";
}
# Fill last row to full # of columns.
for
(
;
$i
%
3
;
$i
++
)
{
$list
.=
sprintf
"
%s
\n
",
$pre
[
$i
%
3
];
}
open
OLD
,
"
<manual.texi
";
open
NEW
,
"
>manual-tmp.texi
";
...
...
@@ -54,10 +54,14 @@ open NEW, ">manual-tmp.texi";
print
STDERR
"
Copying beginning of manual.texi...
\n
";
while
((
$line
=
<
OLD
>
)
!~
/START_OF_RESERVED_WORDS/
)
{
print
NEW
$line
;
};
print
NEW
"
\
@c
START_OF_RESERVED_WORDS
\n\n
";
printf
NEW
"
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
};
print
STDERR
"
Inserting list of reserved words...
\n
";
# Ensure the fractions add up to 100% otherwise it looks funny in print:
print
NEW
"
\
@multitable
\
@columnfractions
.33 .33 .34
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
";
print
NEW
$list
;
print
NEW
"
\
@end
multitable
\n
";
print
STDERR
"
Skipping over old list...
\n
";
...
...
Docs/manual.texi
View file @
b79e410f
...
...
@@ -28247,196 +28247,199 @@ A few are reserved because MySQL needs them and is
@c START_OF_RESERVED_WORDS
@multitable @columnfractions .33 .33 .34
@item @strong{Word} @tab @strong{Word} @tab @strong{Word}
@c Reserved word list updated Wed May 1 10:50:08 2002 by arjen.
@c Reserved word list updated Fri May 3 08:41:00 2002 by arjen.
@c To regenerate, use Support/update-reserved-words.pl.
@item @code{ADD}
@tab @code{ALL}
@tab @code{ALTER}
@item @code{ANALYZE}
@tab @code{AND}
@tab @code{AS}
@item @code{ASC}
@tab @code{AUTO_INCREMENT}
@tab @code{BDB}
@item @code{BERKELEYDB}
@tab @code{BETWEEN}
@tab @code{BIGINT}
@item @code{BINARY}
@tab @code{BLOB}
@tab @code{BOTH}
@item @code{BY}
@tab @code{CASCADE}
@tab @code{CASE}
@item @code{CHANGE}
@tab @code{CHAR}
@tab @code{CHARACTER}
@item @code{COLUMN}
@tab @code{COLUMNS}
@tab @code{CONSTRAINT}
@item @code{CREATE}
@tab @code{CROSS}
@tab @code{CURRENT_DATE}
@item @code{CURRENT_TIME}
@tab @code{CURRENT_TIMESTAMP}
@tab @code{DATABASE}
@item @code{DATABASES}
@tab @code{DAY_HOUR}
@tab @code{DAY_MINUTE}
@item @code{DAY_SECOND}
@tab @code{DEC}
@tab @code{DECIMAL}
@item @code{DEFAULT}
@tab @code{DELAYED}
@tab @code{DELETE}
@item @code{DESC}
@tab @code{DESCRIBE}
@tab @code{DISTINCT}
@item @code{DISTINCTROW}
@tab @code{DOUBLE}
@tab @code{DROP}
@item @code{ELSE}
@tab @code{ENCLOSED}
@tab @code{ESCAPED}
@item @code{EXISTS}
@tab @code{EXPLAIN}
@tab @code{FIELDS}
@item @code{FLOAT}
@tab @code{FOR}
@tab @code{FOREIGN}
@item @code{FROM}
@tab @code{FULLTEXT}
@tab @code{FUNCTION}
@item @code{GRANT}
@tab @code{GROUP}
@tab @code{HAVING}
@item @code{HIGH_PRIORITY}
@tab @code{HOUR_MINUTE}
@tab @code{HOUR_SECOND}
@item @code{IF}
@tab @code{IGNORE}
@tab @code{IN}
@item @code{INDEX}
@tab @code{INFILE}
@tab @code{INNER}
@item @code{INNODB}
@tab @code{INSERT}
@tab @code{INSERT_ID}
@item @code{INT}
@tab @code{INTEGER}
@tab @code{INTERVAL}
@item @code{INTO}
@tab @code{IS}
@tab @code{JOIN}
@item @code{KEY}
@tab @code{KEYS}
@tab @code{KILL}
@item @code{LAST_INSERT_ID}
@tab @code{LEADING}
@tab @code{LEFT}
@item @code{LIKE}
@tab @code{LIMIT}
@tab @code{LINES}
@item @code{LOAD}
@tab @code{LOCK}
@tab @code{LONG}
@item @code{LONGBLOB}
@tab @code{LONGTEXT}
@tab @code{LOW_PRIORITY}
@item @code{MASTER_SERVER_ID}
@tab @code{MATCH}
@tab @code{MEDIUMBLOB}
@item @code{MEDIUMINT}
@tab @code{MEDIUMTEXT}
@tab @code{MIDDLEINT}
@item @code{MINUTE_SECOND}
@tab @code{MRG_MYISAM}
@tab @code{NATURAL}
@item @code{NOT}
@tab @code{NULL}
@tab @code{NUMERIC}
@item @code{ON}
@tab @code{OPTIMIZE}
@tab @code{OPTION}
@item @code{OPTIONALLY}
@tab @code{OR}
@tab @code{ORDER}
@item @code{OUTER}
@tab @code{OUTFILE}
@tab @code{PARTIAL}
@item @code{PRECISION}
@tab @code{PRIMARY}
@tab @code{PRIVILEGES}
@item @code{PROCEDURE}
@tab @code{PURGE}
@tab @code{READ}
@item @code{REAL}
@tab @code{REFERENCES}
@tab @code{REGEXP}
@item @code{RENAME}
@tab @code{REPLACE}
@tab @code{REQUIRE}
@item @code{RESTRICT}
@tab @code{RETURNS}
@tab @code{REVOKE}
@item @code{RIGHT}
@tab @code{RLIKE}
@tab @code{SELECT}
@item @code{SET}
@tab @code{SHOW}
@tab @code{SMALLINT}
@item @code{SONAME}
@tab @code{SQL_AUTO_IS_NULL}
@tab @code{SQL_BIG_RESULT}
@item @code{SQL_BIG_SELECTS}
@tab @code{SQL_BIG_TABLES}
@tab @code{SQL_BUFFER_RESULT}
@item @code{SQL_CALC_FOUND_ROWS}
@tab @code{SQL_LOG_BIN}
@tab @code{SQL_LOG_OFF}
@item @code{SQL_LOG_UPDATE}
@tab @code{SQL_LOW_PRIORITY_UPDATES}
@tab @code{SQL_MAX_JOIN_SIZE}
@item @code{SQL_QUOTE_SHOW_CREATE}
@tab @code{SQL_SAFE_UPDATES}
@tab @code{SQL_SELECT_LIMIT}
@item @code{SQL_SLAVE_SKIP_COUNTER}
@tab @code{SQL_SMALL_RESULT}
@tab @code{SQL_WARNINGS}
@item @code{SSL}
@tab @code{STARTING}
@tab @code{STRAIGHT_JOIN}
@item @code{STRIPED}
@tab @code{TABLE}
@tab @code{TABLES}
@item @code{TERMINATED}
@tab @code{THEN}
@tab @code{TINYBLOB}
@item @code{TINYINT}
@tab @code{TINYTEXT}
@tab @code{TO}
@item @code{TRAILING}
@tab @code{UNION}
@tab @code{UNIQUE}
@item @code{UNLOCK}
@tab @code{UNSIGNED}
@tab @code{UPDATE}
@item @code{USAGE}
@tab @code{USE}
@tab @code{USING}
@item @code{VALUES}
@tab @code{VARBINARY}
@tab @code{VARCHAR}
@item @code{VARYING}
@tab @code{WHEN}
@tab @code{WHERE}
@item @code{WITH}
@tab @code{WRITE}
@tab @code{YEAR_MONTH}
@item @code{ZEROFILL}
@multitable @columnfractions .33 .33 .34
@item @strong{Word}
@tab @strong{Word}
@tab @strong{Word}
@item @code{ADD}
@tab @code{ALL}
@tab @code{ALTER}
@item @code{ANALYZE}
@tab @code{AND}
@tab @code{AS}
@item @code{ASC}
@tab @code{AUTO_INCREMENT}
@tab @code{BDB}
@item @code{BERKELEYDB}
@tab @code{BETWEEN}
@tab @code{BIGINT}
@item @code{BINARY}
@tab @code{BLOB}
@tab @code{BOTH}
@item @code{BY}
@tab @code{CASCADE}
@tab @code{CASE}
@item @code{CHANGE}
@tab @code{CHAR}
@tab @code{CHARACTER}
@item @code{COLUMN}
@tab @code{COLUMNS}
@tab @code{CONSTRAINT}
@item @code{CREATE}
@tab @code{CROSS}
@tab @code{CURRENT_DATE}
@item @code{CURRENT_TIME}
@tab @code{CURRENT_TIMESTAMP}
@tab @code{DATABASE}
@item @code{DATABASES}
@tab @code{DAY_HOUR}
@tab @code{DAY_MINUTE}
@item @code{DAY_SECOND}
@tab @code{DEC}
@tab @code{DECIMAL}
@item @code{DEFAULT}
@tab @code{DELAYED}
@tab @code{DELETE}
@item @code{DESC}
@tab @code{DESCRIBE}
@tab @code{DISTINCT}
@item @code{DISTINCTROW}
@tab @code{DOUBLE}
@tab @code{DROP}
@item @code{ELSE}
@tab @code{ENCLOSED}
@tab @code{ESCAPED}
@item @code{EXISTS}
@tab @code{EXPLAIN}
@tab @code{FIELDS}
@item @code{FLOAT}
@tab @code{FOR}
@tab @code{FOREIGN}
@item @code{FROM}
@tab @code{FULLTEXT}
@tab @code{FUNCTION}
@item @code{GRANT}
@tab @code{GROUP}
@tab @code{HAVING}
@item @code{HIGH_PRIORITY}
@tab @code{HOUR_MINUTE}
@tab @code{HOUR_SECOND}
@item @code{IF}
@tab @code{IGNORE}
@tab @code{IN}
@item @code{INDEX}
@tab @code{INFILE}
@tab @code{INNER}
@item @code{INNODB}
@tab @code{INSERT}
@tab @code{INSERT_ID}
@item @code{INT}
@tab @code{INTEGER}
@tab @code{INTERVAL}
@item @code{INTO}
@tab @code{IS}
@tab @code{JOIN}
@item @code{KEY}
@tab @code{KEYS}
@tab @code{KILL}
@item @code{LAST_INSERT_ID}
@tab @code{LEADING}
@tab @code{LEFT}
@item @code{LIKE}
@tab @code{LIMIT}
@tab @code{LINES}
@item @code{LOAD}
@tab @code{LOCK}
@tab @code{LONG}
@item @code{LONGBLOB}
@tab @code{LONGTEXT}
@tab @code{LOW_PRIORITY}
@item @code{MASTER_SERVER_ID}
@tab @code{MATCH}
@tab @code{MEDIUMBLOB}
@item @code{MEDIUMINT}
@tab @code{MEDIUMTEXT}
@tab @code{MIDDLEINT}
@item @code{MINUTE_SECOND}
@tab @code{MRG_MYISAM}
@tab @code{NATURAL}
@item @code{NOT}
@tab @code{NULL}
@tab @code{NUMERIC}
@item @code{ON}
@tab @code{OPTIMIZE}
@tab @code{OPTION}
@item @code{OPTIONALLY}
@tab @code{OR}
@tab @code{ORDER}
@item @code{OUTER}
@tab @code{OUTFILE}
@tab @code{PARTIAL}
@item @code{PRECISION}
@tab @code{PRIMARY}
@tab @code{PRIVILEGES}
@item @code{PROCEDURE}
@tab @code{PURGE}
@tab @code{READ}
@item @code{REAL}
@tab @code{REFERENCES}
@tab @code{REGEXP}
@item @code{RENAME}
@tab @code{REPLACE}
@tab @code{REQUIRE}
@item @code{RESTRICT}
@tab @code{RETURNS}
@tab @code{REVOKE}
@item @code{RIGHT}
@tab @code{RLIKE}
@tab @code{SELECT}
@item @code{SET}
@tab @code{SHOW}
@tab @code{SMALLINT}
@item @code{SONAME}
@tab @code{SQL_AUTO_IS_NULL}
@tab @code{SQL_BIG_RESULT}
@item @code{SQL_BIG_SELECTS}
@tab @code{SQL_BIG_TABLES}
@tab @code{SQL_BUFFER_RESULT}
@item @code{SQL_CALC_FOUND_ROWS}
@tab @code{SQL_LOG_BIN}
@tab @code{SQL_LOG_OFF}
@item @code{SQL_LOG_UPDATE}
@tab @code{SQL_LOW_PRIORITY_UPDATES}
@tab @code{SQL_MAX_JOIN_SIZE}
@item @code{SQL_QUOTE_SHOW_CREATE}
@tab @code{SQL_SAFE_UPDATES}
@tab @code{SQL_SELECT_LIMIT}
@item @code{SQL_SLAVE_SKIP_COUNTER}
@tab @code{SQL_SMALL_RESULT}
@tab @code{SQL_WARNINGS}
@item @code{SSL}
@tab @code{STARTING}
@tab @code{STRAIGHT_JOIN}
@item @code{STRIPED}
@tab @code{TABLE}
@tab @code{TABLES}
@item @code{TERMINATED}
@tab @code{THEN}
@tab @code{TINYBLOB}
@item @code{TINYINT}
@tab @code{TINYTEXT}
@tab @code{TO}
@item @code{TRAILING}
@tab @code{UNION}
@tab @code{UNIQUE}
@item @code{UNLOCK}
@tab @code{UNSIGNED}
@tab @code{UPDATE}
@item @code{USAGE}
@tab @code{USE}
@tab @code{USING}
@item @code{VALUES}
@tab @code{VARBINARY}
@tab @code{VARCHAR}
@item @code{VARYING}
@tab @code{WHEN}
@tab @code{WHERE}
@item @code{WITH}
@tab @code{WRITE}
@tab @code{YEAR_MONTH}
@item @code{ZEROFILL}
@tab
@tab
@end multitable
@c END_OF_RESERVED_WORDS
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