Archive for March, 2009

Support for Ruby 1.9.1 and Rails 2.3 is here

The IBM API team just released a juicy update of the ibm_db gem. Version 1.0.5 packs support for ActiveRecord 2.3.2, which is included in the latest, recently released version of Rails, as well as being compatible with Ruby 1.9.1 (you can read this post of mine to learn why this is important). To be more exact, this release enables the driver to work as a ASCII driver when using Ruby 1.9.1, with Unicode support to follow in upcoming releases.

1.0.5 also includes support for the SQLRowcount feature and fixes three bugs: one related to setting the schema on z\OS, another about LOB handling, and finally an edge case about nested queries that were truncated.

To install or update this gem on Windows, simply run:

gem install ibm_db

On Linux, run the following:

sudo -s
export IBM_DB_INCLUDE=/home/db2inst1/
sqllib/include
export IBM_DB_LIB=/home/db2inst1/sqllib/lib
gem install ibm_db



[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

March 26 2009 | Announcements | 2 Comments »

IBM_DB 1.0.2 released

A few days ago the IBM API team released an update for the Ruby driver and Rails adapter for IBM databases. This specific release of the IBM_DB gem (1.0.2) fixes a couple of LOB related bugs that were recently found, and adds support for the timeout parameter for ActiveRecord. In practice this means that you’ll now be able to specify a timeout value within your config/database.yml file, which expresses the amount of time in milliseconds seconds before an attempt to establish a connection with DB2 timeouts.

For example, the development section of said configuration file may look like this:


development:
 adapter: ibm_db
 username: db2inst1
 password: secret
 database: db_name
 schema: myapp
 timeout: 5

In this case, the timeout for each connection was 5 seconds.

We hope you’ll find this release useful. Give it a try, and please report any issues, however unlikely they may be, in the RubyForge forum.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

March 12 2009 | Announcements | 2 Comments »