summaryrefslogtreecommitdiff
path: root/mysql-test/r/federated.result
diff options
context:
space:
mode:
authormsvensson@devsrv-b.mysql.com <>2006-02-28 11:17:40 +0100
committermsvensson@devsrv-b.mysql.com <>2006-02-28 11:17:40 +0100
commitf2444c50fc45a509d3fce61323b272acac0b3aef (patch)
tree213fe06b059798792c4838652be50d0d2c9915fe /mysql-test/r/federated.result
parenta77cc69e6203b03f6a43c874b6e8e5f5b0797ccb (diff)
downloadmariadb-git-f2444c50fc45a509d3fce61323b272acac0b3aef.tar.gz
Bug#17377 Federated Engine returns wrong Data, always the rows with the highest ID
- Always make rnd_pos reposition the cursor in the fetched result set.
Diffstat (limited to 'mysql-test/r/federated.result')
-rw-r--r--mysql-test/r/federated.result43
1 files changed, 43 insertions, 0 deletions
diff --git a/mysql-test/r/federated.result b/mysql-test/r/federated.result
index c1e7533bcee..f11da4ee62f 100644
--- a/mysql-test/r/federated.result
+++ b/mysql-test/r/federated.result
@@ -1558,6 +1558,49 @@ id
3
4
5
+DROP TABLE IF EXISTS federated.bug_17377_table;
+CREATE TABLE federated.bug_17377_table (
+`fld_cid` bigint(20) NOT NULL auto_increment,
+`fld_name` varchar(255) NOT NULL default '',
+`fld_parentid` bigint(20) NOT NULL default '0',
+`fld_delt` int(1) NOT NULL default '0',
+PRIMARY KEY (`fld_cid`),
+KEY `fld_parentid` (`fld_parentid`),
+KEY `fld_delt` (`fld_delt`),
+KEY `fld_cid` (`fld_cid`)
+) ENGINE=MyISAM;
+insert into federated.bug_17377_table( fld_name )
+values
+("Mats"), ("Sivert"), ("Sigvard"), ("Torgny"), ("Torkel");
+DROP TABLE IF EXISTS federated.t1;
+CREATE TABLE federated.t1 (
+`fld_cid` bigint(20) NOT NULL auto_increment,
+`fld_name` varchar(255) NOT NULL default '',
+`fld_parentid` bigint(20) NOT NULL default '0',
+`fld_delt` int(1) NOT NULL default '0',
+PRIMARY KEY (`fld_cid`),
+KEY `fld_parentid` (`fld_parentid`),
+KEY `fld_delt` (`fld_delt`),
+KEY `fld_cid` (`fld_cid`)
+) ENGINE=FEDERATED
+CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/bug_17377_table';
+select * from federated.t1 where fld_parentid=0 and fld_delt=0
+order by fld_name;
+fld_cid fld_name fld_parentid fld_delt
+1 Mats 0 0
+3 Sigvard 0 0
+2 Sivert 0 0
+4 Torgny 0 0
+5 Torkel 0 0
+select * from federated.t1 where fld_parentid=0 and fld_delt=0;
+fld_cid fld_name fld_parentid fld_delt
+1 Mats 0 0
+2 Sivert 0 0
+3 Sigvard 0 0
+4 Torgny 0 0
+5 Torkel 0 0
+DROP TABLE federated.t1;
+DROP TABLE federated.bug_17377_table;
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
DROP TABLE IF EXISTS federated.t1;