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
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?