Menu

#2539 (ok 2.11.5) "Propose table structure" and Export

2.11.1
fixed
1
2013-06-11
2007-09-21
Z0l0ft
No

How to produce:

1. Open a table in "Structure" view.
2. Click "Propose table structure"
3. Click "Export"
4. Leave default settings ("Data" has to be checked.)
5. Click "Go"

Result:
The DumpData Query are erroneous;

SELECT * FROM `table_name` PROCEDURE ANALYSE() LIMIT 16

Errors:
"LIMIT 16" are misplaced (should not be in the Query).

Question (on the side):
Is not the idea to have the export after "Propose table structure" to be the CREATE TABLE proposed by "PROCEDURE ANALYSE()"`?

Checked versions:
phpMyAdmin - 2.11.1
phpMyAdmin - 2.11.2-dev

On:
-- Server version: 5.0.18
-- PHP Version: 5.1.2

and

-- Server version: 4.1.18
-- PHP Version: 5.1.2

and

-- Server version: 5.0.45
-- PHP Version: 5.2.4-1

Discussion

  • Z0l0ft

    Z0l0ft - 2007-09-21
    • summary: Export Propose table struct, LIMIT error --> Export Propose table struct, Export error, Dumping Data
     
  • Marc Delisle

    Marc Delisle - 2007-09-23

    Logged In: YES
    user_id=210714
    Originator: NO

    About the bug: the solution would be in libraries/display_export.lib.php to avoid display the dialog containing strDumpXRows, if the query is not allowed to have a limit. To find this, use the same code as in sql.php (see section "Do append a LIMIT clause"). Possibly set $is_analyse (and others) from a function.

    About generating a CREATE TABLE: yes, this would be a feature request. There is no intention currently with the execution path you are describing.

     
  • Marc Delisle

    Marc Delisle - 2008-02-08
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2008-02-08

    Logged In: YES
    user_id=210714
    Originator: NO

    Fixed: removed the Export link (and Create view link) in this case: they don't make sense.

     
  • Marc Delisle

    Marc Delisle - 2008-02-08
    • priority: 5 --> 1
    • summary: Export Propose table struct, Export error, Dumping Data --> (ok 2.11.5) "Propose table structure" and Export
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2008-03-01
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed