# RE: Rails using DB2

**URL:** <https://www.ruby-forum.com/t/re-rails-using-db2/83581>\
**Category:** Rails\
**Created:** [December 30, 2005, 8:56pm UTC](https://www.ruby-forum.com/t/re-rails-using-db2/83581 "2005-12-30T20:56:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [December 30, 2005, 8:56pm UTC](https://www.ruby-forum.com/t/re-rails-using-db2/83581/1 "2005-12-30T20:56:53Z")

</div>

That was the first page I went to. Will go back and give it another  
try. I guess we need to compile the C the adapter our selves.

Thanks for responding.

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [January 1, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/re-rails-using-db2/83581/2 "2006-01-01T18:33:28Z")

</div>

David B. \<DavidB@…\> writes:

> On 12/30/05, David B. \<DavidB@…\> wrote:
> 
> > Hello,
> > 
> > I have been trying to connect a Rails application to DB2 database.  
> > Based on  
> > information found on the web it doesn’t seem to be possible. Can some  
> > confirm the state of DB2 support with Rails?

Hi David,

As of right now DB2 doesn’t work. Or at least doesn’t work without some  
hacking and compromises.  
The good news is it’s being worked on and great progress has been made.  
There are a few people who  
have run into these problems with DB2 but no one ever communicated that  
information to the Rails  
guys, or Maik Schmidt (the DB2 Adapter author) until I started whining  
about it! 🙂

Cheers,  
John

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [February 9, 2006, 11:56pm UTC](https://www.ruby-forum.com/t/re-rails-using-db2/83581/3 "2006-02-09T23:56:01Z")

</div>

Is there an update to the DB2 support options? There’s a DB2 database  
that  
I’d like to talk to.

-Larry

On 1/1/06, John G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Based on  
> > information to the Rails
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Best Regards,  
-Larry  
“Work, work, work…there is no satisfactory alternative.”  
— E.Taft Benson

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [February 10, 2006, 12:08am UTC](https://www.ruby-forum.com/t/re-rails-using-db2/83581/4 "2006-02-10T00:08:31Z")

</div>

On 2/9/06, Larry K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there an update to the DB2 support options?

DB2 has worked for me. There are some issues building under Win32 and  
regardless you need to have installed db2cli interface (see the dbi  
project on rubyforge). I also had issues until I switched to edge  
rails.

The last remaining issue is the current adapter (as of a week or two  
ago), was a little crude in handling different types so it is  
important to do:

row = Table.find 1

and not

row = Table.find ‘1’

Good luck  
pth

p.s. check my blog for some information concerning building db2cli  
under win32 – [http://blog.hurleyhome.com/](http://blog.hurleyhome.com/)
