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
af7d3963
Commit
af7d3963
authored
Nov 12, 2007
by
kent@kent-amd64.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/kent/bk/bug30069/mysql-4.1-build
into mysql.com:/home/kent/bk/bug30069/mysql-5.0-build
parents
339b3217
3bb7cac8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/r/bigint.result
mysql-test/r/bigint.result
+6
-0
mysql-test/t/bigint.test
mysql-test/t/bigint.test
+9
-0
strings/ctype-simple.c
strings/ctype-simple.c
+2
-2
No files found.
mysql-test/r/bigint.result
View file @
af7d3963
...
@@ -170,6 +170,12 @@ t2.value64=t1.value64;
...
@@ -170,6 +170,12 @@ t2.value64=t1.value64;
value64 value32 value64 value32
value64 value32 value64 value32
9223372036854775807 2 9223372036854775807 4
9223372036854775807 2 9223372036854775807 4
drop table t1, t2;
drop table t1, t2;
create table t1 (sint64 bigint not null);
insert into t1 values (-9223372036854775808);
select * from t1;
sint64
-9223372036854775808
drop table t1;
create table t1 select 1 as 'a';
create table t1 select 1 as 'a';
show create table t1;
show create table t1;
Table Create Table
Table Create Table
...
...
mysql-test/t/bigint.test
View file @
af7d3963
...
@@ -113,6 +113,15 @@ t2.value64=t1.value64;
...
@@ -113,6 +113,15 @@ t2.value64=t1.value64;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
# Test for BUG#30069, can't handle bigint -9223372036854775808 on
# x86_64, with some GCC versions and optimizations.
create
table
t1
(
sint64
bigint
not
null
);
insert
into
t1
values
(
-
9223372036854775808
);
select
*
from
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
#
...
...
strings/ctype-simple.c
View file @
af7d3963
...
@@ -845,7 +845,7 @@ int my_long10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
...
@@ -845,7 +845,7 @@ int my_long10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
{
if
(
val
<
0
)
if
(
val
<
0
)
{
{
val
=
-
val
;
val
=
-
(
unsigned
long
int
)
val
;
*
dst
++=
'-'
;
*
dst
++=
'-'
;
len
--
;
len
--
;
sign
=
1
;
sign
=
1
;
...
@@ -881,7 +881,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
...
@@ -881,7 +881,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
{
if
(
val
<
0
)
if
(
val
<
0
)
{
{
val
=
-
val
;
val
=
-
(
ulonglong
)
val
;
*
dst
++=
'-'
;
*
dst
++=
'-'
;
len
--
;
len
--
;
sign
=
1
;
sign
=
1
;
...
...
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