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
2074aeec
Commit
2074aeec
authored
Nov 17, 2004
by
antony@ltantony.rdg.cyberkinetica.homeunix.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use negate_expression() instead of new Item_func_not()
parent
b7b13be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-4
No files found.
sql/sql_yacc.yy
View file @
2074aeec
...
@@ -3992,18 +3992,18 @@ bool_pri:
...
@@ -3992,18 +3992,18 @@ bool_pri:
| predicate BETWEEN_SYM bit_expr AND_SYM bool_pri
| predicate BETWEEN_SYM bit_expr AND_SYM bool_pri
{ $$= new Item_func_between($1,$3,$5); }
{ $$= new Item_func_between($1,$3,$5); }
| predicate not BETWEEN_SYM bit_expr AND_SYM bool_pri
| predicate not BETWEEN_SYM bit_expr AND_SYM bool_pri
{ $$= ne
w Item_func_not(
new Item_func_between($1,$4,$6)); }
{ $$= ne
gate_expression(YYTHD,
new Item_func_between($1,$4,$6)); }
| predicate ;
| predicate ;
predicate:
predicate:
bit_expr IN_SYM '(' expr_list ')'
bit_expr IN_SYM '(' expr_list ')'
{ $4->push_front($1); $$= new Item_func_in(*$4); }
{ $4->push_front($1); $$= new Item_func_in(*$4); }
| bit_expr not IN_SYM '(' expr_list ')'
| bit_expr not IN_SYM '(' expr_list ')'
{ $5->push_front($1); $$= ne
w Item_func_not(
new Item_func_in(*$5)); }
{ $5->push_front($1); $$= ne
gate_expression(YYTHD,
new Item_func_in(*$5)); }
| bit_expr IN_SYM in_subselect
| bit_expr IN_SYM in_subselect
{ $$= new Item_in_subselect($1, $3); }
{ $$= new Item_in_subselect($1, $3); }
| bit_expr not IN_SYM in_subselect
| bit_expr not IN_SYM in_subselect
{ $$= ne
w Item_func_not(
new Item_in_subselect($1, $4)); }
{ $$= ne
gate_expression(YYTHD,
new Item_in_subselect($1, $4)); }
| bit_expr SOUNDS_SYM LIKE bit_expr
| bit_expr SOUNDS_SYM LIKE bit_expr
{ $$= new Item_func_eq(new Item_func_soundex($1),
{ $$= new Item_func_eq(new Item_func_soundex($1),
new Item_func_soundex($4)); }
new Item_func_soundex($4)); }
...
@@ -4013,7 +4013,7 @@ predicate:
...
@@ -4013,7 +4013,7 @@ predicate:
{ $$= new Item_func_not(new Item_func_like($1,$4,$5)); }
{ $$= new Item_func_not(new Item_func_like($1,$4,$5)); }
| bit_expr REGEXP bit_expr { $$= new Item_func_regex($1,$3); }
| bit_expr REGEXP bit_expr { $$= new Item_func_regex($1,$3); }
| bit_expr not REGEXP bit_expr
| bit_expr not REGEXP bit_expr
{ $$= ne
w Item_func_not(
new Item_func_regex($1,$4)); }
{ $$= ne
gate_expression(YYTHD,
new Item_func_regex($1,$4)); }
| bit_expr EQUAL_SYM bit_expr { $$= new Item_func_equal($1,$3); }
| bit_expr EQUAL_SYM bit_expr { $$= new Item_func_equal($1,$3); }
| bit_expr comp_op bit_expr %prec EQ
| bit_expr comp_op bit_expr %prec EQ
{ $$= (*$2)(0)->create($1,$3); }
{ $$= (*$2)(0)->create($1,$3); }
...
...
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