Bug #20881 | Bad recorders returned when Query with federated tables | ||
---|---|---|---|
Submitted: | 6 Jul 2006 3:19 | Modified: | 7 Aug 2006 6:53 |
Reporter: | ming lu | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Federated storage engine | Severity: | S2 (Serious) |
Version: | 5.1.11 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[6 Jul 2006 3:19]
ming lu
[24 Jul 2006 16:01]
Valeriy Kravchuk
Thank you for a problem report. I was not able to repeat the behaviour described with 5.1.12-BK on Linux (ChangeSet@1.2264, 2006-07-24 09:38:42+10:00, stewart@willster.(none) +1 -0): openxs@suse:~/dbs/5.1> bin/mysql -uroot test --socket=/tmp/mysql51.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 5.1.12-beta-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `b` ( -> `id_b` int(11) NOT NULL DEFAULT '0', -> `id_a` int(11) DEFAULT NULL, -> `c` int(11) DEFAULT NULL, -> PRIMARY KEY (`id_b`) -> ) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1/test/b'; Query OK, 0 rows affected (0.04 sec) mysql> CREATE TABLE `a` ( -> `id_a` int(11) NOT NULL DEFAULT '0', -> PRIMARY KEY (`id_a`) -> ) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1/test/a'; Query OK, 0 rows affected (0.04 sec) mysql> CREATE TABLE `c` ( -> `id_c` int(11) NOT NULL DEFAULT '0', -> `c` int(11) NOT NULL DEFAULT '0', -> PRIMARY KEY (`id_c`), -> KEY `tablec_c` (`c`) -> ) ENGINE=innodb ROW_FORMAT=DYNAMIC; Query OK, 0 rows affected (0.03 sec) mysql> insert c values(1,1),(2,1),(3,1),(4,2),(5,2),(6,3),(7,3),(8,3); Query OK, 8 rows affected (0.01 sec) Records: 8 Duplicates: 0 Warnings: 0 mysql> exit Bye openxs@suse:~/dbs/5.1> bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 to server version: 4.1.22 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select a.id_a, b_alias.id_a, c.c, b_alias.c -> from a,c, -> (select id_a,c from b group by id_a) b_alias -> where a.id_a=b_alias.id_a -> and -> c.c=b_alias.c -> ; Empty set (0.02 sec) mysql> exit Bye openxs@suse:~/dbs/5.1> bin/mysql -uroot test --socket=/tmp/mysql51.sock Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 5.1.12-beta-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select a.id_a, b_alias.id_a, c.c, b_alias.c from a,c, (select id_a, c from b group by id_a) b_alias where a.id_a=b_alias.id_a and c.c= b_alias.c; Empty set (0.02 sec) So, results are the same. Please, try to repeat with a newer sources/nightly build, or just wait for 5.1.12 to be released officially.
[7 Aug 2006 6:53]
ming lu
Sorry, maybe i make a mistake about the Server version, I think i do the test against to the mysql server 5.1.11 instead of 5.1.12 actually. Do you sure that the problem isn't exist in the version 5.1.11? By the way, when will the mysql server 5.1.12 be released ?