Menu

#3797 (ok 4.0.5) Exporting row selection after ORDER BY

3.5.6
fixed
None
1
2013-11-22
2013-02-02
No

How to reproduce:

Run this in SQL tab:

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (id INT);
INSERT INTO t1 VALUES (1);
SELECT * FROM t1 ORDER BY id;

Select the row. Click Export. Now this SQL appears:

SELECT *
FROM t1
ORDER BY id
WHERE (t1.id =1
)
ORDER BY id

The ORDER BY line before WHERE is wrong and triggers
error #1064 during export.

Discussion

  • Harsha

    Harsha - 2013-02-12

    Hi!
    I have able to reproduce this.I'm looking into it.This happen when exporting a row after query which is having order by term. Normally row can export without any issue.
    Thanks

     
  • Harsha

    Harsha - 2013-02-18

    Hi!
    I have fix the bug and i'll send a pull request now.
    Thanks!

     
  • Harsha

    Harsha - 2013-02-18
     
  • Harsha

    Harsha - 2013-02-19

    Pull request according to feedback received for above pull request.

    Pull request-https://github.com/phpmyadmin/phpmyadmin/pull/172

     
  • Marc Delisle

    Marc Delisle - 2013-04-09

    These pull requests were rejected.

     
  • Michael Therrien

    Any update on this? I've seen that the problem is not apparent in 4.0.5 but 3.5.5 and 3.5.6.

     
  • Marc Delisle

    Marc Delisle - 2013-11-22

    Hugues,
    thanks for confirming that this has been fixed for 4.0

     
  • Marc Delisle

    Marc Delisle - 2013-11-22
    • summary: Exporting row selection after ORDER BY --> (ok 4.0.5) Exporting row selection after ORDER BY
    • status: open --> fixed
    • assigned_to: Marc Delisle
    • Priority: 5 --> 1