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
cba50775
Commit
cba50775
authored
Nov 15, 2006
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
parents
53b97915
19b3bf29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/bigint.result
mysql-test/r/bigint.result
+11
-0
mysql-test/t/bigint.test
mysql-test/t/bigint.test
+9
-0
sql/item_func.cc
sql/item_func.cc
+4
-0
No files found.
mysql-test/r/bigint.result
View file @
cba50775
...
...
@@ -341,3 +341,14 @@ select * from t1 where bigint_col='17666000000000000000';
bigint_col
17666000000000000000
drop table t1;
bug 19955 -- mod is signed with bigint
select cast(10000002383263201056 as unsigned) mod 50 as result;
result
6
create table t1 (c1 bigint unsigned);
insert into t1 values (10000002383263201056);
select c1 mod 50 as result from t1;
result
6
drop table t1;
mysql-test/t/bigint.test
View file @
cba50775
...
...
@@ -278,4 +278,13 @@ select * from t1 where bigint_col=17666000000000000000;
select
*
from
t1
where
bigint_col
=
'17666000000000000000'
;
drop
table
t1
;
--
echo
--
echo
bug
19955
--
mod
is
signed
with
bigint
select
cast
(
10000002383263201056
as
unsigned
)
mod
50
as
result
;
create
table
t1
(
c1
bigint
unsigned
);
insert
into
t1
values
(
10000002383263201056
);
select
c1
mod
50
as
result
from
t1
;
drop
table
t1
;
sql/item_func.cc
View file @
cba50775
...
...
@@ -1346,6 +1346,10 @@ longlong Item_func_mod::int_op()
signal_divide_by_null
();
return
0
;
}
if
(
args
[
0
]
->
unsigned_flag
)
return
((
ulonglong
)
value
)
%
val2
;
return
value
%
val2
;
}
...
...
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