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
97486599
Commit
97486599
authored
May 07, 2018
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtr: extend func_math (CRC32)
parent
c28be510
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/main/func_math.result
mysql-test/main/func_math.result
+3
-3
mysql-test/main/func_math.test
mysql-test/main/func_math.test
+1
-1
No files found.
mysql-test/main/func_math.result
View file @
97486599
...
...
@@ -835,9 +835,9 @@ select 0=0, 0=-0, 0.0= -0.0, 0.0 = -(0.0), 0.0E1=-0.0E1, 0.0E1=-(0.0E1);
#
# CRC32 tests
#
select CRC32(NULL), CRC32(''), CRC32('MySQL'), CRC32('mysql'), CRC32('01234567'), CRC32('012345678'), CRC32(REPEAT('0123456789', 200));
CRC32(NULL) CRC32('') CRC32('MySQL') CRC32('mysql') CRC32('01234567') CRC32('012345678') CRC32(REPEAT('0123456789', 200))
NULL 0 3259397556 2501908538 763378421 939184570 1428305034
select CRC32(NULL), CRC32(''), CRC32('MySQL'), CRC32('mysql'), CRC32('01234567'), CRC32('012345678'), CRC32(REPEAT('
ABCDEfghij', 20)), CRC32(REPEAT('
0123456789', 200));
CRC32(NULL) CRC32('') CRC32('MySQL') CRC32('mysql') CRC32('01234567') CRC32('012345678') CRC32(REPEAT('
ABCDEfghij', 20)) CRC32(REPEAT('
0123456789', 200))
NULL 0 3259397556 2501908538 763378421 939184570
3823776386
1428305034
explain extended select (3-2)+1, (3/2)*1, 3-(2+1), 3/(2*1);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
...
...
mysql-test/main/func_math.test
View file @
97486599
...
...
@@ -607,7 +607,7 @@ select 0=0, 0=-0, 0.0= -0.0, 0.0 = -(0.0), 0.0E1=-0.0E1, 0.0E1=-(0.0E1);
--
echo
# CRC32 tests
--
echo
#
select
CRC32
(
NULL
),
CRC32
(
''
),
CRC32
(
'MySQL'
),
CRC32
(
'mysql'
),
CRC32
(
'01234567'
),
CRC32
(
'012345678'
),
CRC32
(
REPEAT
(
'0123456789'
,
200
));
select
CRC32
(
NULL
),
CRC32
(
''
),
CRC32
(
'MySQL'
),
CRC32
(
'mysql'
),
CRC32
(
'01234567'
),
CRC32
(
'012345678'
),
CRC32
(
REPEAT
(
'
ABCDEfghij'
,
20
)),
CRC32
(
REPEAT
(
'
0123456789'
,
200
));
#
# MDEV-13673 Bad result in view
...
...
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