Forum: Ruby on Rails Apostophe error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1653d15ff1af2bb56696b45b2bfa3274?d=identicon&s=25 Chris Günther (chris_guenther)
on 2007-06-18 12:02
(Received via mailing list)

I received the following error when updating a field in an
activerecord which contains an apostrophe "'"

ActiveRecord::StatementInvalid (DBI::DatabaseError: Execute
    OLE error code:80040E14 in Microsoft OLE DB Provider for SQL
      Öffnendes Anführungszeichen vor der Zeichenfolge
'70dea99f72a57e4c3c0e35079cd9a4e1de03b4df WHERE [ID] = 957'.

This is primaly caused by a field which contains: "Hugo's housewifes"

Anbyody out there who can give me a tip?

This topic is locked and can not be replied to.