Open CodingDoug opened 1 year ago
Run the following SQL, noting the UNIQUE:
UNIQUE
CREATE TABLE example_gid_counts ( gid TEXT UNIQUE NOT NULL, row_count INTEGER NOT NULL );
Then run .dump:
CREATE TABLE example_gid_counts ( gid TEXT UNIQUE NOT NULL, row_count INTEGER NOT NULL ); NULL
Note the extra trailing NULL in the output, which causes problems when loaded back into a database.
NULL
Without UNIQUE it works as expected:
CREATE TABLE example_gid_counts ( gid TEXT NOT NULL, row_count INTEGER NOT NULL );
.dump:
Run the following SQL, noting the
UNIQUE
:Then run .dump:
Note the extra trailing
NULL
in the output, which causes problems when loaded back into a database.Without
UNIQUE
it works as expected:.dump: