Ok, I narrowed down that error I got from above to this change:
Index: lib/sequel/adapters/odbc.rb
===================================================================
--- lib/sequel/adapters/odbc.rb (.../trunk) (revision 564)
+++ lib/sequel/adapters/odbc.rb (.../tags/0.4.1.1) (revision 564)
@@ -2,7 +2,7 @@
require File.join(File.dirname(__FILE__), '../../sequel')
end
-# require 'odbc'
+require 'odbc'
So, I uncommented that out and that worked for that part. Now, I
noticed that I'm getting the TypeError again.
TypeError: can't convert String into Hash
from /Library/Ruby/Gems/1.8/gems/sequel-0.4.1.1/lib/sequel/
adapters/../../sequel/dataset/sql.rb:363:in `merge'
I realized that I had a patch in there that you sent me before to work
around that. Perhaps you can review it again and commit that to
trunk? Here it is:
class Sequel::ODBC::Dataset
def fetch_rows(sql, &block)
@db.synchronize do
s = @db.execute sql
begin
@columns = s.columns(true).map {|c| c.name.to_sym}
rows = s.fetch_all
rows.each {|row| yield hash_row(row)}
ensure
s.drop unless s.nil? rescue nil
end
end
self
end
end
When I apply that patch ODBC works again for me. Now, I'm going to
test the mssql adapter. I'll report back in another message.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---