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
1bfe7668
Commit
1bfe7668
authored
Aug 17, 2006
by
rburnett@bk-internal.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/data0/bk/mysql-5.1
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
parents
92aa3bae
dd1d46c2
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
138 additions
and
11 deletions
+138
-11
mysql-test/lib/mtr_misc.pl
mysql-test/lib/mtr_misc.pl
+8
-1
mysql-test/r/ctype_cp1250_ch.result
mysql-test/r/ctype_cp1250_ch.result
+8
-0
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+16
-0
mysql-test/r/federated.result
mysql-test/r/federated.result
+27
-1
mysql-test/r/federated_transactions.result
mysql-test/r/federated_transactions.result
+1
-1
mysql-test/t/ctype_cp1250_ch.test
mysql-test/t/ctype_cp1250_ch.test
+10
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+14
-0
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+1
-1
mysql-test/t/federated.test
mysql-test/t/federated.test
+45
-1
sql/ha_federated.cc
sql/ha_federated.cc
+1
-0
sql/ha_federated.h
sql/ha_federated.h
+4
-3
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+1
-1
strings/ctype-win1250ch.c
strings/ctype-win1250ch.c
+2
-2
No files found.
mysql-test/lib/mtr_misc.pl
View file @
1bfe7668
...
@@ -82,9 +82,16 @@ sub mtr_path_exists (@) {
...
@@ -82,9 +82,16 @@ sub mtr_path_exists (@) {
sub
mtr_script_exists
(@)
{
sub
mtr_script_exists
(@)
{
foreach
my
$path
(
@_
)
foreach
my
$path
(
@_
)
{
if
(
$::glob_win32
)
{
return
$path
if
-
f
$path
;
}
else
{
{
return
$path
if
-
x
$path
;
return
$path
if
-
x
$path
;
}
}
}
if
(
@_
==
1
)
if
(
@_
==
1
)
{
{
mtr_error
("
Could not find
$_
[0]
");
mtr_error
("
Could not find
$_
[0]
");
...
...
mysql-test/r/ctype_cp1250_ch.result
View file @
1bfe7668
...
@@ -43,3 +43,11 @@ id str
...
@@ -43,3 +43,11 @@ id str
6 aaaaaa
6 aaaaaa
7 aaaaaaa
7 aaaaaaa
drop table t1;
drop table t1;
set names cp1250;
create table t1 (a varchar(15) collate cp1250_czech_cs NOT NULL, primary key(a));
insert into t1 values("abcdefgh");
insert into t1 values("");
select a from t1 where a like "abcdefgh";
a
abcdefgh
drop table t1;
mysql-test/r/ctype_utf8.result
View file @
1bfe7668
...
@@ -1281,6 +1281,22 @@ id tid val
...
@@ -1281,6 +1281,22 @@ id tid val
42749 72 VOLN ADSL
42749 72 VOLN ADSL
44205 72 VOLN ADSL
44205 72 VOLN ADSL
DROP TABLE t1;
DROP TABLE t1;
create table t1(a char(200) collate utf8_unicode_ci NOT NULL default '')
default charset=utf8 collate=utf8_unicode_ci;
insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
explain select distinct a from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
select distinct a from t1;
a
e
explain select a from t1 group by a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
select a from t1 group by a;
a
e
drop table t1;
CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
SELECT id FROM t1;
SELECT id FROM t1;
...
...
mysql-test/r/federated.result
View file @
1bfe7668
...
@@ -1788,7 +1788,33 @@ length(a)
...
@@ -1788,7 +1788,33 @@ length(a)
5000
5000
drop table t1;
drop table t1;
drop table t1;
drop table t1;
End of 5.0 tests
DROP TABLE IF EXISTS federated.test;
CREATE TABLE federated.test (
`i` int(11) NOT NULL,
`j` int(11) NOT NULL,
`c` varchar(30) default NULL,
PRIMARY KEY (`i`,`j`),
UNIQUE KEY `i` (`i`,`c`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS federated.test1;
DROP TABLE IF EXISTS federated.test2;
create table federated.test1 (
i int not null,
j int not null,
c varchar(30),
primary key (i,j),
unique key (i, c))
engine = federated
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/test';
create table federated.test2 (
i int default null,
j int not null,
c varchar(30),
key (i))
engine = federated
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/test';
drop table federated.test1, federated.test2;
drop table federated.test;
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
DROP DATABASE IF EXISTS federated;
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
...
...
mysql-test/r/federated_transactions.result
View file @
1bfe7668
...
@@ -16,7 +16,7 @@ CREATE TABLE federated.t1 (
...
@@ -16,7 +16,7 @@ CREATE TABLE federated.t1 (
`id` int(20) NOT NULL,
`id` int(20) NOT NULL,
`name` varchar(32) NOT NULL default ''
`name` varchar(32) NOT NULL default ''
)
)
DEFAULT CHARSET=latin1 ENGINE=
InnoDB
;
DEFAULT CHARSET=latin1 ENGINE=
innodb
;
DROP TABLE IF EXISTS federated.t1;
DROP TABLE IF EXISTS federated.t1;
Warnings:
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't1'
...
...
mysql-test/t/ctype_cp1250_ch.test
View file @
1bfe7668
...
@@ -47,4 +47,14 @@ INSERT INTO t1 VALUES (NULL, 'aaaaaaa');
...
@@ -47,4 +47,14 @@ INSERT INTO t1 VALUES (NULL, 'aaaaaaa');
select
*
from
t1
where
str
like
'aa%'
;
select
*
from
t1
where
str
like
'aa%'
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#19741 segfault with cp1250 charset + like + primary key + 64bit os
#
set
names
cp1250
;
create
table
t1
(
a
varchar
(
15
)
collate
cp1250_czech_cs
NOT
NULL
,
primary
key
(
a
));
insert
into
t1
values
(
"abcdefgh"
);
insert
into
t1
values
(
""
);
select
a
from
t1
where
a
like
"abcdefgh"
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
mysql-test/t/ctype_utf8.test
View file @
1bfe7668
...
@@ -1026,6 +1026,20 @@ ALTER TABLE t1 ADD KEY idx (tid,val(11));
...
@@ -1026,6 +1026,20 @@ ALTER TABLE t1 ADD KEY idx (tid,val(11));
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'VOLN ADSL'
;
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'VOLN ADSL'
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug 20709: problem with utf8 fields in temporary tables
#
create
table
t1
(
a
char
(
200
)
collate
utf8_unicode_ci
NOT
NULL
default
''
)
default
charset
=
utf8
collate
=
utf8_unicode_ci
;
insert
into
t1
values
(
unhex
(
'65'
)),
(
unhex
(
'C3A9'
)),
(
unhex
(
'65'
));
explain
select
distinct
a
from
t1
;
select
distinct
a
from
t1
;
explain
select
a
from
t1
group
by
a
;
select
a
from
t1
group
by
a
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
#
...
...
mysql-test/t/disabled.def
View file @
1bfe7668
...
@@ -21,6 +21,7 @@ ndb_autodiscover2 : BUG#18952 2006-02-16 jmiller Needs to be fixed w.r.t
...
@@ -21,6 +21,7 @@ ndb_autodiscover2 : BUG#18952 2006-02-16 jmiller Needs to be fixed w.r.t
ndb_binlog_ignore_db : BUG#21279 2006-07-25 ingo Randomly throws a warning
ndb_binlog_ignore_db : BUG#21279 2006-07-25 ingo Randomly throws a warning
ndb_load : BUG#17233 2006-05-04 tomas failed load data from infile causes mysqld dbug_assert, binlog not flushed
ndb_load : BUG#17233 2006-05-04 tomas failed load data from infile causes mysqld dbug_assert, binlog not flushed
ndb_restore_compat : BUG#21283 2006-07-26 ingo Test fails randomly
ndb_restore_compat : BUG#21283 2006-07-26 ingo Test fails randomly
partition : BUG#21658 2006-08-16 Partition test fails, --ps-protocol
partition_03ndb : BUG#16385 2006-03-24 mikael Partitions: crash when updating a range partitioned NDB table
partition_03ndb : BUG#16385 2006-03-24 mikael Partitions: crash when updating a range partitioned NDB table
ps : BUG#21524 2006-08-08 pgalbraith 'ps' test fails in --ps-protocol test AMD64 bit
ps : BUG#21524 2006-08-08 pgalbraith 'ps' test fails in --ps-protocol test AMD64 bit
ps_7ndb : BUG#18950 2006-02-16 jmiller create table like does not obtain LOCK_open
ps_7ndb : BUG#18950 2006-02-16 jmiller create table like does not obtain LOCK_open
...
@@ -44,4 +45,3 @@ rpl_row_basic_7ndb : BUG#21298 2006-07-27 msvensson
...
@@ -44,4 +45,3 @@ rpl_row_basic_7ndb : BUG#21298 2006-07-27 msvensson
rpl_truncate_7ndb : BUG#21298 2006-07-27 msvensson
rpl_truncate_7ndb : BUG#21298 2006-07-27 msvensson
crash_commit_before : 2006-08-02 msvensson
crash_commit_before : 2006-08-02 msvensson
rpl_ndb_dd_advance : BUG#18679 2006-07-28 jimw (Test fails randomly)
rpl_ndb_dd_advance : BUG#18679 2006-07-28 jimw (Test fails randomly)
federated_transactions : Need to be re-enabled once Patrick's merge is complete
mysql-test/t/federated.test
View file @
1bfe7668
...
@@ -1553,5 +1553,49 @@ drop table t1;
...
@@ -1553,5 +1553,49 @@ drop table t1;
connection
master
;
connection
master
;
drop
table
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
#
# BUG #15133: unique index with nullable value not accepted in federated table
#
connection
slave
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
federated
.
test
;
CREATE
TABLE
federated
.
test
(
`i`
int
(
11
)
NOT
NULL
,
`j`
int
(
11
)
NOT
NULL
,
`c`
varchar
(
30
)
default
NULL
,
PRIMARY
KEY
(
`i`
,
`j`
),
UNIQUE
KEY
`i`
(
`i`
,
`c`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
enable_warnings
connection
master
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
federated
.
test1
;
DROP
TABLE
IF
EXISTS
federated
.
test2
;
--
enable_warnings
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
create
table
federated
.
test1
(
i
int
not
null
,
j
int
not
null
,
c
varchar
(
30
),
primary
key
(
i
,
j
),
unique
key
(
i
,
c
))
engine
=
federated
connection
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/test'
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
create
table
federated
.
test2
(
i
int
default
null
,
j
int
not
null
,
c
varchar
(
30
),
key
(
i
))
engine
=
federated
connection
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/test'
;
drop
table
federated
.
test1
,
federated
.
test2
;
connection
slave
;
drop
table
federated
.
test
;
source
include
/
federated_cleanup
.
inc
;
source
include
/
federated_cleanup
.
inc
;
sql/ha_federated.cc
View file @
1bfe7668
...
@@ -332,6 +332,7 @@
...
@@ -332,6 +332,7 @@
*/
*/
#include "mysql_priv.h"
#include "mysql_priv.h"
#ifdef USE_PRAGMA_IMPLEMENTATION
#ifdef USE_PRAGMA_IMPLEMENTATION
#pragma implementation // gcc: Class implementation
#pragma implementation // gcc: Class implementation
...
...
sql/ha_federated.h
View file @
1bfe7668
...
@@ -117,9 +117,10 @@ class ha_federated: public handler
...
@@ -117,9 +117,10 @@ class ha_federated: public handler
ulonglong
table_flags
()
const
ulonglong
table_flags
()
const
{
{
/* fix server to be able to get remote server table flags */
/* fix server to be able to get remote server table flags */
return
(
HA_PRIMARY_KEY_IN_READ_INDEX
|
HA_FILE_BASED
|
HA_REC_NOT_IN_SEQ
|
return
(
HA_PRIMARY_KEY_IN_READ_INDEX
|
HA_FILE_BASED
HA_AUTO_PART_KEY
|
HA_CAN_INDEX_BLOBS
|
HA_NO_PREFIX_CHAR_KEYS
|
|
HA_REC_NOT_IN_SEQ
|
HA_AUTO_PART_KEY
|
HA_CAN_INDEX_BLOBS
|
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE
|
HA_PARTIAL_COLUMN_READ
);
HA_NO_PREFIX_CHAR_KEYS
|
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE
|
HA_PARTIAL_COLUMN_READ
|
HA_NULL_IN_KEY
);
}
}
/*
/*
This is a bitmap of flags that says how the storage engine
This is a bitmap of flags that says how the storage engine
...
...
storage/csv/ha_tina.cc
View file @
1bfe7668
strings/ctype-win1250ch.c
View file @
1bfe7668
...
@@ -636,11 +636,11 @@ my_like_range_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
...
@@ -636,11 +636,11 @@ my_like_range_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
ptr
++
;
/* Skip escape */
ptr
++
;
/* Skip escape */
else
if
(
*
ptr
==
w_one
||
*
ptr
==
w_many
)
/* '_' or '%' in SQL */
else
if
(
*
ptr
==
w_one
||
*
ptr
==
w_many
)
/* '_' or '%' in SQL */
break
;
break
;
*
min_str
=
like_range_prefix_min_win1250ch
[(
uint
)
(
*
ptr
)];
*
min_str
=
like_range_prefix_min_win1250ch
[(
uint
)
(
uchar
)
(
*
ptr
)];
if
(
*
min_str
!=
min_sort_char
)
if
(
*
min_str
!=
min_sort_char
)
only_min_found
=
0
;
only_min_found
=
0
;
min_str
++
;
min_str
++
;
*
max_str
++=
like_range_prefix_max_win1250ch
[(
uint
)(
*
ptr
)];
*
max_str
++=
like_range_prefix_max_win1250ch
[(
uint
)
(
uchar
)
(
*
ptr
)];
}
}
if
(
cs
->
state
&
MY_CS_BINSORT
)
if
(
cs
->
state
&
MY_CS_BINSORT
)
...
...
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