ruby dbi error

D

Daniel Bretoi

Hi,

Does anyone know what causes this error?

/usr/lib/ruby/1.6/dbi/dbi.rb:318: warning: method redefined; discarding
old fraction

ruby 1.6.8 (2003-07-09) [i386-linux]

[/usr/lib/ruby]$ grep -r "def fraction" *
1.6/dbi/dbi.rb: def fraction() @fraction || 0 end


Other than the warning, the program using "require 'dbi'" executes
as expected.


db

--
 
M

Michael Neumann

Hi,

Does anyone know what causes this error?

/usr/lib/ruby/1.6/dbi/dbi.rb:318: warning: method redefined; discarding
old fraction

ruby 1.6.8 (2003-07-09) [i386-linux]

[/usr/lib/ruby]$ grep -r "def fraction" *
1.6/dbi/dbi.rb: def fraction() @fraction || 0 end


Other than the warning, the program using "require 'dbi'" executes
as expected.

This warning is fixed in CVS -current.

Do you see the "attr_accessor :fraction" call some lines before the
definition of the fraction method in dbi.rb? It's now "attr_writer
:fraction" to avoid exactly this warning.

Regards,

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem with ruby + mysql on windows , now trying dbi 0
DBI and SQLite3 1
ODBC query 0
DBI - error loading driver 2
mysql -- cannot connect (can in Perl) 6
Ruby DBI Help Needed 0
DBI problem 2
DBI 2

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top