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
1378aa0e
Commit
1378aa0e
authored
Jan 05, 2010
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge.
parents
1249c8d0
ce068186
Changes
56
Hide whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
163 additions
and
229 deletions
+163
-229
client/mysqltest.cc
client/mysqltest.cc
+5
-1
mysql-test/include/have_big5.inc
mysql-test/include/have_big5.inc
+2
-4
mysql-test/include/have_collation.inc
mysql-test/include/have_collation.inc
+3
-0
mysql-test/include/have_cp1250_ch.inc
mysql-test/include/have_cp1250_ch.inc
+2
-4
mysql-test/include/have_cp1251.inc
mysql-test/include/have_cp1251.inc
+2
-7
mysql-test/include/have_cp866.inc
mysql-test/include/have_cp866.inc
+2
-7
mysql-test/include/have_cp932.inc
mysql-test/include/have_cp932.inc
+2
-4
mysql-test/include/have_eucjpms.inc
mysql-test/include/have_eucjpms.inc
+2
-4
mysql-test/include/have_euckr.inc
mysql-test/include/have_euckr.inc
+2
-4
mysql-test/include/have_gb2312.inc
mysql-test/include/have_gb2312.inc
+2
-4
mysql-test/include/have_gbk.inc
mysql-test/include/have_gbk.inc
+2
-4
mysql-test/include/have_koi8r.inc
mysql-test/include/have_koi8r.inc
+2
-7
mysql-test/include/have_latin2_ch.inc
mysql-test/include/have_latin2_ch.inc
+2
-4
mysql-test/include/have_sjis.inc
mysql-test/include/have_sjis.inc
+2
-4
mysql-test/include/have_tis620.inc
mysql-test/include/have_tis620.inc
+2
-4
mysql-test/include/have_ucs2.inc
mysql-test/include/have_ucs2.inc
+2
-4
mysql-test/include/have_ujis.inc
mysql-test/include/have_ujis.inc
+2
-4
mysql-test/include/have_utf8.inc
mysql-test/include/have_utf8.inc
+2
-7
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
mysql-test/r/create-uca.result
mysql-test/r/create-uca.result
+31
-0
mysql-test/r/create.result
mysql-test/r/create.result
+0
-46
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+2
-0
mysql-test/r/have_big5.require
mysql-test/r/have_big5.require
+0
-2
mysql-test/r/have_cp1250_ch.require
mysql-test/r/have_cp1250_ch.require
+0
-2
mysql-test/r/have_cp1251.require
mysql-test/r/have_cp1251.require
+0
-2
mysql-test/r/have_cp866.require
mysql-test/r/have_cp866.require
+0
-2
mysql-test/r/have_cp932.require
mysql-test/r/have_cp932.require
+0
-2
mysql-test/r/have_eucjpms.require
mysql-test/r/have_eucjpms.require
+0
-2
mysql-test/r/have_euckr.require
mysql-test/r/have_euckr.require
+0
-2
mysql-test/r/have_gb2312.require
mysql-test/r/have_gb2312.require
+0
-2
mysql-test/r/have_gbk.require
mysql-test/r/have_gbk.require
+0
-2
mysql-test/r/have_koi8r.require
mysql-test/r/have_koi8r.require
+0
-2
mysql-test/r/have_latin2_ch.require
mysql-test/r/have_latin2_ch.require
+0
-2
mysql-test/r/have_sjis.require
mysql-test/r/have_sjis.require
+0
-2
mysql-test/r/have_tis620.require
mysql-test/r/have_tis620.require
+0
-2
mysql-test/r/have_ucs2.require
mysql-test/r/have_ucs2.require
+0
-2
mysql-test/r/have_ujis.require
mysql-test/r/have_ujis.require
+0
-2
mysql-test/r/have_utf8.require
mysql-test/r/have_utf8.require
+0
-2
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+0
-9
mysql-test/r/innodb_utf8.result
mysql-test/r/innodb_utf8.result
+10
-0
mysql-test/suite/rpl/t/rpl_ignore_table.test
mysql-test/suite/rpl/t/rpl_ignore_table.test
+2
-0
mysql-test/t/create-uca.test
mysql-test/t/create-uca.test
+26
-0
mysql-test/t/create.test
mysql-test/t/create.test
+0
-46
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+9
-0
mysql-test/t/ddl_i18n_koi8r.test
mysql-test/t/ddl_i18n_koi8r.test
+2
-0
mysql-test/t/ddl_i18n_utf8.test
mysql-test/t/ddl_i18n_utf8.test
+2
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+3
-0
mysql-test/t/fulltext2.test
mysql-test/t/fulltext2.test
+3
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+0
-12
mysql-test/t/innodb_utf8.test
mysql-test/t/innodb_utf8.test
+24
-0
mysql-test/t/query_cache_ps_no_prot.test
mysql-test/t/query_cache_ps_no_prot.test
+2
-1
mysql-test/t/query_cache_ps_ps_prot.test
mysql-test/t/query_cache_ps_ps_prot.test
+2
-1
mysys/my_uuid.c
mysys/my_uuid.c
+1
-1
scripts/mysqlbug.sh
scripts/mysqlbug.sh
+1
-1
sql/log.cc
sql/log.cc
+1
-1
storage/ndb/plug.in
storage/ndb/plug.in
+1
-1
No files found.
client/mysqltest.cc
View file @
1378aa0e
...
...
@@ -1267,6 +1267,7 @@ void abort_not_supported_test(const char *fmt, ...)
DBUG_ENTER
(
"abort_not_supported_test"
);
/* Print include filestack */
fflush
(
stdout
);
fprintf
(
stderr
,
"The test '%s' is not supported by this installation
\n
"
,
file_stack
->
file_name
);
fprintf
(
stderr
,
"Detected in file %s at line %d
\n
"
,
...
...
@@ -8098,7 +8099,10 @@ int main(int argc, char **argv)
abort_flag
=
1
;
break
;
case
Q_SKIP
:
abort_not_supported_test
(
"%s"
,
command
->
first_argument
);
/* Eval the query, thus replacing all environment variables */
dynstr_set
(
&
ds_res
,
0
);
do_eval
(
&
ds_res
,
command
->
first_argument
,
command
->
end
,
FALSE
);
abort_not_supported_test
(
"%s"
,
ds_res
.
str
);
break
;
case
Q_RESULT
:
...
...
mysql-test/include/have_big5.inc
View file @
1378aa0e
--
require
r
/
have_big5
.
require
disable_query_log
;
show
collation
like
'big5_chinese_ci'
;
enable_query_log
;
let
collation
=
big5_chinese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_collation.inc
0 → 100644
View file @
1378aa0e
if
(
!
`SELECT count(*) AS 'true' FROM information_schema.collations WHERE collation_name LIKE '$collation'`
)
{
skip
Test
needs
character
set
'$collation'
;
}
mysql-test/include/have_cp1250_ch.inc
View file @
1378aa0e
--
require
r
/
have_cp1250_ch
.
require
disable_query_log
;
show
collation
like
'cp1250_czech_cs'
;
enable_query_log
;
let
collation
=
cp1250_czech_cs
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_cp1251.inc
View file @
1378aa0e
--
require
r
/
have_cp1251
.
require
--
disable_query_log
SHOW
COLLATION
LIKE
'cp1251_general_ci'
;
--
enable_query_log
let
collation
=
cp1251_general_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_cp866.inc
View file @
1378aa0e
--
require
r
/
have_cp866
.
require
--
disable_query_log
SHOW
COLLATION
LIKE
'cp866_general_ci'
;
--
enable_query_log
let
collation
=
cp866_general_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_cp932.inc
View file @
1378aa0e
--
require
r
/
have_cp932
.
require
disable_query_log
;
show
collation
like
'cp932_japanese_ci'
;
enable_query_log
;
let
collation
=
cp932_japanese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_eucjpms.inc
View file @
1378aa0e
--
require
r
/
have_eucjpms
.
require
disable_query_log
;
show
collation
like
'eucjpms_japanese_ci'
;
enable_query_log
;
let
collation
=
eucjpms_japanese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_euckr.inc
View file @
1378aa0e
--
require
r
/
have_euckr
.
require
disable_query_log
;
show
collation
like
'euckr_korean_ci'
;
enable_query_log
;
let
collation
=
euckr_korean_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_gb2312.inc
View file @
1378aa0e
--
require
r
/
have_gb2312
.
require
disable_query_log
;
show
collation
like
'gb2312_chinese_ci'
;
enable_query_log
;
let
collation
=
gb2312_chinese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_gbk.inc
View file @
1378aa0e
--
require
r
/
have_gbk
.
require
disable_query_log
;
show
collation
like
'gbk_chinese_ci'
;
enable_query_log
;
let
collation
=
gbk_chinese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_koi8r.inc
View file @
1378aa0e
--
require
r
/
have_koi8r
.
require
--
disable_query_log
SHOW
COLLATION
LIKE
'koi8r_general_ci'
;
--
enable_query_log
let
collation
=
koi8r_general_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_latin2_ch.inc
View file @
1378aa0e
--
require
r
/
have_latin2_ch
.
require
disable_query_log
;
show
collation
like
'latin2_czech_cs'
;
enable_query_log
;
let
collation
=
latin2_czech_cs
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_sjis.inc
View file @
1378aa0e
--
require
r
/
have_sjis
.
require
disable_query_log
;
show
collation
like
'sjis_japanese_ci'
;
enable_query_log
;
let
collation
=
sjis_japanese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_tis620.inc
View file @
1378aa0e
--
require
r
/
have_tis620
.
require
disable_query_log
;
show
collation
like
'tis620_thai_ci'
;
enable_query_log
;
let
collation
=
tis620_thai_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_ucs2.inc
View file @
1378aa0e
--
require
r
/
have_ucs2
.
require
disable_query_log
;
show
collation
like
'ucs2_general_ci'
;
enable_query_log
;
let
collation
=
ucs2_general_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_ujis.inc
View file @
1378aa0e
--
require
r
/
have_ujis
.
require
disable_query_log
;
show
collation
like
'ujis_japanese_ci'
;
enable_query_log
;
let
collation
=
ujis_japanese_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/include/have_utf8.inc
View file @
1378aa0e
--
require
r
/
have_utf8
.
require
--
disable_query_log
SHOW
COLLATION
LIKE
'utf8_general_ci'
;
--
enable_query_log
let
collation
=
utf8_general_ci
;
--
source
include
/
have_collation
.
inc
mysql-test/mysql-test-run.pl
View file @
1378aa0e
...
...
@@ -126,7 +126,7 @@ my $path_config_file; # The generated config file, var/my.cnf
# executables will be used by the test suite.
our
$opt_vs_config
=
$ENV
{'
MTR_VS_CONFIG
'};
my
$DEFAULT_SUITES
=
"
main,binlog,federated,rpl,
innodb,
maria,parts
";
my
$DEFAULT_SUITES
=
"
main,binlog,federated,rpl,maria,parts
";
my
$opt_suites
;
our
$opt_verbose
=
0
;
# Verbose output, enable with --verbose
...
...
mysql-test/r/create-uca.result
0 → 100644
View file @
1378aa0e
drop table if exists t1,t2;
CREATE TABLE t1(
c1 INT DEFAULT 12 COMMENT 'column1',
c2 INT NULL COMMENT 'column2',
c3 INT NOT NULL COMMENT 'column3',
c4 VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b',
c6 VARCHAR(255))
COLLATE latin1_bin;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT '12' COMMENT 'column1',
`c2` int(11) DEFAULT NULL COMMENT 'column2',
`c3` int(11) NOT NULL COMMENT 'column3',
`c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
`c6` varchar(255) COLLATE latin1_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
CREATE TABLE t2 AS SELECT * FROM t1;
SHOW CREATE TABLE t2;
Table Create Table
t2 CREATE TABLE `t2` (
`c1` int(11) DEFAULT '12' COMMENT 'column1',
`c2` int(11) DEFAULT NULL COMMENT 'column2',
`c3` int(11) NOT NULL COMMENT 'column3',
`c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
`c6` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1,t2;
mysql-test/r/create.result
View file @
1378aa0e
...
...
@@ -1792,52 +1792,6 @@ t1 CREATE TABLE `t1` (
) ENGINE=MEMORY DEFAULT CHARSET=utf8
drop table t1;
# --
# -- Bug#21380: DEFAULT definition not always transfered by CREATE
# -- TABLE/SELECT to the new table.
# --
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
CREATE TABLE t1(
c1 INT DEFAULT 12 COMMENT 'column1',
c2 INT NULL COMMENT 'column2',
c3 INT NOT NULL COMMENT 'column3',
c4 VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
c5 VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT 'b',
c6 VARCHAR(255))
COLLATE latin1_bin;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT '12' COMMENT 'column1',
`c2` int(11) DEFAULT NULL COMMENT 'column2',
`c3` int(11) NOT NULL COMMENT 'column3',
`c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
`c6` varchar(255) COLLATE latin1_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin
CREATE TABLE t2 AS SELECT * FROM t1;
SHOW CREATE TABLE t2;
Table Create Table
t2 CREATE TABLE `t2` (
`c1` int(11) DEFAULT '12' COMMENT 'column1',
`c2` int(11) DEFAULT NULL COMMENT 'column2',
`c3` int(11) NOT NULL COMMENT 'column3',
`c4` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT 'a',
`c5` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'b',
`c6` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t2;
DROP TABLE t1;
# -- End of test case for Bug#21380.
# --
# -- Bug#18834: ALTER TABLE ADD INDEX on table with two timestamp fields
# --
...
...
mysql-test/r/ctype_utf8.result
View file @
1378aa0e
drop table if exists t1,t2,t3,t4;
drop database if exists mysqltest;
drop table if exists t1,t2;
set names utf8;
select left(_utf8 0xD0B0D0B1D0B2,1);
...
...
mysql-test/r/have_big5.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
big5_chinese_ci big5 1 Yes Yes 1
mysql-test/r/have_cp1250_ch.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
cp1250_czech_cs cp1250 34 Yes 2
mysql-test/r/have_cp1251.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
cp1251_general_ci cp1251 51 Yes 0
mysql-test/r/have_cp866.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
cp866_general_ci cp866 36 Yes 0
mysql-test/r/have_cp932.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
cp932_japanese_ci cp932 95 Yes Yes 1
mysql-test/r/have_eucjpms.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
eucjpms_japanese_ci eucjpms 97 Yes Yes 1
mysql-test/r/have_euckr.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
euckr_korean_ci euckr 19 Yes Yes 1
mysql-test/r/have_gb2312.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
gb2312_chinese_ci gb2312 24 Yes Yes 1
mysql-test/r/have_gbk.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
gbk_chinese_ci gbk 28 Yes Yes 1
mysql-test/r/have_koi8r.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
koi8r_general_ci koi8r 7 Yes 0
mysql-test/r/have_latin2_ch.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
latin2_czech_cs latin2 2 Yes 4
mysql-test/r/have_sjis.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
sjis_japanese_ci sjis 13 Yes Yes 1
mysql-test/r/have_tis620.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
tis620_thai_ci tis620 18 Yes Yes 4
mysql-test/r/have_ucs2.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
ucs2_general_ci ucs2 35 Yes Yes 1
mysql-test/r/have_ujis.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
ujis_japanese_ci ujis 12 Yes Yes 1
mysql-test/r/have_utf8.require
deleted
100644 → 0
View file @
1249c8d0
Collation Charset Id Default Compiled Sortlen
utf8_general_ci utf8 33 Yes Yes 1
mysql-test/r/innodb.result
View file @
1378aa0e
...
...
@@ -3160,15 +3160,6 @@ ALTER TABLE t2 MODIFY a INT NOT NULL;
ERROR HY000: Error on rename of '#sql-temporary' to './test/t2' (errno: 150)
DELETE FROM t1;
DROP TABLE t2,t1;
CREATE TABLE t1 (a VARCHAR(5) COLLATE utf8_unicode_ci PRIMARY KEY)
ENGINE=InnoDB;
INSERT INTO t1 VALUES (0xEFBCA4EFBCA4EFBCA4);
DELETE FROM t1;
INSERT INTO t1 VALUES ('DDD');
SELECT * FROM t1;
a
DDD
DROP TABLE t1;
CREATE TABLE t1 (id int PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB
AUTO_INCREMENT=42;
INSERT INTO t1 VALUES (0),(347),(0);
...
...
mysql-test/r/innodb_utf8.result
0 → 100644
View file @
1378aa0e
drop table if exists t1;
CREATE TABLE t1 (a VARCHAR(5) COLLATE utf8_unicode_ci PRIMARY KEY)
ENGINE=InnoDB;
INSERT INTO t1 VALUES (0xEFBCA4EFBCA4EFBCA4);
DELETE FROM t1;
INSERT INTO t1 VALUES ('DDD');
SELECT * FROM t1;
a
DDD
DROP TABLE t1;
mysql-test/suite/rpl/t/rpl_ignore_table.test
View file @
1378aa0e
source
include
/
master
-
slave
.
inc
;
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
#
# BUG#16487
...
...
mysql-test/t/create-uca.test
0 → 100644
View file @
1378aa0e
# Prerequisites
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
# Initial cleanup
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
#
# Bug#21380: DEFAULT definition not always transfered by CREATE
# TABLE/SELECT to the new table.
#
CREATE
TABLE
t1
(
c1
INT
DEFAULT
12
COMMENT
'column1'
,
c2
INT
NULL
COMMENT
'column2'
,
c3
INT
NOT
NULL
COMMENT
'column3'
,
c4
VARCHAR
(
255
)
CHARACTER
SET
utf8
NOT
NULL
DEFAULT
'a'
,
c5
VARCHAR
(
255
)
COLLATE
utf8_unicode_ci
NULL
DEFAULT
'b'
,
c6
VARCHAR
(
255
))
COLLATE
latin1_bin
;
SHOW
CREATE
TABLE
t1
;
CREATE
TABLE
t2
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
TABLE
t2
;
DROP
TABLE
t1
,
t2
;
mysql-test/t/create.test
View file @
1378aa0e
...
...
@@ -1398,52 +1398,6 @@ drop table t1;
###########################################################################
--
echo
--
echo
# --
--
echo
# -- Bug#21380: DEFAULT definition not always transfered by CREATE
--
echo
# -- TABLE/SELECT to the new table.
--
echo
# --
--
echo
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
DROP
TABLE
IF
EXISTS
t2
;
--
enable_warnings
--
echo
CREATE
TABLE
t1
(
c1
INT
DEFAULT
12
COMMENT
'column1'
,
c2
INT
NULL
COMMENT
'column2'
,
c3
INT
NOT
NULL
COMMENT
'column3'
,
c4
VARCHAR
(
255
)
CHARACTER
SET
utf8
NOT
NULL
DEFAULT
'a'
,
c5
VARCHAR
(
255
)
COLLATE
utf8_unicode_ci
NULL
DEFAULT
'b'
,
c6
VARCHAR
(
255
))
COLLATE
latin1_bin
;
--
echo
SHOW
CREATE
TABLE
t1
;
--
echo
CREATE
TABLE
t2
AS
SELECT
*
FROM
t1
;
--
echo
SHOW
CREATE
TABLE
t2
;
--
echo
DROP
TABLE
t2
;
DROP
TABLE
t1
;
--
echo
--
echo
# -- End of test case for Bug#21380.
###########################################################################
--
echo
--
echo
# --
--
echo
# -- Bug#18834: ALTER TABLE ADD INDEX on table with two timestamp fields
...
...
mysql-test/t/ctype_utf8.test
View file @
1378aa0e
...
...
@@ -2,6 +2,15 @@
# Tests with the utf8 character set
#
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
,
t4
;
drop
database
if
exists
mysqltest
;
--
enable_warnings
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
...
...
mysql-test/t/ddl_i18n_koi8r.test
View file @
1378aa0e
...
...
@@ -36,6 +36,8 @@
--
source
include
/
have_cp866
.
inc
--
source
include
/
have_cp1251
.
inc
--
source
include
/
have_koi8r
.
inc
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
###########################################################################
...
...
mysql-test/t/ddl_i18n_utf8.test
View file @
1378aa0e
...
...
@@ -36,6 +36,8 @@
--
source
include
/
have_cp866
.
inc
--
source
include
/
have_cp1251
.
inc
--
source
include
/
have_koi8r
.
inc
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
###########################################################################
...
...
mysql-test/t/fulltext.test
View file @
1378aa0e
...
...
@@ -2,6 +2,9 @@
# Test of fulltext index
#
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
;
--
enable_warnings
...
...
mysql-test/t/fulltext2.test
View file @
1378aa0e
...
...
@@ -2,6 +2,9 @@
# test of new fulltext search features
#
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
#
# two-level tree
#
...
...
mysql-test/t/innodb.test
View file @
1378aa0e
...
...
@@ -2352,18 +2352,6 @@ ALTER TABLE t2 MODIFY a INT NOT NULL;
DELETE
FROM
t1
;
DROP
TABLE
t2
,
t1
;
#
# Bug #26835: table corruption after delete+insert
#
CREATE
TABLE
t1
(
a
VARCHAR
(
5
)
COLLATE
utf8_unicode_ci
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
0xEFBCA4EFBCA4EFBCA4
);
DELETE
FROM
t1
;
INSERT
INTO
t1
VALUES
(
'DDD'
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
#
# Bug #23313 (AUTO_INCREMENT=# not reported back for InnoDB tables)
# Bug #21404 (AUTO_INCREMENT value reset when Adding FKEY (or ALTER?))
...
...
mysql-test/t/innodb_utf8.test
0 → 100644
View file @
1378aa0e
#
# Tests for innodb that requires not default character sets
#
--
source
include
/
have_innodb
.
inc
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
# Setup
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
#
# Bug #26835: table corruption after delete+insert
#
CREATE
TABLE
t1
(
a
VARCHAR
(
5
)
COLLATE
utf8_unicode_ci
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
0xEFBCA4EFBCA4EFBCA4
);
DELETE
FROM
t1
;
INSERT
INTO
t1
VALUES
(
'DDD'
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
mysql-test/t/query_cache_ps_no_prot.test
View file @
1378aa0e
...
...
@@ -11,8 +11,9 @@
# We cannot run on embedded server because we use multiple sessions.
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_query_cache
.
inc
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
# The file with expected results fits only to a run without
# ps-protocol/sp-protocol/cursor-protocol/view-protocol.
...
...
mysql-test/t/query_cache_ps_ps_prot.test
View file @
1378aa0e
...
...
@@ -11,8 +11,9 @@
# We cannot run on embedded server because we use multiple sessions.
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_query_cache
.
inc
let
collation
=
utf8_unicode_ci
;
--
source
include
/
have_collation
.
inc
# The file with expected results fits only to a run with "--ps-protocol".
if
(
`SELECT $SP_PROTOCOL + $CURSOR_PROTOCOL + $VIEW_PROTOCOL > 0
...
...
mysys/my_uuid.c
View file @
1378aa0e
...
...
@@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong seed2)
*/
/* purecov: begin inspected */
my_rnd_init
(
&
uuid_rand
,
(
ulong
)
(
seed2
+
now
/
2
),
(
ulong
)
(
now
+
rand
()));
for
(
i
=
0
;
i
<
sizeof
(
mac
)
;
i
++
)
for
(
i
=
0
;
i
<
array_elements
(
uuid_suffix
)
-
2
;
i
++
)
mac
[
i
]
=
(
uchar
)(
my_rnd
(
&
uuid_rand
)
*
255
);
/* purecov: end */
}
...
...
scripts/mysqlbug.sh
View file @
1378aa0e
...
...
@@ -21,7 +21,7 @@ echo "Finding system information for a MySQL bug report"
VERSION
=
"@VERSION@@MYSQL_SERVER_SUFFIX@"
COMPILATION_COMMENT
=
"@COMPILATION_COMMENT@"
BUGmysql
=
"m
ysql@lists.mysql.com
"
BUGmysql
=
"m
aria-developers@lists.launchpad.net
"
# This is set by configure
COMP_CALL_INFO
=
"CC='@SAVE_CC@' CFLAGS='@SAVE_CFLAGS@' CXX='@SAVE_CXX@' CXXFLAGS='@SAVE_CXXFLAGS@' LDFLAGS='@SAVE_LDFLAGS@' ASFLAGS='@SAVE_ASFLAGS@'"
COMP_RUN_INFO
=
"CC='@CC@' CFLAGS='@CFLAGS@' CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' LDFLAGS='@LDFLAGS@' ASFLAGS='@ASFLAGS@'"
...
...
sql/log.cc
View file @
1378aa0e
...
...
@@ -5154,8 +5154,8 @@ int TC_LOG_MMAP::open(const char *opt_name)
pthread_mutex_init
(
&
pg
->
lock
,
MY_MUTEX_INIT_FAST
);
pthread_cond_init
(
&
pg
->
cond
,
0
);
pg
->
start
=
(
my_xid
*
)(
data
+
i
*
tc_log_page_size
);
pg
->
end
=
(
my_xid
*
)(
pg
->
start
+
tc_log_page_size
);
pg
->
size
=
pg
->
free
=
tc_log_page_size
/
sizeof
(
my_xid
);
pg
->
end
=
pg
->
start
+
pg
->
size
;
}
pages
[
0
].
size
=
pages
[
0
].
free
=
(
tc_log_page_size
-
TC_LOG_HEADER_SIZE
)
/
sizeof
(
my_xid
);
...
...
storage/ndb/plug.in
View file @
1378aa0e
MYSQL_STORAGE_ENGINE(ndbcluster, ndbcluster, [Cluster Storage Engine],
[High Availability Clustered tables],
[max]
)
[High Availability Clustered tables],)
MYSQL_PLUGIN_DIRECTORY(ndbcluster,[storage/ndb])
MYSQL_PLUGIN_STATIC(ndbcluster, [[\$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)]])
MYSQL_PLUGIN_ACTIONS(ndbcluster,[MYSQL_SETUP_NDBCLUSTER])
...
...
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