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
b3fd92a2
Commit
b3fd92a2
authored
Mar 01, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return original checksum value inside the test.
Move ucs2 test in separate file (MDEV-167).
parent
7c9a8780
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
47 deletions
+7
-47
mysql-test/suite/maria/r/maria3.result
mysql-test/suite/maria/r/maria3.result
+5
-26
mysql-test/suite/maria/t/maria3.test
mysql-test/suite/maria/t/maria3.test
+2
-21
No files found.
mysql-test/suite/maria/r/maria3.result
View file @
b3fd92a2
...
...
@@ -393,6 +393,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
set global aria_page_checksum=0;
drop table t1;
set global aria_log_file_size=4294967296;
Warnings:
...
...
@@ -509,7 +510,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
1
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
0
drop table t1;
create table t1 (n int not null, c char(1)) engine=aria transactional=1;
alter table t1 engine=myisam;
...
...
@@ -521,7 +522,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
1
TRANSACTIONAL=1
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
0
TRANSACTIONAL=1
drop table t1;
create table t1 (n int not null, c char(1)) engine=myisam transactional=1;
Warnings:
...
...
@@ -532,7 +533,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`n` int(11) NOT NULL,
`c` char(1) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
1
TRANSACTIONAL=1
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=
0
TRANSACTIONAL=1
drop table t1;
create table t1 (a int, key(a)) transactional=0;
insert into t1 values (0),(1),(2),(3),(4);
...
...
@@ -645,26 +646,4 @@ a b c d e f g h i j
1 A B C D 1 M H
2 Abcdefghi E F G 2 N H
drop table t1,t2;
CREATE TABLE t1 ( a VARCHAR(800),KEY(a) )
ENGINE=Aria DEFAULT CHARACTER SET latin1;
INSERT INTO t1 VALUES
(REPEAT('abc ',200)), (REPEAT('def ',200)),
(REPEAT('ghi ',200)), (REPEAT('jkl ',200));
INSERT INTO t1 SELECT * FROM t1;
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
ALTER TABLE t1 MODIFY a VARCHAR(800) CHARSET `ucs2`;
Warnings:
Warning 1071 Specified key was too long; max key length is 1000 bytes
Warning 1071 Specified key was too long; max key length is 1000 bytes
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
SHOW CREATE table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` varchar(800) CHARACTER SET ucs2 DEFAULT NULL,
KEY `a` (`a`(500))
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
DROP TABLE t1;
# End of 5.1 tests
mysql-test/suite/maria/t/maria3.test
View file @
b3fd92a2
...
...
@@ -305,6 +305,7 @@ drop table t1;
set
global
aria_page_checksum
=
1
;
create
table
t1
(
a
int
);
show
create
table
t1
;
set
global
aria_page_checksum
=
0
;
drop
table
t1
;
#
...
...
@@ -554,27 +555,7 @@ INSERT INTO t2 VALUES (1,'M','','H'),
SELECT
*
FROM
t1
,
t2
WHERE
a
=
g
ORDER
BY
b
;
drop
table
t1
,
t2
;
# End of 5.1 tests
#
# bug#905716: Assertion `page->size <= share->max_index_block_size'
#
CREATE
TABLE
t1
(
a
VARCHAR
(
800
),
KEY
(
a
)
)
ENGINE
=
Aria
DEFAULT
CHARACTER
SET
latin1
;
INSERT
INTO
t1
VALUES
(
REPEAT
(
'abc '
,
200
)),
(
REPEAT
(
'def '
,
200
)),
(
REPEAT
(
'ghi '
,
200
)),
(
REPEAT
(
'jkl '
,
200
));
INSERT
INTO
t1
SELECT
*
FROM
t1
;
# check table is not needed to reproduce the problem,
# but shows that by this time the table appears to be okay.
CHECK
TABLE
t1
;
ALTER
TABLE
t1
MODIFY
a
VARCHAR
(
800
)
CHARSET
`ucs2`
;
CHECK
TABLE
t1
;
SHOW
CREATE
table
t1
;
DROP
TABLE
t1
;
# End of 5.2 tests
--
echo
# End of 5.1 tests
--
disable_result_log
--
disable_query_log
...
...
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