[MDEV-3733] LP:960587 - Bit Field Causing Issues with Inner Join Created: 2012-03-20 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | DaveFM (Inactive) | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
SELECT `category`.`keyword` AS `category_keyword`, `string`.`keyword` AS `string_keyword`, `string`.`string` AS `string_string` FROM `application_i18n_category` AS `category` LEFT JOIN `application_i18n_string` AS `string` ON `category`.`id` = `string`.`category` AND `string`.`disabled` = 0 WHERE `category`.`id` IN ( 9757 ); Query returns 1 result on mariaDB, same query returns 28 results on mysql 5.5 Removing the AND `string`.`disabled` = 0 returns the same amount of results on both mysql and mariadb a count on both returns identical results.
----------
---------- MariaDB [sabretooth]> select count
----------
---------- show create table application_i18n_category; show create table application_i18n_string; CREATE TABLE `application_i18n_string` ( |
| Comments |
| Comment by DaveFM (Inactive) [ 2012-03-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Bit Field Causing Issues with Inner Join
-----
----- mysql> explain SELECT `category`.`keyword` AS `category_keyword`, `string`.`keyword` AS `string_keyword`, `string`.`string` AS `string_string` FROM `application_i18n_category` AS `category` LEFT JOIN `application_i18n_string` AS `string` ON `category`.`id` = `string`.`category` AND `string`.`disabled` = 0 WHERE `category`.`id` IN ( 9757 );
---
--- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2012-03-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Bit Field Causing Issues with Inner Join | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2012-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Bit Field Causing Issues with Inner Join | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2012-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Launchpad bug id: 960587 |