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
0aa87100
Commit
0aa87100
authored
Oct 23, 2007
by
kaa@polly.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.(none):/home/kaa/src/maint/bug30453/my50-bug28878
into polly.(none):/home/kaa/src/maint/mysql-5.0-maint
parents
c54e1855
e0691da0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
5 deletions
+38
-5
mysql-test/r/insert.result
mysql-test/r/insert.result
+14
-0
mysql-test/t/insert.test
mysql-test/t/insert.test
+15
-0
strings/ctype-simple.c
strings/ctype-simple.c
+9
-5
No files found.
mysql-test/r/insert.result
View file @
0aa87100
...
@@ -461,4 +461,18 @@ i
...
@@ -461,4 +461,18 @@ i
2
2
2
2
DROP TABLE t1, t2;
DROP TABLE t1, t2;
CREATE TABLE t1 (c1 INT NOT NULL);
INSERT INTO t1 VALUES(4188.32999999999992724042385816574096679687500),
('4188.32999999999992724042385816574096679687500'), (4188);
SELECT * FROM t1;
c1
4188
4188
4188
CREATE TABLE t2 (c1 BIGINT);
INSERT INTO t2 VALUES('15449237462.0000000000');
SELECT * FROM t2;
c1
15449237462
DROP TABLE t1, t2;
End of 5.0 tests.
End of 5.0 tests.
mysql-test/t/insert.test
View file @
0aa87100
...
@@ -353,5 +353,20 @@ SELECT * FROM t2;
...
@@ -353,5 +353,20 @@ SELECT * FROM t2;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
# Bug #30453: String not cast to int correctly
#
CREATE
TABLE
t1
(
c1
INT
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
4188.32999999999992724042385816574096679687500
),
(
'4188.32999999999992724042385816574096679687500'
),
(
4188
);
SELECT
*
FROM
t1
;
CREATE
TABLE
t2
(
c1
BIGINT
);
INSERT
INTO
t2
VALUES
(
'15449237462.0000000000'
);
SELECT
*
FROM
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.0
tests
.
--
echo
End
of
5.0
tests
.
strings/ctype-simple.c
View file @
0aa87100
...
@@ -1538,16 +1538,20 @@ my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
...
@@ -1538,16 +1538,20 @@ my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
}
}
else
else
addon
=
(
*
str
>=
'5'
);
addon
=
(
*
str
>=
'5'
);
for
(
;
str
<
end
&&
(
ch
=
(
unsigned
char
)
(
*
str
-
'0'
))
<
10
;
str
++
)
{
if
(
!
dot
)
if
(
!
dot
)
shift
++
;
{
}
for
(
;
str
<
end
&&
(
ch
=
(
unsigned
char
)
(
*
str
-
'0'
))
<
10
;
shift
++
,
str
++
);
if
(
str
<
end
&&
*
str
==
'.'
&&
!
dot
)
if
(
str
<
end
&&
*
str
==
'.'
)
{
{
str
++
;
str
++
;
for
(
;
str
<
end
&&
(
ch
=
(
unsigned
char
)
(
*
str
-
'0'
))
<
10
;
str
++
);
for
(
;
str
<
end
&&
(
ch
=
(
unsigned
char
)
(
*
str
-
'0'
))
<
10
;
str
++
);
}
}
}
else
{
shift
=
dot
-
str
;
for
(
;
str
<
end
&&
(
ch
=
(
unsigned
char
)
(
*
str
-
'0'
))
<
10
;
str
++
);
}
goto
exp
;
goto
exp
;
}
}
...
...
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