SQLite3::SQLException: id may not be null

I am getting the following error using sqlite3. If I ran the same query
directly in sqlite3 client, the data is saved without error. Same is
happening for every table during inserts.

SQLite3::SQLException: sessions.id may not be NULL: INSERT INTO sessions
(“updated_at”, “session_id”, “data”) VALUES(‘2009-09-30 02:28:45’,
log' ./script/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:154:inexecute’
catch_schema_changes' ./script/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:154:inexecute’
insert' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:1862:increate_without_callbacks’


On Wed, Sep 30, 2009 at 2:16 PM, John M.
[email protected] wrote:


If you bump you should include the original question. Peeps reading
your post as list-serve email are clueless otherwise.

Greg D.

I’d say there’s probably something wrong with your session table
schema - is id declared as an autoincrement field?

–Matt J.

On Sep 29, 10:34 pm, John M. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs