<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="1001092">
  <date_last_updated>2012-05-18 06:55:22.376251+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/1001092</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~igorb-seattle</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.2</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/1001092/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/1001092/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/1001092</bug_web_link>
  <owner>Igor Babaev</owner>
  <assignee>Oleksandr &quot;Sanja&quot; Byelkin</assignee>
  <milestone_title>Maria 5.2</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Query with GROUP BY returns an extra row</title>
  <status>Confirmed</status>
  <importance>Medium</importance>
  <created>2012-05-18 05:14:04.340538+00:00</created>
  <description>
<![CDATA[The following test case produces a wrong result in MariaDB 5.2:

CREATE TABLE t1 (vc varchar(1), INDEX vc_idx (vc)) ;
INSERT INTO t1 VALUES (NULL), ('o'), (NULL), ('p'), ('c');
FLUSH TABLE t1;
SELECT vc FROM t1 GROUP BY vc;

MariaDB [test]> SELECT vc FROM t1 GROUP BY vc;
+------+
| vc   |
+------+
| NULL |
| NULL |
| c    |
| o    |
| p    |
+------+
5 rows in set (0.01 sec)

(See also bug #12837714 in mysql-trunk)]]>  </description>
  <activities>
    <activity datechanged="2012-05-18T05:14:04.340538+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Igor Babaev</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-05-18T05:14:15.562441+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Confirmed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-18T05:14:20.054317+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[High]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-18T05:14:36.385124+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Oleksandr "Sanja" Byelkin (sanja-byelkin)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-18T05:14:43.250354+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.2]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-18T06:55:21.481914+00:00">
      <oldvalue>
<![CDATA[High]]>      </oldvalue>
      <newvalue>
<![CDATA[Medium]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/1001092/comments/1" datecreated="2012-05-18T06:55:12.438887+00:00">
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <subject>
<![CDATA[Re: Query with GROUP BY returns an extra row]]>      </subject>
      <content>
<![CDATA[It is not repeatable on 5.3]]>      </content>
    </comment>
  </comments>
</launchpad-bug>
