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
28489be4
Commit
28489be4
authored
Feb 08, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql
into sinisa.nasamreza.org:/mnt/work/mysql
parents
736e96f6
c89c969b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
mysql-test/r/type_datetime.result
mysql-test/r/type_datetime.result
+1
-0
mysql-test/t/type_datetime.test
mysql-test/t/type_datetime.test
+5
-0
sql/sql_select.cc
sql/sql_select.cc
+5
-0
No files found.
mysql-test/r/type_datetime.result
View file @
28489be4
...
@@ -40,3 +40,4 @@ date numfacture expedition
...
@@ -40,3 +40,4 @@ date numfacture expedition
0000-00-00 00:00:00 1212 0001-00-00 00:00:00
0000-00-00 00:00:00 1212 0001-00-00 00:00:00
table type possible_keys key key_len ref rows Extra
table type possible_keys key key_len ref rows Extra
t1 ref expedition expedition 8 const 1 where used
t1 ref expedition expedition 8 const 1 where used
a b
mysql-test/t/type_datetime.test
View file @
28489be4
...
@@ -50,3 +50,8 @@ INSERT INTO t1 (numfacture,expedition) VALUES ('1212','0001-00-00 00:00:00');
...
@@ -50,3 +50,8 @@ INSERT INTO t1 (numfacture,expedition) VALUES ('1212','0001-00-00 00:00:00');
SELECT
*
FROM
t1
WHERE
expedition
=
'0001-00-00 00:00:00'
;
SELECT
*
FROM
t1
WHERE
expedition
=
'0001-00-00 00:00:00'
;
EXPLAIN
SELECT
*
FROM
t1
WHERE
expedition
=
'0001-00-00 00:00:00'
;
EXPLAIN
SELECT
*
FROM
t1
WHERE
expedition
=
'0001-00-00 00:00:00'
;
drop
table
t1
;
drop
table
t1
;
create
table
t1
(
a
datetime
not
null
,
b
datetime
not
null
);
insert
into
t1
values
(
now
(),
now
());
insert
into
t1
values
(
now
(),
now
());
select
*
from
t1
where
a
is
null
or
b
is
null
;
drop
table
t1
;
sql/sql_select.cc
View file @
28489be4
...
@@ -3009,6 +3009,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
...
@@ -3009,6 +3009,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
==
Item_func
::
COND_AND_FUNC
;
==
Item_func
::
COND_AND_FUNC
;
List_iterator
<
Item
>
li
(
*
((
Item_cond
*
)
cond
)
->
argument_list
());
List_iterator
<
Item
>
li
(
*
((
Item_cond
*
)
cond
)
->
argument_list
());
Item
::
cond_result
tmp_cond_value
;
Item
::
cond_result
tmp_cond_value
;
bool
should_fix_fields
=
0
;
*
cond_value
=
Item
::
COND_UNDEF
;
*
cond_value
=
Item
::
COND_UNDEF
;
Item
*
item
;
Item
*
item
;
...
@@ -3028,6 +3029,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
...
@@ -3028,6 +3029,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
delete
item
;
// This may be shared
delete
item
;
// This may be shared
#endif
#endif
VOID
(
li
.
replace
(
new_item
));
VOID
(
li
.
replace
(
new_item
));
should_fix_fields
=
1
;
}
}
if
(
*
cond_value
==
Item
::
COND_UNDEF
)
if
(
*
cond_value
==
Item
::
COND_UNDEF
)
*
cond_value
=
tmp_cond_value
;
*
cond_value
=
tmp_cond_value
;
...
@@ -3054,6 +3056,9 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
...
@@ -3054,6 +3056,9 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
break
;
/* purecov: deadcode */
break
;
/* purecov: deadcode */
}
}
}
}
if
(
should_fix_fields
)
cond
->
fix_fields
(
current_thd
,
0
);
if
(
!
((
Item_cond
*
)
cond
)
->
argument_list
()
->
elements
||
if
(
!
((
Item_cond
*
)
cond
)
->
argument_list
()
->
elements
||
*
cond_value
!=
Item
::
COND_OK
)
*
cond_value
!=
Item
::
COND_OK
)
return
(
COND
*
)
0
;
return
(
COND
*
)
0
;
...
...
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