New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Export SQL option for a raw query #15064
Comments
|
I face this issue literally everyday and would like to fix this. |
|
@adityasanil Yes, go ahead, you can open a pull-request if you find how to solve the issue! |
|
For anyone trying to fix this, the bug seems to be related to the "single_table" parameter.
phpmyadmin/libraries/classes/Plugins/Export/ExportSql.php Lines 72 to 81 in 1303def
But "single_table" is never set to true when executing the given query as Query::getAll can't find any tables (see line 4940): phpmyadmin/libraries/classes/Display/Results.php Lines 4935 to 4942 in 4d9da96
Anyway, the export neither works as expected when choosing other options (e.g. XML) as it incorrectly assumes we're working on the first table of the current database instead of the one from the query. |
|
@williamdes is anyone working on this issue? if not i would like to work on it |
|
@amarjitsingh52922 You can work on this issue, would be great if you find a fix ! |
…able is involved in the SQL query Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
… for 'free_query' in /Plugins/Export/ExportSql.php Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
… queries using free_query parameter Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
…aw query now dumping properly Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
|
@williamdes @ibennetch I have done some work related to this, I am opening a PR here for further help and improvements : ) |
Signed-off-by: Saurabh Srivastava <saurabhsrivastava312@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
… SQL, execute it ! Ref: #15121 all other plugins execute it Signed-off-by: William Desportes <williamdes@wdes.fr>
Describe the bug
Execute
Go to export below results
No sql option on export page ..
Similar to #14775
The text was updated successfully, but these errors were encountered: