You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting a view that uses a WITH RECURSIVE common table expression (CTE) from phpMyAdmin, the RECURSIVE keyword is omitted in the exported SQL file. This omission results in an invalid SQL script that fails during import.
To Reproduce
Steps to reproduce the behavior:
Create a view in phpMyAdmin using the following SQL with a WITH RECURSIVE CTE:
CREATEVIEWnumber_sequence_viewAS
WITH RECURSIVE number_sequence AS (
SELECT1ASnumberUNION ALLSELECTnumber+1FROM number_sequence
WHEREnumber<5
)
SELECT*FROM number_sequence;
Export the view using phpMyAdmin.
Open the exported SQL file and inspect the contents.
Expected behavior
The exported SQL file should contain the full SQL script including the WITH RECURSIVE keyword to ensure the view can be correctly imported into another MySQL instance.
Actual Behavior
The exported SQL file omits the RECURSIVE keyword, resulting in an incomplete SQL script that cannot be used to recreate the view.
Server configuration
Operating system: Debian
Web server: Apache/2.4.57
Database version: 8.2.0 - MySQL Community Server - GPL
PHP version: 8.2.14
phpMyAdmin version: 5.2.1
Client configuration
Browser: chrome
Operating system: macos 13.6.3
The text was updated successfully, but these errors were encountered:
Hi @ddman
Some fixes have be done for this, I tried this right now on the the latest 5.2 version in development (phpMyAdmin 5.2+snapshot) and it worked fine.
Can you please confirm ?
Describe the bug
When exporting a view that uses a WITH RECURSIVE common table expression (CTE) from phpMyAdmin, the RECURSIVE keyword is omitted in the exported SQL file. This omission results in an invalid SQL script that fails during import.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The exported SQL file should contain the full SQL script including the WITH RECURSIVE keyword to ensure the view can be correctly imported into another MySQL instance.
Actual Behavior
The exported SQL file omits the RECURSIVE keyword, resulting in an incomplete SQL script that cannot be used to recreate the view.
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: