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
41fea3d7
Commit
41fea3d7
authored
Jul 01, 2006
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a couple of unused/barely used names.
parent
96bddcaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
sql/sql_lex.cc
sql/sql_lex.cc
+0
-4
sql/sql_lex.h
sql/sql_lex.h
+0
-3
sql/sql_parse.cc
sql/sql_parse.cc
+3
-3
No files found.
sql/sql_lex.cc
View file @
41fea3d7
...
...
@@ -41,8 +41,6 @@ sys_var_long_ptr trg_new_row_fake_var(0, 0);
#define yySkip() lex->ptr++
#define yyLength() ((uint) (lex->ptr - lex->tok_start)-1)
pthread_key
(
LEX
*
,
THR_LEX
);
/* Longest standard keyword name */
#define TOCK_NAME_LENGTH 24
...
...
@@ -91,8 +89,6 @@ void lex_init(void)
for
(
i
=
0
;
i
<
array_elements
(
sql_functions
)
;
i
++
)
sql_functions
[
i
].
length
=
(
uchar
)
strlen
(
sql_functions
[
i
].
name
);
VOID
(
pthread_key_create
(
&
THR_LEX
,
NULL
));
DBUG_VOID_RETURN
;
}
...
...
sql/sql_lex.h
View file @
41fea3d7
...
...
@@ -1116,6 +1116,3 @@ extern void lex_start(THD *thd, uchar *buf,uint length);
extern
void
lex_end
(
LEX
*
lex
);
extern
int
MYSQLlex
(
void
*
arg
,
void
*
yythd
);
extern
pthread_key
(
LEX
*
,
THR_LEX
);
#define current_lex (current_thd->lex)
sql/sql_parse.cc
View file @
41fea3d7
...
...
@@ -2365,7 +2365,7 @@ static void reset_one_shot_variables(THD *thd)
/*
Execute command saved in thd and
current_
lex->sql_command
Execute command saved in thd and lex->sql_command
SYNOPSIS
mysql_execute_command()
...
...
@@ -5541,7 +5541,7 @@ bool check_stack_overrun(THD *thd, long margin,
bool
my_yyoverflow
(
short
**
yyss
,
YYSTYPE
**
yyvs
,
ulong
*
yystacksize
)
{
LEX
*
lex
=
current_
lex
;
LEX
*
lex
=
current_thd
->
lex
;
ulong
old_info
=
0
;
if
((
uint
)
*
yystacksize
>=
MY_YACC_MAX
)
return
1
;
...
...
@@ -5978,7 +5978,7 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
void
store_position_for_column
(
const
char
*
name
)
{
current_lex
->
last_field
->
after
=
my_const_cast
(
char
*
)
(
name
);
current_
thd
->
lex
->
last_field
->
after
=
my_const_cast
(
char
*
)
(
name
);
}
bool
...
...
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