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
dccd85e7
Commit
dccd85e7
authored
Nov 24, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: s/(OLD_)?PASSWORD/&_SYM/g
parent
8934794a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
sql/lex.h
sql/lex.h
+2
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+13
-13
No files found.
sql/lex.h
View file @
dccd85e7
...
...
@@ -411,7 +411,7 @@ static SYMBOL symbols[] = {
{
"NUMERIC"
,
SYM
(
NUMERIC_SYM
)},
{
"NVARCHAR"
,
SYM
(
NVARCHAR_SYM
)},
{
"OFFSET"
,
SYM
(
OFFSET_SYM
)},
{
"OLD_PASSWORD"
,
SYM
(
OLD_PASSWORD
)},
{
"OLD_PASSWORD"
,
SYM
(
OLD_PASSWORD
_SYM
)},
{
"ON"
,
SYM
(
ON
)},
{
"ONE"
,
SYM
(
ONE_SYM
)},
{
"ONLINE"
,
SYM
(
ONLINE_SYM
)},
...
...
@@ -436,7 +436,7 @@ static SYMBOL symbols[] = {
{
"PARTITION"
,
SYM
(
PARTITION_SYM
)},
{
"PARTITIONING"
,
SYM
(
PARTITIONING_SYM
)},
{
"PARTITIONS"
,
SYM
(
PARTITIONS_SYM
)},
{
"PASSWORD"
,
SYM
(
PASSWORD
)},
{
"PASSWORD"
,
SYM
(
PASSWORD
_SYM
)},
{
"PERSISTENT"
,
SYM
(
PERSISTENT_SYM
)},
{
"PHASE"
,
SYM
(
PHASE_SYM
)},
{
"PLUGIN"
,
SYM
(
PLUGIN_SYM
)},
...
...
sql/sql_yacc.yy
View file @
dccd85e7
...
...
@@ -1330,7 +1330,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token NUMERIC_SYM /* SQL-2003-R */
%token NVARCHAR_SYM
%token OFFSET_SYM
%token OLD_PASSWORD
%token OLD_PASSWORD
_SYM
%token ON /* SQL-2003-R */
%token ONE_SYM
%token ONLY_SYM /* SQL-2003-R */
...
...
@@ -1358,7 +1358,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token PARTITION_SYM /* SQL-2003-R */
%token PARTITIONS_SYM
%token PARTITIONING_SYM
%token PASSWORD
%token PASSWORD
_SYM
%token PERSISTENT_SYM
%token PHASE_SYM
%token PLUGINS_SYM
...
...
@@ -2526,7 +2526,7 @@ server_option:
MYSQL_YYABORT_UNLESS(Lex->server_options.owner.str == 0);
Lex->server_options.owner= $2;
}
| PASSWORD TEXT_STRING_sys
| PASSWORD
_SYM
TEXT_STRING_sys
{
MYSQL_YYABORT_UNLESS(Lex->server_options.password.str == 0);
Lex->server_options.password= $2;
...
...
@@ -5614,7 +5614,7 @@ create_table_option:
Lex->create_info.avg_row_length=$3;
Lex->create_info.used_fields|= HA_CREATE_USED_AVG_ROW_LENGTH;
}
| PASSWORD opt_equal TEXT_STRING_sys
| PASSWORD
_SYM
opt_equal TEXT_STRING_sys
{
Lex->create_info.password=$3.str;
Lex->create_info.used_fields|= HA_CREATE_USED_PASSWORD;
...
...
@@ -9808,14 +9808,14 @@ function_call_conflict:
if ($$ == NULL)
MYSQL_YYABORT;
}
| OLD_PASSWORD '(' expr ')'
| OLD_PASSWORD
_SYM
'(' expr ')'
{
$$= new (thd->mem_root)
Item_func_password($3, Item_func_password::OLD);
if ($$ == NULL)
MYSQL_YYABORT;
}
| PASSWORD '(' expr ')'
| PASSWORD
_SYM
'(' expr ')'
{
Item* i1;
i1= new (thd->mem_root) Item_func_password($3);
...
...
@@ -14318,7 +14318,7 @@ keyword_sp:
| NUMBER_SYM {}
| NVARCHAR_SYM {}
| OFFSET_SYM {}
| OLD_PASSWORD
{}
| OLD_PASSWORD
_SYM
{}
| ONE_SYM {}
| ONLINE_SYM {}
| ONLY_SYM {}
...
...
@@ -14327,7 +14327,7 @@ keyword_sp:
| PARTIAL {}
| PARTITIONING_SYM {}
| PARTITIONS_SYM {}
| PASSWORD
{}
| PASSWORD
_SYM
{}
| PERSISTENT_SYM {}
| PHASE_SYM {}
| PLUGIN_SYM {}
...
...
@@ -14753,7 +14753,7 @@ option_value_no_option_type:
MYSQL_YYABORT;
lex->var_list.push_back(var);
}
| PASSWORD equal text_or_password
| PASSWORD
_SYM
equal text_or_password
{
LEX *lex= thd->lex;
LEX_USER *user;
...
...
@@ -14778,7 +14778,7 @@ option_value_no_option_type:
if (lex->sphead)
lex->sphead->m_flags|= sp_head::HAS_SET_AUTOCOMMIT_STMT;
}
| PASSWORD FOR_SYM user equal text_or_password
| PASSWORD
_SYM
FOR_SYM user equal text_or_password
{
set_var_password *var= new set_var_password($3,$5);
if (var == NULL)
...
...
@@ -14929,7 +14929,7 @@ isolation_types:
text_or_password:
TEXT_STRING { $$=$1.str;}
| PASSWORD '(' TEXT_STRING ')'
| PASSWORD
_SYM
'(' TEXT_STRING ')'
{
$$= $3.length ?
Item_func_password::alloc(thd, $3.str, $3.length,
...
...
@@ -14940,7 +14940,7 @@ text_or_password:
if ($$ == NULL)
MYSQL_YYABORT;
}
| OLD_PASSWORD '(' TEXT_STRING ')'
| OLD_PASSWORD
_SYM
'(' TEXT_STRING ')'
{
$$= $3.length ? Item_func_password::
alloc(thd, $3.str, $3.length, Item_func_password::OLD) :
...
...
@@ -15525,7 +15525,7 @@ grant_user:
if (Lex->sql_command == SQLCOM_REVOKE)
MYSQL_YYABORT;
}
| user IDENTIFIED_SYM BY PASSWORD TEXT_STRING
| user IDENTIFIED_SYM BY PASSWORD
_SYM
TEXT_STRING
{
$$= $1;
$1->auth= $5;
...
...
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