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
9200fe3b
Commit
9200fe3b
authored
Feb 28, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make func_misc portable
on different systems sprintf("%.3", 1.555499999999999) behaves differently
parent
65077a8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+3
-3
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+1
-1
No files found.
mysql-test/r/func_misc.result
View file @
9200fe3b
select format(1.5555,0),format(123.5555,1),format(1234.5555,2),format(12345.5555,3),format(123456.5555,4),format(1234567.5555,5),format("12345.2399",2);
select format(1.5555,0),format(123.5555,1),format(1234.5555,2),format(12345.5555
5
,3),format(123456.5555,4),format(1234567.5555,5),format("12345.2399",2);
format(1.5555,0) format(123.5555,1) format(1234.5555,2) format(12345.5555,3) format(123456.5555,4) format(1234567.5555,5) format("12345.2399",2)
format(1.5555,0) format(123.5555,1) format(1234.5555,2) format(12345.5555
5
,3) format(123456.5555,4) format(1234567.5555,5) format("12345.2399",2)
2 123.6 1,234.56 12,345.55
5
123,456.5555 1,234,567.55550 12,345.24
2 123.6 1,234.56 12,345.55
6
123,456.5555 1,234,567.55550 12,345.24
select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"));
select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"));
inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"))
inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"))
NULL
NULL
...
...
mysql-test/t/func_misc.test
View file @
9200fe3b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# Testing of misc functions
# Testing of misc functions
#
#
select
format
(
1.5555
,
0
),
format
(
123.5555
,
1
),
format
(
1234.5555
,
2
),
format
(
12345.5555
,
3
),
format
(
123456.5555
,
4
),
format
(
1234567.5555
,
5
),
format
(
"12345.2399"
,
2
);
select
format
(
1.5555
,
0
),
format
(
123.5555
,
1
),
format
(
1234.5555
,
2
),
format
(
12345.5555
5
,
3
),
format
(
123456.5555
,
4
),
format
(
1234567.5555
,
5
),
format
(
"12345.2399"
,
2
);
select
inet_ntoa
(
inet_aton
(
"255.255.255.255.255.255.255.255"
));
select
inet_ntoa
(
inet_aton
(
"255.255.255.255.255.255.255.255"
));
select
inet_aton
(
"255.255.255.255.255"
),
inet_aton
(
"255.255.1.255"
),
inet_aton
(
"0.1.255"
);
select
inet_aton
(
"255.255.255.255.255"
),
inet_aton
(
"255.255.1.255"
),
inet_aton
(
"0.1.255"
);
...
...
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