Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Praveen Devarao
RE: Rails 3.2? [ reply ]  
2012-02-27 05:13
Hi Kirk,

Thanks for the quick limited validation!!

You can apply this same patch to version 2.5.7 of ibm_db too and you should be able to use Rails-3.2.1.

Coming to the Mac issue, I am trying to get hold of a Mac box. As soon as I get access to it I should be able to estimate the effort and keep you updated.

BTW, if you could share more info, if any, on the segfaults on Mac it would be handy for me to begin with. [Share it on the other thread itself]

Thanks

Praveen

By: Kirk Tsouros
RE: Rails 3.2? [ reply ]  
2012-02-27 05:03
Hi Praveen,

Thanks for the quick response! I was able to get past the initial error and things look good so far.

Unfortunately, I will not able to use this yet. I tried this patch in a linux virtual machine. My main development work is done on a Mac.

2.5.9 has issues in my Mac environment. See my other thread in this forum. So I am using 2.5.7 with the bigint patch, currently.

Regarding this thread and Rails 3.2.1, the patch seems to work with my limited testing.

Thanks again!
Kirk

By: Praveen Devarao
RE: Rails 3.2? [ reply ]  
2012-02-27 00:58
Hi Kirk,

The following small change is required in the ibm_db_adapter. Apply the patch below to ibm_db_adapter.rb and you should get going with Rails-3.2

-------------------------------------------------
< ibm_db_adapter modified
> ibm_db_adapter-2.5.9

561,562d560
<
< @visitor = Arel::Visitors::IBM_DB.new self
1886c1884
< col_name.to_s
---
> col_name
2497c2495
< col_name.to_s
---
> col_name
-------------------------------------------------

Let me know how it goes. I will roll this fix out in the next release.

Thanks

Praveen

By: Praveen Devarao
RE: Rails 3.2? [ reply ]  
2012-02-24 13:57
Hi Kirk,

I have not tried Rails-3.2 yet.

I just gave a try now and found that I also hit the same issue. Diagnosed a bit and found that this happens if the schema_migrations table already exists (that is if you are running against a database where Rails has already run once). I tried against a fresh database but hit a error in some other place after the creation of schema_migrations table.

Am looking into this further to check if any changes were made in Rails-3.2.1 that requires changes in the ibm_db_adapter. Will keep you updated.

Thanks

Praveen

By: Kirk Tsouros
Rails 3.2? [ reply ]  
2012-02-24 06:58
Is Rails 3.2 supported? There are some features I'd like to use in rails 3.2 that would be helpful. I've tried with linux (ubuntu 10.04) and db2 v9.7.4 and the mac environment from #1. Using the rails console, the error message I get for any query is:

NoMethodError: undefined method `accept' for nil:NilClass

Top few lines of the stack trace:
gems/ibm_db-2.5.9/lib/active_record/connection_adapters/ibm_db_adapter.rb:617:in `to_sql'
gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:16:in `select_all'
gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
gems/activerecord-3.2.1/lib/active_record/querying.rb:38:in `block in find_by_sql'