There shouldn''t be anything you can do wrong.
My development machine is broken and I''m currently restoring it (total
windows reinstall), so I can''t check this out right away. I''ll
take a look
as soon as I can.
Curt
-----Original Message-----
From: rubyinstaller-users-bounces@rubyforge.org
[mailto:rubyinstaller-users-bounces@rubyforge.org]On Behalf Of Shashank Date
Sent: Tuesday, July 06, 2004 10:17 PM
To: rubyinstaller-users@rubyforge.org
Subject: [Rubyinstaller-users] ODBC not working for RC3
Chris (and others),
I am on Win XP (Home) using ruby-1.8.2-14_rc3 to connect to MS-Access 2002
using DBD/ODBC. And I get errors for this code snippet:
#----------------------------------------------------------
require ''dbi''
puts VERSION
mdb_file="C:/Northwind.mdb"
conn_str="DBI:ODBC:driver=Microsoft Access Driver
(*.mdb);dbq=#{mdb_file}"
DBI.connect(conn_str) {|dbh| puts dbh.tables }
__END__
#--------------------------------------------------------
1.8.2
C:/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:86:in `initialize'':
wrong
number of arguments (0 for 1) (ArgumentError)
from C:/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:86:in `new''
from C:/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:86:in `connect''
from C:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:584:in `connect''
from C:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:384:in `connect''
from E:/MrMat/tst_dbi_odbc.rb:5
This error goes away if I copy odbc.so from 1.8.1_rc13 to the new install.
Don''t know if this is a bug or something that I have done wrong.
-- shanko
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rubyinstaller-users/attachments/20040707/abd5fdc3/attachment.htm