Hi Nick,

I'm working on the patch, sorry for keeping you all waiting.

Thanks
- Jesse

2008/4/21, Nick Sieger <[EMAIL PROTECTED]>:
>
> Nevermind, I see it. JRUBY-2312. Would you mind posting a patch
> against the source code instead of a link to your mail?
>
> Cheers,
> /Nick
>
> On Mon, Apr 21, 2008 at 10:48 AM, Nick Sieger <[EMAIL PROTECTED]>
> wrote:
> > On Mon, Apr 21, 2008 at 4:52 AM, Jesse Hu <[EMAIL PROTECTED]> wrote:
> >  > Hi,
> >  >
> >  > The latest version of ActiveRecord-JDBC is 0.8.  To install AR jdbc
> adapter
> >  > for Oracle, run:
> >  >   jruby -S gem install activerecord-jdbc-adapter
> >  > The date type conversion error is a bug of  AR jdbc adapter for
> oracle. Here
> >  > is a way to solve this problem:
> >  > 1. suppose you installed activerecord-jdbc-adapter 0.8
> >  > 2. open
> >  >
> $JRUBY_HOME/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.8/lib/jdbc_adapter/jdbc_oracle.rb
> >  > 3. and uncomment line 61 and 70.
> >  >
> >  > >
> >  > > line 61: when :datetime then
> >  > JdbcSpec::Oracle::Column.cast_to_date_or_time(value)
> >  > > line 70: return
> >  > "JdbcSpec::Oracle::Column.cast_to_date_or_time(#{var_name})" if type
> ==
> >  > :datetime
> >  >
> >  >
> >  > restart your Rails app, and it should work well.
> >
> >  Is there a patch or related JIRA issue for this? I know there are
> >  several related to Oracle -- just want to make sure we can fix the
> >  need for this workaround.
> >
> >  Thanks,
> >  /Nick
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to