fix: skip MySQL dump helper statements on import

This commit is contained in:
t8y2
2026-05-16 12:30:31 +08:00
parent e97277250a
commit e97e965ea1
3 changed files with 121 additions and 10 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ DBX reads SQL files as a stream and tries to detect statement boundaries correct
- Semicolons inside strings are not treated as statement endings
- Semicolons inside line and block comments are ignored
- PostgreSQL dollar-quoted function bodies are kept together
- MySQL executable comments are prepared for the target connection before import: MySQL-compatible connections unwrap executable content, non-MySQL connections skip it, and restore-only `ENABLE/DISABLE KEYS` directives are skipped
- MySQL executable comments are prepared for the target connection before import: MySQL-compatible connections unwrap executable content, non-MySQL connections skip it, and import-helper directives such as `ENABLE/DISABLE KEYS`, `LOCK/UNLOCK TABLES`, and session state restores are skipped
## Error Handling