2010/5/29 Jeremy Evans <[email protected]>

> On May 29, 6:01 am, Yvon Thoraval <[email protected]> wrote:
> > Hey all,
> >
> > that's my first try of Sequel and i want to know how to debug.
> >
> > my table is really simple :
> >
> > DB = Sequel.sqlite("#{WATCH_DB}")
> >
> >     DB.create_table :applications do
> >       primary_key :id
> >       String  :name
> >       String  :displayed_name
> >       String  :path
> >       String  :bundle_identifier
> >       String  :bundle_version
> >       Time    :modification_date
> >       Time    :timestamp
> >     end
> >
> > and then i populate it with one row only :
> >
> > DB[:applications].insert(applications_fs.first)
> >
> > "applications_fs.first" being a hash with a lot more keys than needed by
> the
> > database.
>
> You can't do that.  You need to use a hash with only the keys that
> match the columns, so you have to filter the hash first.  I don't
> think that's the reason for the error message, though.
>
>
OK, thanks, in fact i've put a filter to present to sequel only the needed
keys and also I've converted all my UTF8-MAC to UTF-8 after that a small
test with only one row works as expected.

but right now i got a "Segmentation fault" due to open4.rb:65...

then i'm stuck, no more by sequel.

best,

Yvon

> --
> 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]<sequel-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/sequel-talk?hl=en.
>
>

-- 
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