Code: Select all
CREATE TABLE "accounts" ("account_id" INTEGER PRIMARY KEY AUTOINCREMENT, "account_name" VARCHAR, "username" VARCHAR, "password" VARCHAR);
Here is the INSERT command text :
Code: Select all
INSERT INTO main.accounts (account_name, username, password) VALUES (:account_name, :username, :password)
I can figure out why it sending *any* value for account_id, or why SQLite won't work with it even if it did. I can execute this SQL directly into the database without a problem and the account_id is assigned as it should be:Column 'account_id' does not allow nulls. Do you want to correct the value ?
Code: Select all
INSERT INTO accounts (account_id,username) VALUES (NULL,'test');