yea via the connection() method - you essentially have to grab your
specific adapter [provided] which allows for low level operations - I
did this a long time ago but it should still be the same more or less:

http://www.anyexample.com/webdev/rails/rails_and_sql_queries.xml

brez

On 9/14/07, Tommy Chheng <[EMAIL PROTECTED]> wrote:
> I'm trying to store IP addresses as a 4 byte int in mysql.
>
> More info about the SQL commands at
> http://arjen-lentz.livejournal.com/44290.html
>
> Doing this requires a INET_ATON mysql function in the insert command.
> So is there a way to do custom insert through Rails? I know there is
> a find_by_sql for retrieving models but I couldn't find any
> insert_by_sql ..
>
> Any Ideas?
>
> Thanks,
> tomm
> _______________________________________________
> Sdruby mailing list
> [email protected]
> http://lists.sdruby.com/mailman/listinfo/sdruby
>


-- 
John Bresnik
(619) 228-6254
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to