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
8f145dae
Commit
8f145dae
authored
Aug 24, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace cleanup sql/sql_yacc.yy: Whitespace cleaup
parent
4fd7ce7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
sql/sql_yacc.yy
sql/sql_yacc.yy
+12
-11
No files found.
sql/sql_yacc.yy
View file @
8f145dae
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define MYSQL_YACC
#define MYSQL_YACC
#define YYINITDEPTH 100
#define YYINITDEPTH 100
#define YYMAXDEPTH 3200
/* Because of 64K stack */
#define YYMAXDEPTH 3200
/* Because of 64K stack */
#define Lex (YYTHD->lex)
#define Lex (YYTHD->lex)
#define Select Lex->current_select
#define Select Lex->current_select
#include "mysql_priv.h"
#include "mysql_priv.h"
...
@@ -506,7 +506,7 @@ Item* handle_sql2003_note184_exception(THD *thd, Item* left, bool equal,
...
@@ -506,7 +506,7 @@ Item* handle_sql2003_note184_exception(THD *thd, Item* left, bool equal,
bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%}
%}
%pure_parser
/* We have threads */
%pure_parser
/* We have threads */
/*
/*
Currently there are 280 shift/reduce conflicts.
Currently there are 280 shift/reduce conflicts.
We should not introduce new conflicts any more.
We should not introduce new conflicts any more.
...
@@ -1315,10 +1315,11 @@ rule: <-- starts at col 1
...
@@ -1315,10 +1315,11 @@ rule: <-- starts at col 1
}
}
; <-- on a line by itself, starts at col 9
; <-- on a line by itself, starts at col 9
Also, please do not use any <TAB>, but spaces.
Also, please do not use any <TAB>, but spaces.
Having a uniform indentation in this file helps
Having a uniform indentation in this file helps
code reviews, patches, merges, and make maintenance easier.
code reviews, patches, merges, and make maintenance easier.
Thanks.
Tip: grep [[:cntrl:]] sql_yacc.yy
Thanks.
*/
*/
query:
query:
...
@@ -5149,7 +5150,7 @@ opt_bin_charset:
...
@@ -5149,7 +5150,7 @@ opt_bin_charset:
MYSQL_YYABORT;
MYSQL_YYABORT;
}
}
}
}
| charset charset_name
{ Lex->charset=$2; }
| charset charset_name
{ Lex->charset=$2; }
;
;
opt_primary:
opt_primary:
...
@@ -5371,7 +5372,7 @@ alter:
...
@@ -5371,7 +5372,7 @@ alter:
lex->create_info.row_type= ROW_TYPE_NOT_USED;
lex->create_info.row_type= ROW_TYPE_NOT_USED;
lex->alter_info.reset();
lex->alter_info.reset();
lex->no_write_to_binlog= 0;
lex->no_write_to_binlog= 0;
lex->create_info.storage_media= HA_SM_DEFAULT;
lex->create_info.storage_media= HA_SM_DEFAULT;
}
}
alter_commands
alter_commands
{}
{}
...
@@ -6675,9 +6676,9 @@ bool_test:
...
@@ -6675,9 +6676,9 @@ bool_test:
;
;
bool_pri:
bool_pri:
bool_pri IS NULL_SYM
{ $$= new Item_func_isnull($1); }
bool_pri IS NULL_SYM
{ $$= new Item_func_isnull($1); }
| bool_pri IS not NULL_SYM { $$= new Item_func_isnotnull($1); }
| bool_pri IS not NULL_SYM { $$= new Item_func_isnotnull($1); }
| bool_pri EQUAL_SYM predicate
{ $$= new Item_func_equal($1,$3); }
| bool_pri EQUAL_SYM predicate
{ $$= new Item_func_equal($1,$3); }
| bool_pri comp_op predicate %prec EQ
| bool_pri comp_op predicate %prec EQ
{ $$= (*$2)(0)->create($1,$3); }
{ $$= (*$2)(0)->create($1,$3); }
| bool_pri comp_op all_or_any '(' subselect ')' %prec EQ
| bool_pri comp_op all_or_any '(' subselect ')' %prec EQ
...
@@ -6842,7 +6843,7 @@ simple_expr:
...
@@ -6842,7 +6843,7 @@ simple_expr:
| sum_expr
| sum_expr
| simple_expr OR_OR_SYM simple_expr
| simple_expr OR_OR_SYM simple_expr
{ $$= new (YYTHD->mem_root) Item_func_concat($1, $3); }
{ $$= new (YYTHD->mem_root) Item_func_concat($1, $3); }
| '+' simple_expr %prec NEG
{ $$= $2; }
| '+' simple_expr %prec NEG
{ $$= $2; }
| '-' simple_expr %prec NEG
| '-' simple_expr %prec NEG
{ $$= new (YYTHD->mem_root) Item_func_neg($2); }
{ $$= new (YYTHD->mem_root) Item_func_neg($2); }
| '~' simple_expr %prec NEG
| '~' simple_expr %prec NEG
...
...
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