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
84c96a26
Commit
84c96a26
authored
Feb 17, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
different fix for internal Oracle MySQL bug#16324629 that doesn't crash
(simply, copied from FederatedX)
parent
4881c650
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
mysql-test/suite/federated/federated_maybe_16324629.result
mysql-test/suite/federated/federated_maybe_16324629.result
+16
-0
mysql-test/suite/federated/federated_maybe_16324629.test
mysql-test/suite/federated/federated_maybe_16324629.test
+23
-0
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+2
-1
No files found.
mysql-test/suite/federated/federated_maybe_16324629.result
0 → 100644
View file @
84c96a26
CREATE DATABASE federated;
CREATE DATABASE federated;
create table federated.t1 (a int, b int, unique key (a), key (b));
create table t1 (a int, b int, unique key (a), key (b))
engine=federated CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
insert into t1 values (3, 3), (7, 7);
delete t1 from t1 where a = 3;
select * from t1;
a b
3 3
7 7
drop table t1;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
mysql-test/suite/federated/federated_maybe_16324629.test
0 → 100644
View file @
84c96a26
#
# Inspired by a bug fix for internal Oracle MySQL bug#16324629
#
source
include
/
federated
.
inc
;
connection
slave
;
create
table
federated
.
t1
(
a
int
,
b
int
,
unique
key
(
a
),
key
(
b
));
connection
master
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
create
table
t1
(
a
int
,
b
int
,
unique
key
(
a
),
key
(
b
))
engine
=
federated
CONNECTION
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1'
;
insert
into
t1
values
(
3
,
3
),
(
7
,
7
);
delete
t1
from
t1
where
a
=
3
;
select
*
from
t1
;
drop
table
t1
;
connection
slave
;
connection
default
;
source
include
/
federated_cleanup
.
inc
;
storage/federated/ha_federated.cc
View file @
84c96a26
...
@@ -2744,7 +2744,8 @@ void ha_federated::position(const uchar *record __attribute__ ((unused)))
...
@@ -2744,7 +2744,8 @@ void ha_federated::position(const uchar *record __attribute__ ((unused)))
{
{
DBUG_ENTER
(
"ha_federated::position"
);
DBUG_ENTER
(
"ha_federated::position"
);
DBUG_ASSERT
(
stored_result
);
if
(
!
stored_result
)
DBUG_VOID_RETURN
;
position_called
=
TRUE
;
position_called
=
TRUE
;
/* Store result set address. */
/* Store result set address. */
...
...
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