Title: phpMyAdmin 5.2.3 export fails with RuntimeException: No statement inside WITH for views containing nested CTEs · Issue #666 · phpmyadmin/sql-parser · GitHub
Open Graph Title: phpMyAdmin 5.2.3 export fails with RuntimeException: No statement inside WITH for views containing nested CTEs · Issue #666 · phpmyadmin/sql-parser
X Title: phpMyAdmin 5.2.3 export fails with RuntimeException: No statement inside WITH for views containing nested CTEs · Issue #666 · phpmyadmin/sql-parser
Description: When exporting a database/schema from phpMyAdmin 5.2.3, the export fails if a view contains a nested CTE (WITH inside another WITH). The view itself is valid in MariaDB and can be created, queried, and retrieved successfully using SHOW C...
Open Graph Description: When exporting a database/schema from phpMyAdmin 5.2.3, the export fails if a view contains a nested CTE (WITH inside another WITH). The view itself is valid in MariaDB and can be created, queried,...
X Description: When exporting a database/schema from phpMyAdmin 5.2.3, the export fails if a view contains a nested CTE (WITH inside another WITH). The view itself is valid in MariaDB and can be created, queried,...
Opengraph URL: https://github.com/phpmyadmin/sql-parser/issues/666
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"phpMyAdmin 5.2.3 export fails with RuntimeException: No statement inside WITH for views containing nested CTEs","articleBody":"When exporting a database/schema from phpMyAdmin 5.2.3, the export fails if a view contains a nested CTE (WITH inside another WITH).\n\nThe view itself is valid in MariaDB and can be created, queried, and retrieved successfully using SHOW CREATE VIEW. However, during phpMyAdmin export, phpMyAdmin creates the temporary stand-in definition for the view and then terminates with:\n\nRuntimeException: No statement inside WITH\nBecause the export terminates at this point, the final CREATE VIEW definitions that phpMyAdmin normally writes near the end of the export are missing from the generated SQL file.\n\nSimple reproduction steps: (MariaDB 10.11.16)\nDROP VIEW IF EXISTS test_nested_cte_view;\n\nCREATE VIEW test_nested_cte_view AS\nWITH outer_cte AS\n(\n WITH inner_cte AS\n (\n SELECT 1 AS id, 'test' AS name\n )\n SELECT id, name\n FROM inner_cte\n)\nSELECT id, name\nFROM outer_cte;\n\nThen perform a SQL export of the database/schema through phpMyAdmin.\nThe export then terminates with:\nRuntimeException: No statement inside WITH\n\nExpected result\n\nphpMyAdmin should successfully export a valid MariaDB view containing nested CTEs and include its complete CREATE VIEW definition in the SQL export.\n","author":{"url":"https://github.com/mohankara","@type":"Person","name":"mohankara"},"datePublished":"2026-08-10T21:55:36Z","url":"https://github.com/phpmyadmin/sql-parser/issues/666"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7756ed14-f14d-cc7f-8f49-a9ee7723bff2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B50E:21A483:1946E15:21F1221:6B0436E0 |
| html-safe-nonce | 2574c0d07bd58abc854c125c825c602b4145db151d7de351dd172472a1f835f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTBFOjIxQTQ4MzoxOTQ2RTE1OjIxRjEyMjE6NkIwNDM2RTAiLCJ2aXNpdG9yX2lkIjoiNjkzNjM5MDEyOTIwODgwMDk5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 92efc5b81f6d05e5b9434ff9cf672671ff1ef05d2a62bb0ab977157613011fda |
| hovercard-subject-tag | issue:5114683041 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpmyadmin/sql-parser/666/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f36d56ae8de9402770d7d1e829aa7c2d3dc27a5e960a02199f7808a0577ee5b/phpmyadmin/sql-parser/issues/666 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f36d56ae8de9402770d7d1e829aa7c2d3dc27a5e960a02199f7808a0577ee5b/phpmyadmin/sql-parser/issues/666 |
| og:image:alt | When exporting a database/schema from phpMyAdmin 5.2.3, the export fails if a view contains a nested CTE (WITH inside another WITH). The view itself is valid in MariaDB and can be created, queried,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohankara |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/phpmyadmin/sql-parser git https://github.com/phpmyadmin/sql-parser.git |
| octolytics-dimension-user_id | 1351977 |
| octolytics-dimension-user_login | phpmyadmin |
| octolytics-dimension-repository_id | 36256604 |
| octolytics-dimension-repository_nwo | phpmyadmin/sql-parser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36256604 |
| octolytics-dimension-repository_network_root_nwo | phpmyadmin/sql-parser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width