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
7a471998
Commit
7a471998
authored
Nov 18, 2007
by
gshchepa/uchum@gleb.loc
Browse files
Options
Browse Files
Download
Plain Diff
Merge gleb.loc:/work/bk/PA/5.0-opt-32335
into gleb.loc:/work/bk/5.1-opt
parents
e62c733b
f93b5a9c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
mysql-test/r/select.result
mysql-test/r/select.result
+6
-0
mysql-test/t/select.test
mysql-test/t/select.test
+11
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-1
No files found.
mysql-test/r/select.result
View file @
7a471998
...
...
@@ -4307,6 +4307,12 @@ c3
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 BIGINT NOT NULL);
INSERT INTO t1 (c1) VALUES (1);
SELECT * FROM t1 WHERE c1 > NULL + 1;
c1
DROP TABLE t1;
End of 5.0 tests
create table t1(a INT, KEY (a));
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
...
...
mysql-test/t/select.test
View file @
7a471998
...
...
@@ -3650,6 +3650,17 @@ DROP TABLE t2;
###########################################################################
#
# Bug #32335: Error on BIGINT > NULL + 1
#
CREATE
TABLE
t1
(
c1
BIGINT
NOT
NULL
);
INSERT
INTO
t1
(
c1
)
VALUES
(
1
);
SELECT
*
FROM
t1
WHERE
c1
>
NULL
+
1
;
DROP
TABLE
t1
;
--
echo
--
echo
End
of
5.0
tests
#
...
...
sql/item_cmpfunc.cc
View file @
7a471998
...
...
@@ -398,7 +398,7 @@ static bool convert_constant_item(THD *thd, Field *field, Item **item)
thd
->
variables
.
sql_mode
=
(
orig_sql_mode
&
~
MODE_NO_ZERO_DATE
)
|
MODE_INVALID_DATES
;
thd
->
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
if
(
!
(
*
item
)
->
save_in_field
(
field
,
1
)
&&
!
((
*
item
)
->
null_value
))
if
(
!
(
*
item
)
->
is_null
()
&&
!
(
*
item
)
->
save_in_field
(
field
,
1
))
{
Item
*
tmp
=
new
Item_int_with_ref
(
field
->
val_int
(),
*
item
,
test
(
field
->
flags
&
UNSIGNED_FLAG
));
...
...
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