Skip to content

Attached Database Doesn't Attach If It Doesn't Contain Tables #1132

@chrisjlocke

Description

@chrisjlocke

Details for the issue

Addmittedly an odd case, but I thought I'd report it.
I'd attached two databases, and moved one table from one database to the other database. Worked fine. Saved both. This meant database 1 was now empty, as its tables had been moved.
Closing the databases and trying to attach the now empty database didn't work. DB4S asked what I'd want to call the attached database*, but it didn't appear in the 'Database Schema' tree. Additionally, if I clicked on 'Create Table', it only listed 'main' and 'temp' for a schema - the attached database didn't attach.
If it has to fail (no tables, indices, etc) then a message informing the user would be handy, with maybe (now I'm going too far....) an option to open that database instead (maybe in a different copy of DB4S?) so the attach could then be retried?

* As an additional issue/suggestion, would DB4S be able to pre-populate the 'Enter a name for the database' textbox with the filename of the database you just attached (sans extension).

If a name isn't given for an attached database, DB4S assumes Cancel has been clicked, rather than inform the user that they can't enter nothing. Again, some warning might be handy. (or disable the OK box if the textbox is empty)

Sorry for multiple issues per issue (if that makes sense...) but I didn't want to stuff up the issues screen with related issues...

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.10.99 (nightly from 12 Sep)
  • 3.10.0-beta*
  • 3.9.1
  • Other: ___

I have also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions