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
e2ce8b21
Commit
e2ce8b21
authored
Mar 09, 2006
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge zim.(none):/home/brian/mysql/mysql-5.0
into zim.(none):/home/brian/mysql/mysql-5.1-new
parents
3155af91
579271a4
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
15 deletions
+17
-15
sql/mysql_priv.h
sql/mysql_priv.h
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sp.cc
sql/sp.cc
+2
-2
sql/sql_lex.cc
sql/sql_lex.cc
+2
-2
sql/sql_lex.h
sql/sql_lex.h
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+3
-3
sql/sql_prepare.cc
sql/sql_prepare.cc
+1
-1
sql/sql_trigger.cc
sql/sql_trigger.cc
+2
-1
sql/sql_view.cc
sql/sql_view.cc
+2
-1
No files found.
sql/mysql_priv.h
View file @
e2ce8b21
...
...
@@ -1223,7 +1223,7 @@ File open_binlog(IO_CACHE *log, const char *log_file_name,
const
char
**
errmsg
);
/* mysqld.cc */
extern
void
yy
error
(
const
char
*
);
extern
void
MYSQL
error
(
const
char
*
);
/* item_func.cc */
extern
bool
check_reserved_words
(
LEX_STRING
*
name
);
...
...
@@ -1634,7 +1634,7 @@ void free_list(I_List <i_string_pair> *list);
void
free_list
(
I_List
<
i_string
>
*
list
);
/* sql_yacc.cc */
extern
int
yy
parse
(
void
*
thd
);
extern
int
MYSQL
parse
(
void
*
thd
);
/* frm_crypt.cc */
#ifdef HAVE_CRYPTED_FRM
...
...
sql/mysqld.cc
View file @
e2ce8b21
...
...
@@ -1620,7 +1620,7 @@ static void network_init(void)
#endif
/*!EMBEDDED_LIBRARY*/
void
yy
error
(
const
char
*
s
)
void
MYSQL
error
(
const
char
*
s
)
{
THD
*
thd
=
current_thd
;
char
*
yytext
=
(
char
*
)
thd
->
lex
->
tok_start
;
...
...
sql/sp.cc
View file @
e2ce8b21
...
...
@@ -268,7 +268,7 @@ db_find_routine_aux(THD *thd, int type, sp_name *name, TABLE *table)
static
int
db_find_routine
(
THD
*
thd
,
int
type
,
sp_name
*
name
,
sp_head
**
sphp
)
{
extern
int
yy
parse
(
void
*
thd
);
extern
int
MYSQL
parse
(
void
*
thd
);
TABLE
*
table
;
const
char
*
params
,
*
returns
,
*
body
;
int
ret
;
...
...
@@ -458,7 +458,7 @@ db_load_routine(THD *thd, int type, sp_name *name, sp_head **sphp,
lex_start
(
thd
,
(
uchar
*
)
defstr
.
c_ptr
(),
defstr
.
length
());
thd
->
spcont
=
0
;
if
(
yy
parse
(
thd
)
||
thd
->
is_fatal_error
||
newlex
.
sphead
==
NULL
)
if
(
MYSQL
parse
(
thd
)
||
thd
->
is_fatal_error
||
newlex
.
sphead
==
NULL
)
{
sp_head
*
sp
=
newlex
.
sphead
;
...
...
sql/sql_lex.cc
View file @
e2ce8b21
...
...
@@ -513,14 +513,14 @@ static inline uint int_token(const char *str,uint length)
}
/*
yylex remember the following states from the following yy
lex()
MYSQLlex remember the following states from the following MYSQL
lex()
- MY_LEX_EOQ Found end of query
- MY_LEX_OPERATOR_OR_IDENT Last state was an ident, text or number
(which can't be followed by a signed number)
*/
int
yy
lex
(
void
*
arg
,
void
*
yythd
)
int
MYSQL
lex
(
void
*
arg
,
void
*
yythd
)
{
reg1
uchar
c
;
int
tokval
,
result_state
;
...
...
sql/sql_lex.h
View file @
e2ce8b21
...
...
@@ -757,7 +757,7 @@ typedef struct st_lex
const
uchar
*
buf
;
/* The beginning of string, used by SPs */
const
uchar
*
ptr
,
*
tok_start
,
*
tok_end
,
*
end_of_query
;
/* The values of tok_start/tok_end as they were one call of
yy
lex before */
/* The values of tok_start/tok_end as they were one call of
MYSQL
lex before */
const
uchar
*
tok_start_prev
,
*
tok_end_prev
;
char
*
length
,
*
dec
,
*
change
,
*
name
;
...
...
@@ -1119,7 +1119,7 @@ extern void lex_init(void);
extern
void
lex_free
(
void
);
extern
void
lex_start
(
THD
*
thd
,
const
uchar
*
buf
,
uint
length
);
extern
void
lex_end
(
LEX
*
lex
);
extern
int
yy
lex
(
void
*
arg
,
void
*
yythd
);
extern
int
MYSQL
lex
(
void
*
arg
,
void
*
yythd
);
extern
pthread_key
(
LEX
*
,
THR_LEX
);
...
...
sql/sql_parse.cc
View file @
e2ce8b21
...
...
@@ -4379,7 +4379,7 @@ mysql_execute_command(THD *thd)
/*
We must cleanup the unit and the lex here because
sp_grant_privileges calls (indirectly) db_find_routine,
which in turn may call
yy
parse with THD::lex.
which in turn may call
MYSQL
parse with THD::lex.
TODO: fix db_find_routine to use a temporary lex.
*/
lex
->
unit
.
cleanup
();
...
...
@@ -5818,7 +5818,7 @@ void mysql_parse(THD *thd, char *inBuf, uint length)
sp_cache_flush_obsolete
(
&
thd
->
sp_proc_cache
);
sp_cache_flush_obsolete
(
&
thd
->
sp_func_cache
);
if
(
!
yy
parse
((
void
*
)
thd
)
&&
!
thd
->
is_fatal_error
)
if
(
!
MYSQL
parse
((
void
*
)
thd
)
&&
!
thd
->
is_fatal_error
)
{
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if
(
mqh_used
&&
thd
->
user_connect
&&
...
...
@@ -5910,7 +5910,7 @@ bool mysql_test_parse_for_slave(THD *thd, char *inBuf, uint length)
DBUG_ENTER
(
"mysql_test_parse_for_slave"
);
mysql_init_query
(
thd
,
(
uchar
*
)
inBuf
,
length
);
if
(
!
yy
parse
((
void
*
)
thd
)
&&
!
thd
->
is_fatal_error
&&
if
(
!
MYSQL
parse
((
void
*
)
thd
)
&&
!
thd
->
is_fatal_error
&&
all_tables_not_ok
(
thd
,(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
))
error
=
1
;
/* Ignore question */
thd
->
end_statement
();
...
...
sql/sql_prepare.cc
View file @
e2ce8b21
...
...
@@ -2758,7 +2758,7 @@ bool Prepared_statement::prepare(const char *packet, uint packet_len)
lex_start
(
thd
,
(
uchar
*
)
thd
->
query
,
thd
->
query_length
);
lex
->
stmt_prepare_mode
=
TRUE
;
error
=
yy
parse
((
void
*
)
thd
)
||
thd
->
is_fatal_error
||
error
=
MYSQL
parse
((
void
*
)
thd
)
||
thd
->
is_fatal_error
||
thd
->
net
.
report_error
||
init_param_array
(
this
);
lex
->
safe_to_cache_query
=
FALSE
;
/*
...
...
sql/sql_trigger.cc
View file @
e2ce8b21
...
...
@@ -15,6 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#define MYSQL_LEX 1
#include "mysql_priv.h"
#include "sp_head.h"
#include "sql_trigger.h"
...
...
@@ -928,7 +929,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const char *db,
lex_start
(
thd
,
(
uchar
*
)
trg_create_str
->
str
,
trg_create_str
->
length
);
thd
->
spcont
=
0
;
if
(
yy
parse
((
void
*
)
thd
)
||
thd
->
is_fatal_error
)
if
(
MYSQL
parse
((
void
*
)
thd
)
||
thd
->
is_fatal_error
)
{
/*
Free lex associated resources.
...
...
sql/sql_view.cc
View file @
e2ce8b21
...
...
@@ -15,6 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define MYSQL_LEX 1
#include "mysql_priv.h"
#include "sql_select.h"
#include "parse_file.h"
...
...
@@ -891,7 +892,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table)
MODE_IGNORE_SPACE
|
MODE_NO_BACKSLASH_ESCAPES
);
CHARSET_INFO
*
save_cs
=
thd
->
variables
.
character_set_client
;
thd
->
variables
.
character_set_client
=
system_charset_info
;
res
=
yy
parse
((
void
*
)
thd
);
res
=
MYSQL
parse
((
void
*
)
thd
);
thd
->
variables
.
character_set_client
=
save_cs
;
thd
->
variables
.
sql_mode
=
save_mode
;
}
...
...
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