Skip to content

Create table generate table that cannot be modified #877

Closed

Description

@FreudGit

Details for the issue

Using this sql:
CREATE TABLE CONTACT (ID integer PRIMARY KEY AUTOINCREMENT,NAME varchar NOT NULL,PHONE varchar,ADDRESS varchar,NOTE text,EMERGENCY boolean NOT NULL DEFAULT NO,USERID integer NOT NULL DEFAULT 0, EMAIL varchar) create the table, but cannot modify on edit the table!

screen shot 2016-11-21 at 8 23 18 pm

:

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.9.1
  • 3.9.0
  • Other: ___

I have also:

Activity

  1. chrisjlocke commented on Nov 22, 2016

    @chrisjlocke
    Member

    Its the default values which has thrown it out. I created the SQL, but when I went to modify the table, DB4S thought it was empty. Remove the 'default' option, and it works OK.
    Referencing #741 as its an issue with the parser...

  2. FreudGit commented on Nov 22, 2016

    @FreudGit
    Author

    Thanks.

    Also, if I go to the editor, I cannot add a new row.

  3. chrisjlocke commented on Nov 22, 2016

    @chrisjlocke
    Member

    Can you give steps you're doing so I can try to replicate this...

  4. MKleusberg commented on Jan 14, 2017

    @MKleusberg
    Member

    Thanks for reporting this, @FreudGit! You've stumbled upon a nice corner case there. This happens when using an unquoted default value that's a keyword at the same time. In your case that's the DEFAULT NO part of the EMERGENCY column. I think this should be fixed by the latest commit. Can you try tomorrow's nightly build to check if it's working for you as well? 😃

  5. self-assigned this
    on May 3, 2017
  6. MKleusberg commented on May 3, 2017

    @MKleusberg
    Member

    Did you have a chance to test this yet, @FreudGit? 😃

  7. justinclift commented on May 17, 2017

    @justinclift
    Member

    @FreudGit Would you be ok to try out latest nightly build, and let us know if it's fixed for you? In theory, it should have been fixed a while back. 😄

  8. FreudGit commented on May 17, 2017

    @FreudGit
    Author

    Can you please remind me how to get the last nightly? ?

  9. justinclift commented on May 17, 2017

    @justinclift
    Member

    Oops, sorry I should have mentioned it. The latest nightly builds are here:

        https://nightlies.sqlitebrowser.org/latest/

  10. justinclift commented on Aug 20, 2017

    @justinclift
    Member

    Closing due to lack of response. 😦

  11. justinclift commented on Aug 20, 2017

    @justinclift
    Member

    @FreudGit If/when you see this, we just release a new major version (3.10.0) which has the fix for this in it. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions