Forum: Ruby on Rails super() inside quote() of database adapters

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Kiriakos Georgiou (Guest)
on 2007-08-01 21:04
(Received via mailing list)
4 days into RoR and I am fixing db adapter bugs, didn't expect
that ;-)  In working to fix a bug in the quote() method of the
sybase_adapter.rb which causes it to incorrectly drop quotes of a
value that goes into a string column if the value is a number, I have
noticed that super() has the quoting of the value correct.

I am very new to RoR and Ruby, it seems to me that
ActiveRecord::ConnectionAdapters::Quoting's quote()
works, and sybase_adapter's quote() is screwing things up.  But I am
confused as to how both get called.  Can someone explain?

thanks,
Kiriakos
This topic is locked and can not be replied to.