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
f04bef8f
Commit
f04bef8f
authored
Mar 14, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
3613f8c2
18343b94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
mysql-test/r/join_outer.result
mysql-test/r/join_outer.result
+6
-0
mysql-test/t/join_outer.test
mysql-test/t/join_outer.test
+1
-0
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+3
-1
No files found.
mysql-test/r/join_outer.result
View file @
f04bef8f
...
...
@@ -917,4 +917,10 @@ a b a b
1 1 1 2
2 1 2 2
3 1 NULL NULL
SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a WHERE not(0+(t1.a=30 and t2.b=1));
a b a b
1 1 1 2
2 1 2 2
3 1 NULL NULL
4 2 NULL NULL
DROP TABLE t1,t2;
mysql-test/t/join_outer.test
View file @
f04bef8f
...
...
@@ -647,6 +647,7 @@ SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.a;
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
t1
.
a
=
t2
.
a
WHERE
t1
.
b
=
1
;
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
t1
.
a
=
t2
.
a
WHERE
t1
.
b
=
1
XOR
(
NOT
ISNULL
(
t2
.
a
)
AND
t2
.
b
=
1
);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
t1
.
a
=
t2
.
a
WHERE
not
(
0
+
(
t1
.
a
=
30
and
t2
.
b
=
1
));
DROP
TABLE
t1
,
t2
;
...
...
sql/item_cmpfunc.h
View file @
f04bef8f
...
...
@@ -1190,6 +1190,8 @@ class Item_cond_and :public Item_cond
enum
Functype
functype
()
const
{
return
COND_AND_FUNC
;
}
longlong
val_int
();
const
char
*
func_name
()
const
{
return
"and"
;
}
table_map
not_null_tables
()
const
{
return
abort_on_null
?
not_null_tables_cache
:
and_tables_cache
;
}
Item
*
copy_andor_structure
(
THD
*
thd
)
{
Item_cond_and
*
item
;
...
...
@@ -1237,7 +1239,7 @@ class Item_cond_xor :public Item_cond
enum
Type
type
()
const
{
return
FUNC_ITEM
;
}
longlong
val_int
();
const
char
*
func_name
()
const
{
return
"xor"
;
}
table_map
not_null_tables
()
const
{
return
and_tables_cache
;
}
void
top_level_item
()
{
}
};
...
...
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