To follow up, I turned on query logging in the database and it looks like when the code runs in the controller, it's trying to do an insert for all of the columns in the table and not just the ones I specified in the db.table.insert(). Any suggestions as to where I can track down what's going on here?
On Mon, Mar 7, 2011 at 8:27 PM, Michael Barrow <mich...@barrow.me> wrote: > I'm running v1.91.6 and I try out a simple db.*table*.insert in the shell > from the admin application and it works just fine. However, when the exact > same code is in one of my controllers, an exception is generated because > web2py is trying to cram some hunk of data into a column that's only 512 > bytes. > > Thoughts? > > -- > Michael Barrow > michael at barrow dot me > +1 (408) 782-4249 > > -- Michael Barrow michael at barrow dot me +1 (408) 782-4249