On 13 January 2011 06:44, Tom Mac <li...@ruby-forum.com> wrote: > Hi > I am using rails2.2.2 with mysql5.1. I have a text field 'EmailBody'. > And when I try to store data more than 65536 (Say for example 65550) in > linux it works properly by truncating it to 65536 characters and save > successfully to table. But when I test this same application on a > windows machine I get the error ActiveRecord::StatementInvalid. I am > attaching the error I am getting on a windows machine. Is it a adapter > prblem. Please help
I don't know the cause of the problem (possibly a bug or inconsistency in the adaptor as you suggest), but in terms of getting your application running can you not just truncate the string to a valid length before saving the record? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.