Hi,

I am having this model:

DB = Sequel.sqlite('db/my.db')
class Foo < Sequel::Model(DB)
  set_primary_key :id
end

With an underlying SQLite table: CREATE TABLE foos (id text, name
text, primary key (id) );

Now I do:

Foo.new({:id => "1310031611-712987-77303", :name="abc"})

And SQLite tells me: Sequel::Error: method id= doesn't exist or access
is restricted to it  (Stack trace: http://pastebin.com/5a24PB3z)

What am I doing wrong? Are there any tricks?


Thanks, Philip

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to