Forum: Ruby on Rails REPLACE INTO with Active Record

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1ed4bbef573bfc014d32356d53103ca2?d=identicon&s=25 phil swenson (Guest)
on 2006-01-13 04:02
Is there any support for MySQL's REPLACE INTO syntax using ActiveRecord?

The only way I'm aware of to take advantage of this feature is to use
ActiveRecord.connection.execute.

thanks,
phil
Cee0292fffa691f1fb320d5400200e99?d=identicon&s=25 Marcel Molina Jr. (Guest)
on 2006-01-13 04:22
(Received via mailing list)
On Fri, Jan 13, 2006 at 04:02:28AM +0100, phil swenson wrote:
> Is there any support for MySQL's REPLACE INTO syntax using ActiveRecord?
>
> The only way I'm aware of to take advantage of this feature is to use
> ActiveRecord.connection.execute.

REPLACE INTO is not supported in ActiveRecord's MySQL adapter.

marcel
This topic is locked and can not be replied to.