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
c3eb9360
Commit
c3eb9360
authored
Jun 25, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/my/mysql-3.23 into mysql.com:/home/my/mysql-4.0
parents
b8782409
5db861c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-2
No files found.
sql/sql_parse.cc
View file @
c3eb9360
...
...
@@ -2869,10 +2869,10 @@ bool check_stack_overrun(THD *thd,char *buf __attribute__((unused)))
#define MY_YACC_INIT 1000 // Start with big alloc
#define MY_YACC_MAX 32000 // Because of 'short'
bool
my_yyoverflow
(
short
**
yyss
,
YYSTYPE
**
yyvs
,
int
*
yystacksize
)
bool
my_yyoverflow
(
short
**
yyss
,
YYSTYPE
**
yyvs
,
ulong
*
yystacksize
)
{
LEX
*
lex
=
current_lex
;
int
old_info
=
0
;
ulong
old_info
=
0
;
if
((
uint
)
*
yystacksize
>=
MY_YACC_MAX
)
return
1
;
if
(
!
lex
->
yacc_yyvs
)
...
...
sql/sql_yacc.yy
View file @
c3eb9360
...
...
@@ -32,7 +32,7 @@
extern void yyerror(const char*);
int yylex(void *yylval);
#define yyoverflow(A,B,C,D,E,F)
if (my_yyoverflow((B),(D),(int*) (F))) { yyerror((char*) (A)); return 2;
}
#define yyoverflow(A,B,C,D,E,F)
{ulong val= *(F); if(my_yyoverflow((B), (D), &val)) { yyerror((char*) (A)); return 2; } else { *(F)= (YYSIZE_T)val; }
}
inline Item *or_or_concat(Item* A, Item* B)
{
...
...
@@ -71,7 +71,7 @@ inline Item *or_or_concat(Item* A, Item* B)
}
%{
bool my_yyoverflow(short **a, YYSTYPE **b,
int
*yystacksize);
bool my_yyoverflow(short **a, YYSTYPE **b,
ulong
*yystacksize);
%}
%pure_parser /* We have threads */
...
...
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