Menu

#4444 (ok 4.2.12) No insert statement produced in SQL export for queries with alias

4.2.2
fixed
export (16)
1
2014-11-20
2014-06-08
No

Steps to reproduce:

1) Execute query like this:

select * from `sakila`.`actor` as a

2) Select some rows from displayed result table.
3) Click "Export" from "With Selected: " options.
4) Export with default configurations i.e. (Format: SQL, Export Method: Quick).

The generated export data will not contain insert statements for the rows selected.Moreover an error is generated in export file:

-- Error reading data: (#1054 - Unknown column 'actor.actor_id' in 'where clause')

Discussion

  • Madhura Jayaratne

    Can be reproduced for a query with alias

     
  • Madhura Jayaratne

    • summary: No insert statement produced in SQL export --> No insert statement produced in SQL export for queries with alias
     
  • Chirayu Chiripal

    To be specific, for queries with table alias.

     

    Last edit: Chirayu Chiripal 2014-06-08
  • Smita Kumari

    Smita Kumari - 2014-08-14

    I have opened a pull request with a patch to fix this issue, here it is https://github.com/phpmyadmin/phpmyadmin/pull/1333 .
    let me know if it works as expected.

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    • summary: No insert statement produced in SQL export for queries with alias --> (ok 4.2.12) No insert statement produced in SQL export for queries with alias
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2014-11-20
    • status: resolved --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.