From: Charles Johnson Date: 2009-12-10T04:04:04+09:00 Subject: Re: Mysql::Error: Data too long for column On Dec 9, 2009, at 12:50 PM, rabarama wrote: > Pleas i need help: > I'm deploying a ror application in a win server (apache + mongrel + > mysql). > A model has a binary field. > > win2003 server > mysql 5.0.45 community ed > ruby 1.8.6 > > When i upload a file (very small) i obtain the "Data Too Long for > column" error. > The same code works perfectly with SQLite. > Where's the problem? > Are you storing session information in the database? If so, one of the columns (the data column IIRC) may not be large enough. This happens with postgres. Cheers-- Charles -- Charles Johnson Advanced Computing Center for Research and Education Vanderbilt University