Hi John,

Yes, I think it is safe to use "boolean" for "trusted" attribute. It
will work fine with activerecord and oracle.

Besides, I would rename attributes "from" and "to" to something else
like "tfrom" and "tto" because I found that activerecord with jdbc
adapter (Jruby) fails with such attribute names. Here is the error:

ActiveRecord::ActiveRecordError: ORA-00904: : identificador no válido
(ActiveRecord::StatementInvalid)


Best regards
//Gonzalo





On May 5, 4:12 pm, John Mettraux <[email protected]> wrote:
> On Tue, May 5, 2009 at 10:18 PM, Gonzalo Suarez
>
> <[email protected]> wrote:
>
> > I've just tested this with ruby and activerecord (adapter:
> > oracle_enhanced) and it works great too. Even attributes "from" and
> > "to" worked well (I did not have to rename them). Oracle description
> > shows the following:
>
> > SQL> desc hosts;
> >  Name                                      Null?    Type
> >  ----------------------------------------- -------- 
> > ----------------------------
> >  ID                                        NOT NULL NUMBER(38)
> >  IP                                                 VARCHAR2(255)
> >  TRUSTED                                            NUMBER(1)
> >  from                                               VARCHAR2(255)
> >  to                                                 VARCHAR2(255)
>
> Hello Gonzalo,
>
> so if I understand correctly, I can use "boolean" for "trusted" ? And
> it's the only change, is that right ?
>
> --
> John Mettraux   -  http://jmettraux.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to