Hi
I am using rails2.2.2 with mysql 5.1. I have a text field 'EmailBody'.
And when I try to store data with size 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. Adapter is in linux gem mysql (2.8.1) In windows mysql (2.8.1 x86-mingw32) Please help
The error message I am getting is
Mysql::Error: Data too long for column 'EmailBody' at row 1: INSERT INTO `email_messages` (`EmailIndex`, `EmailBody`, `addressed_to`, `EmailTo`, `updated_at`, `EmailFrom`, `EmailCC`, `EmaiSubject`, `statusId`, `EmaiBCC`, `Note`, `item_code`, `emailDate`, `created_at`) VALUES('MESSAGE-ID: <2141.24118.QM@B95.MAIL.IN.YAHOO.COM>', 'HERE I HAVE ENTERED A VERY LARGE TEXT MORE THAN SAY, 65560 IN LENGTH ', NULL, 'mytest@gmail.com', '2011-01-13 06:20:07', 'mytest@yahoo.com', '', 'test', 1, '', NULL, NULL, '2011-01-13 06:19:44', '2011-01-13 06:20:07')
Above originally i have entered a very large text for EmailBody. To simplify the post I am not entering complete data here
Thanks in advance
I am using rails2.2.2 with mysql 5.1. I have a text field 'EmailBody'.
And when I try to store data with size 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. Adapter is in linux gem mysql (2.8.1) In windows mysql (2.8.1 x86-mingw32) Please help
The error message I am getting is
Mysql::Error: Data too long for column 'EmailBody' at row 1: INSERT INTO `email_messages` (`EmailIndex`, `EmailBody`, `addressed_to`, `EmailTo`, `updated_at`, `EmailFrom`, `EmailCC`, `EmaiSubject`, `statusId`, `EmaiBCC`, `Note`, `item_code`, `emailDate`, `created_at`) VALUES('MESSAGE-ID: <2141.24118.QM@B95.MAIL.IN.YAHOO.COM>', 'HERE I HAVE ENTERED A VERY LARGE TEXT MORE THAN SAY, 65560 IN LENGTH ', NULL, 'mytest@gmail.com', '2011-01-13 06:20:07', 'mytest@yahoo.com', '', 'test', 1, '', NULL, NULL, '2011-01-13 06:19:44', '2011-01-13 06:20:07')
Above originally i have entered a very large text for EmailBody. To simplify the post I am not entering complete data here
Thanks in advance