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
99a2489e
Commit
99a2489e
authored
Jul 07, 2006
by
patg@govinda.patg.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #19773
Small post-patch fixes
parent
9889ba09
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
mysql-test/r/federated.result
mysql-test/r/federated.result
+4
-4
mysql-test/t/federated.test
mysql-test/t/federated.test
+0
-1
sql/ha_federated.cc
sql/ha_federated.cc
+5
-6
No files found.
mysql-test/r/federated.result
View file @
99a2489e
...
...
@@ -1605,8 +1605,8 @@ DROP TABLE federated.t1;
DROP TABLE federated.bug_17377_table;
create table federated.t1 (i1 int, i2 int, i3 int);
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20));
create table federated.t1 (i1 int, i2 int, i3 int) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
9308
/federated/t1';
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
9308
/federated/t2';
create table federated.t1 (i1 int, i2 int, i3 int) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/federated/t1';
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/federated/t2';
insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
select * from federated.t1 order by i1;
...
...
@@ -1648,8 +1648,8 @@ drop table federated.t1, federated.t2;
drop table federated.t1, federated.t2;
create table federated.t1 (i1 int, i2 int, i3 int, primary key (i1));
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20), primary key (id));
create table federated.t1 (i1 int auto_increment not null, i2 int, i3 int, primary key (i1)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
9308
/federated/t1';
create table federated.t2 (id int auto_increment not null, c1 varchar(20), c2 varchar(20), primary key(id)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
9308
/federated/t2';
create table federated.t1 (i1 int auto_increment not null, i2 int, i3 int, primary key (i1)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/federated/t1';
create table federated.t2 (id int auto_increment not null, c1 varchar(20), c2 varchar(20), primary key(id)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:
SLAVE_PORT
/federated/t2';
insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
select * from federated.t1 order by i1;
...
...
mysql-test/t/federated.test
View file @
99a2489e
...
...
@@ -1314,7 +1314,6 @@ select * from federated.t1 where fld_parentid=0 and fld_delt=0;
DROP
TABLE
federated
.
t1
;
connection
slave
;
DROP
TABLE
federated
.
bug_17377_table
;
DROP
TABLE
federated
.
t1
;
#
# BUG 19773 Crash when using multi-table updates, deletes
...
...
sql/ha_federated.cc
View file @
99a2489e
...
...
@@ -416,7 +416,7 @@ int federated_db_init()
if
(
pthread_mutex_init
(
&
federated_mutex
,
MY_MUTEX_INIT_FAST
))
goto
error
;
if
(
hash_init
(
&
federated_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
if
(
!
hash_init
(
&
federated_open_tables
,
&
my_charset_bin
,
32
,
0
,
0
,
(
hash_get_key
)
federated_get_key
,
0
,
0
))
{
federated_init
=
TRUE
;
...
...
@@ -2114,7 +2114,7 @@ int ha_federated::index_read_idx_with_result_set(byte *buf, uint index,
/* Initialized at each key walk (called multiple times unlike rnd_init()) */
int
ha_federated
::
index_init
(
uint
keynr
)
int
ha_federated
::
index_init
(
uint
keynr
,
bool
sorted
)
{
DBUG_ENTER
(
"ha_federated::index_init"
);
DBUG_PRINT
(
"info"
,
(
"table: '%s' key: %u"
,
table
->
s
->
table_name
,
keynr
));
...
...
@@ -2523,14 +2523,13 @@ void ha_federated::info(uint flag)
stats
.
check_time
=
(
ha_rows
)
my_strtoll10
(
row
[
13
],
(
char
**
)
0
,
&
error
);
}
if
(
flag
&
HA_STATUS_CONST
)
stats
.
block_size
=
4096
;
/*
size of IO operations (This is based on a good guess, no high science
involved)
*/
block_size
=
4096
;
if
(
flag
&
HA_STATUS_CONST
)
stats
.
block_size
=
4096
;
}
if
(
result
)
...
...
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