On Dec 12, 12:56 am, dave lilley <[email protected]> wrote: > The thing is that for my testing (on linux) i was connecting to a local > mysql server to get everything running right then I wanted to connect to the > production server without having to comment / uncomment lines so put in a > simple if test stement to swap between local or the remote. > > this works under linux but it's not for windows and I'm wanting to move > unfortunately everything to windows. > > if you look at the commented mysql connection line immediately below the > remote Sequel connection line it worked. > I coud dump Sequel but I don't as i want it's connection pools and well I've > gotten used to it's syntax :). > > if I use you're suggested connection of *...@db = Sequel.connect(...)* then I > get this error... > > C:\monitoring screen>ruby -rubygems sequel1.rb > in DB connection initialize > in remote side > C:/Ruby187/lib/ruby/gems/1.8/gems/sequel-3.18.0/lib/sequel/adapters/mysql.rb:343 > : [BUG] Segmentation fault > ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. > > I don't know if this raises a problem with the Sequel gem or the ruby 1.8.7 > rubyinstaller. > > I will now run off and post/logde a bug with the rubyinstaller folks.
My guess is that is a bug in the mysql gem's C code. Sequel is pure ruby code, so it should never segfault. The reason that the Sequel file is showing up is probably because it is the last ruby line executed. I'm guessing it is segfaulting in the mysql fetch_fields method (which is written in C). You could try the mysql2 adapter, or the jdbc adapter with jruby. Jeremy -- 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.
