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
d76a3ef1
Commit
d76a3ef1
authored
May 10, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/28005/my51-28005
parents
f646fb0b
199857c1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/bigint.result
mysql-test/r/bigint.result
+10
-0
mysql-test/r/partition.result
mysql-test/r/partition.result
+2
-0
mysql-test/t/bigint.test
mysql-test/t/bigint.test
+5
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+6
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
No files found.
mysql-test/r/bigint.result
View file @
d76a3ef1
...
@@ -352,3 +352,13 @@ select c1 mod 50 as result from t1;
...
@@ -352,3 +352,13 @@ select c1 mod 50 as result from t1;
result
result
6
6
drop table t1;
drop table t1;
select -9223372036854775808 bi;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def bi 8 20 20 N 32897 0 63
bi
-9223372036854775808
select -9223372036854775809 bi;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def bi 246 20 20 N 129 0 63
bi
-9223372036854775809
mysql-test/r/partition.result
View file @
d76a3ef1
...
@@ -1233,4 +1233,6 @@ select * from t1;
...
@@ -1233,4 +1233,6 @@ select * from t1;
c1 c2
c1 c2
aaa 2
aaa 2
drop table t1;
drop table t1;
create table t1 (s1 bigint) partition by list (s1) (partition p1 values in (-9223372036854775808));
drop table t1;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/bigint.test
View file @
d76a3ef1
...
@@ -288,3 +288,8 @@ insert into t1 values (10000002383263201056);
...
@@ -288,3 +288,8 @@ insert into t1 values (10000002383263201056);
select
c1
mod
50
as
result
from
t1
;
select
c1
mod
50
as
result
from
t1
;
drop
table
t1
;
drop
table
t1
;
# Bug #28005 Partitions: can't use -9223372036854775808
--
enable_metadata
select
-
9223372036854775808
bi
;
select
-
9223372036854775809
bi
;
--
disable_metadata
mysql-test/t/partition.test
View file @
d76a3ef1
...
@@ -1441,5 +1441,11 @@ insert into t1 values ('aaa','1') on duplicate key update c2 = c2 + 1;
...
@@ -1441,5 +1441,11 @@ insert into t1 values ('aaa','1') on duplicate key update c2 = c2 + 1;
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #28005 Partitions: can't use -9223372036854775808
#
create
table
t1
(
s1
bigint
)
partition
by
list
(
s1
)
(
partition
p1
values
in
(
-
9223372036854775808
));
drop
table
t1
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/item_func.cc
View file @
d76a3ef1
...
@@ -1501,7 +1501,7 @@ void Item_func_neg::fix_length_and_dec()
...
@@ -1501,7 +1501,7 @@ void Item_func_neg::fix_length_and_dec()
*/
*/
if
(
hybrid_type
==
INT_RESULT
&&
if
(
hybrid_type
==
INT_RESULT
&&
args
[
0
]
->
type
()
==
INT_ITEM
&&
args
[
0
]
->
type
()
==
INT_ITEM
&&
((
ulonglong
)
args
[
0
]
->
val_int
()
>
=
(
ulonglong
)
LONGLONG_MIN
))
((
ulonglong
)
args
[
0
]
->
val_int
()
>
(
ulonglong
)
LONGLONG_MIN
))
{
{
/*
/*
Ensure that result is converted to DECIMAL, as longlong can't hold
Ensure that result is converted to DECIMAL, as longlong can't hold
...
...
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