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
160eb5b0
Commit
160eb5b0
authored
Mar 09, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ucs2 test moved from maria3.test. (MDEV-167)
parent
a8cbfd38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
mysql-test/suite/maria/r/maria-ucs2.result
mysql-test/suite/maria/r/maria-ucs2.result
+33
-0
mysql-test/suite/maria/t/maria-ucs2.test
mysql-test/suite/maria/t/maria-ucs2.test
+47
-0
No files found.
mysql-test/suite/maria/r/maria-ucs2.result
0 → 100644
View file @
160eb5b0
select * from INFORMATION_SCHEMA.ENGINES where ENGINE="ARIA";
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
Aria YES Crash-safe tables with MyISAM heritage NO NO NO
set global storage_engine=aria;
set session storage_engine=aria;
set global aria_page_checksum=0;
set global aria_log_file_size=4294967295;
drop table if exists t1;
SET SQL_WARNINGS=1;
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=0
DROP TABLE t1;
# End of 5.2 tests
mysql-test/suite/maria/t/maria-ucs2.test
0 → 100644
View file @
160eb5b0
--
source
include
/
have_maria
.
inc
--
source
include
/
have_ucs2
.
inc
select
*
from
INFORMATION_SCHEMA
.
ENGINES
where
ENGINE
=
"ARIA"
;
let
$default_engine
=
`select @@global.storage_engine`
;
let
$default_checksum
=
`select @@global.aria_page_checksum`
;
set
global
storage_engine
=
aria
;
set
session
storage_engine
=
aria
;
set
global
aria_page_checksum
=
0
;
let
$default_log_file_size
=
`select @@global.aria_log_file_size`
;
set
global
aria_log_file_size
=
4294967295
;
# Initialise
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
SET
SQL_WARNINGS
=
1
;
#
# 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
;
--
echo
# End of 5.2 tests
--
disable_result_log
--
disable_query_log
eval
set
global
storage_engine
=
$default_engine
,
aria_page_checksum
=
$default_checksum
,
aria_log_file_size
=
$default_log_file_size
;
--
enable_result_log
--
enable_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