HeidiSQL icon indicating copy to clipboard operation
HeidiSQL copied to clipboard

When you load a sql file not empty, select all, delete : it lost the filename and the file handle

Open philibe opened this issue 2 years ago • 0 comments

Preconditions

  • HeidiSQL version: 12.5.0.6677
  • Database type and version: SQL Server 2005 9.00.3042.00
  • OS: Windows 7 SP1 32 bits

Describe the bug

When you load a sql file not empty, select all, delete : it lost the filename (and the file handle )

To Reproduce

  • Go to menu "File / Load" a myquery.sql (not empty)
    • see
      • the filename in the tab : myquery.sql
  • select all (ctrl-A)
  • delete all
    • see
      • the filename in the tab : Query # 8 (where # 8 is the 8 th tab for example)
      • the menu "File / Save" is grayed
      • the menu "File / Save As" is grayed
    • when you undo (ctrl-Z), the old query is back but not the filename nor the file handle

Remarks Explanation of my usage

When I create a sql file whith a version, myquery_20231016_1.sql, and make a new version, myquery_20231016_2.sql because it's a logical suite, sometimes I erase all the file to continue the same study of my query.

General usage

Even it's not during this sort of versioning, it's strange and unusual in an editor to lost the filename and the file handle when you delete all the characters of the file.

Screenshots or Crash reports

philibe avatar Oct 16 '23 10:10 philibe