On Sep 28, 1:38 pm, Christer Nilsson <[email protected]>
wrote:
> This is my complete program:
> =====================
> require 'sequel'
> DB = Sequel.mysql('sonar', :user => 'user', :password =>
> 'password', :host =>'localhost')
> trees = DB[:tbltree].all
> =====================
MySQL appears to be giving you an error message as soon as you send a
query. Does the following also produce an error?
require 'sequel'
DB = Sequel.mysql('sonar', :user => 'user', :password
=>'password', :host =>'localhost')
DB['SELECT 1'].all
If so, it's likely there is something wrong with the connection setup
(it is odd that MySQL would accept the connection in that case, but
maybe it's a library version mismatch or something else weird). If
not, it's probably something specific to that table, and then more
details about the table would be helpful.
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
-~----------~----~----~----~------~----~------~--~---