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
5e618219
Commit
5e618219
authored
Jun 29, 2005
by
ramil@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)
parent
230fe0d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
mysql-test/r/type_newdecimal.result
mysql-test/r/type_newdecimal.result
+6
-0
mysql-test/t/type_newdecimal.test
mysql-test/t/type_newdecimal.test
+9
-0
sql/item.cc
sql/item.cc
+1
-1
No files found.
mysql-test/r/type_newdecimal.result
View file @
5e618219
...
...
@@ -928,3 +928,9 @@ select * from t1 where a = -0.00;
a
0.00
drop table t1;
create table t1 (col1 bigint default -9223372036854775808);
insert into t1 values (default);
select * from t1;
col1
-9223372036854775808
drop table t1;
mysql-test/t/type_newdecimal.test
View file @
5e618219
...
...
@@ -964,3 +964,12 @@ insert into t1 values (0.00);
select
*
from
t1
where
a
>
-
0.00
;
select
*
from
t1
where
a
=
-
0.00
;
drop
table
t1
;
#
# Bug #11215: a problem with LONGLONG_MIN
#
create
table
t1
(
col1
bigint
default
-
9223372036854775808
);
insert
into
t1
values
(
default
);
select
*
from
t1
;
drop
table
t1
;
sql/item.cc
View file @
5e618219
...
...
@@ -3573,7 +3573,7 @@ Item *Item_int_with_ref::new_item()
Item_num
*
Item_uint
::
neg
()
{
Item_decimal
*
item
=
new
Item_decimal
(
value
,
0
);
Item_decimal
*
item
=
new
Item_decimal
(
value
,
1
);
return
item
->
neg
();
}
...
...
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