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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e5035f90
Commit
e5035f90
authored
Nov 16, 2006
by
andrey@example.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge example.com:/work/bug24219/my41
into example.com:/work/bug24219/my50
parents
2b3a69eb
de904f54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
11 deletions
+40
-11
mysql-test/r/alter_table.result
mysql-test/r/alter_table.result
+22
-11
mysql-test/t/alter_table.test
mysql-test/t/alter_table.test
+18
-0
No files found.
mysql-test/r/alter_table.result
View file @
e5035f90
...
...
@@ -428,42 +428,42 @@ t1 MyISAM 10 Fixed 1 37 X X X X X X X X latin1_swedish_ci NULL
drop table t1;
set names koi8r;
create table t1 (a char(10) character set koi8r);
insert into t1 values ('');
insert into t1 values ('
ÔÅÓÔ
');
select a,hex(a) from t1;
a hex(a)
D4C5D3D4
ÔÅÓÔ
D4C5D3D4
alter table t1 change a a char(10) character set cp1251;
select a,hex(a) from t1;
a hex(a)
F2E5F1F2
ÔÅÓÔ
F2E5F1F2
alter table t1 change a a binary(4);
select a,hex(a) from t1;
a hex(a)
F2E5F1F2
òåñò
F2E5F1F2
alter table t1 change a a char(10) character set cp1251;
select a,hex(a) from t1;
a hex(a)
F2E5F1F2
ÔÅÓÔ
F2E5F1F2
alter table t1 change a a char(10) character set koi8r;
select a,hex(a) from t1;
a hex(a)
D4C5D3D4
ÔÅÓÔ
D4C5D3D4
alter table t1 change a a varchar(10) character set cp1251;
select a,hex(a) from t1;
a hex(a)
F2E5F1F2
ÔÅÓÔ
F2E5F1F2
alter table t1 change a a char(10) character set koi8r;
select a,hex(a) from t1;
a hex(a)
D4C5D3D4
ÔÅÓÔ
D4C5D3D4
alter table t1 change a a text character set cp1251;
select a,hex(a) from t1;
a hex(a)
F2E5F1F2
ÔÅÓÔ
F2E5F1F2
alter table t1 change a a char(10) character set koi8r;
select a,hex(a) from t1;
a hex(a)
D4C5D3D4
ÔÅÓÔ
D4C5D3D4
delete from t1;
show create table t1;
Table Create Table
...
...
@@ -528,7 +528,7 @@ ALTER TABLE T12207 DISCARD TABLESPACE;
ERROR HY000: Table storage engine for 'T12207' doesn't have this option
DROP TABLE T12207;
create table t1 (a text) character set koi8r;
insert into t1 values (_koi8r'');
insert into t1 values (_koi8r'
ÔÅÓÔ
');
select hex(a) from t1;
hex(a)
D4C5D3D4
...
...
@@ -566,3 +566,14 @@ create table t1 (t varchar(255) default null, key t (t(80)))
engine=myisam default charset=latin1;
alter table t1 change t t text;
drop table t1;
DROP TABLE IF EXISTS bug24219;
DROP TABLE IF EXISTS bug24219_2;
CREATE TABLE bug24219 (a INT, INDEX(a));
SHOW INDEX FROM bug24219;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
bug24219 1 a 1 a A NULL NULL NULL YES BTREE
ALTER TABLE bug24219 RENAME TO bug24219_2, DISABLE KEYS;
SHOW INDEX FROM bug24219_2;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
bug24219_2 1 a 1 a A NULL NULL NULL YES BTREE disabled
DROP TABLE bug24219_2;
mysql-test/t/alter_table.test
View file @
e5035f90
...
...
@@ -402,6 +402,24 @@ alter table test.t1 rename test.t1;
use
test
;
drop
table
t1
;
#
# Bug#24219 - ALTER TABLE ... RENAME TO ... , DISABLE KEYS leads to crash
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
bug24219
;
DROP
TABLE
IF
EXISTS
bug24219_2
;
--
enable_warnings
CREATE
TABLE
bug24219
(
a
INT
,
INDEX
(
a
));
SHOW
INDEX
FROM
bug24219
;
ALTER
TABLE
bug24219
RENAME
TO
bug24219_2
,
DISABLE
KEYS
;
SHOW
INDEX
FROM
bug24219_2
;
DROP
TABLE
bug24219_2
;
# End of 4.1 tests
#
...
...
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