# Super() inside quote() of database adapters

**URL:** <https://www.ruby-forum.com/t/super-inside-quote-of-database-adapters/110989>\
**Category:** Rails\
**Created:** [August 1, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/super-inside-quote-of-database-adapters/110989 "2007-08-01T19:04:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiriakos\_Georgiou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@Kiriakos\_Georgiou](https://www.ruby-forum.com/u/Kiriakos_Georgiou)\
**Post date:** [August 1, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/super-inside-quote-of-database-adapters/110989/1 "2007-08-01T19:04:57Z")

</div>

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
