2009/10/5 Jeremy Evans <[email protected]>

>
> On Oct 5, 12:20 pm, Christer Nilsson <[email protected]>
> wrote:
>  > I've installed Sequel 3.5.0, but still have a problem with the
> following
> > code, third line:
> >
> > ===================
> > require 'sequel'
> > DB = Sequel.connect('do:mysql://user:passw...@localhost/sonar')
> > DB['SELECT 1'].all
> > ===================
> > C:\lab\ruby\logos>ruby app.rb
> >
> C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.5.0/lib/sequel/adapters/do.rb:185:
> > [B
> > UG] Segmentation fault
> > ruby 1.8.6 (2008-08-11) [i386-mswin32]
> >
> > This application has requested the Runtime to terminate it in an unusual
> > way.
> > Please contact the application's support team for more information.
> > ===================
> >
> > dataobjects has version 0.10.0
>
> Sequel is pure ruby code, so if you are getting a segmentation fault,
> you have run either into an interpreter bug or a bug in an extension.
> My guess would be a bug in the do_mysql extension.
>
> You are running Windows, and I'm guessing there isn't nearly as much
> testing there.  I test the MSSQL support on Windows, but that's pretty
> much it.  You could try it on a non-Windows box and see if you have
> more luck there.  An alternative would be using JRuby on Windows and
> using the JDBC adapter to connect to MySQL.
>
> Jeremy
> >
>
Problem solved. The mysql client was too new.

http://forums.mysql.com/read.php?116,279110,280899#msg-280899

Another advice was to use mysql 5.0 instead of 5.1. Didn't test this though.

Christer

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