"Create database if not exists" line should not be included during an SQL server export when only exporting data #19084
Labels
affects/5.2
This issue or pull-request affects 5.2.x releases (and maybe further versions)
Bug
A problem or regression with an existing feature
confirmed/5.2
This issue is confirmed to be reproduced on 5.2 at the time this label was set
Describe the bug
When doing an SQL Server Export (Exporting when no DB/Table is selected) and choosing to export only data.
The First line in in the SQL file is "Create database if not exists", which does not make sense when exporting only data.
Even if the database doesn't exist yet, the SQL file will not create the table, but try to insert the data anyway.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The export file only has SQL statements to insert the data, not to create the database.
The "use
database_name
" line should stay.Screenshots
Server configuration
The text was updated successfully, but these errors were encountered: