It's for mysql. Its stored as VARCHAR in the data base and up to 500 chars but fixing it to text in my db.py model fixed it. I'm guessing there is a built in validator for strings On Apr 11, 2014 4:00 PM, "Derek" <sp1d...@gmail.com> wrote:
> is this mssql or mysql or postgres? i think mysql has a limit of 255 for > string data. it would silently change any lengths longer to 255... > > On Thursday, April 10, 2014 9:52:13 AM UTC-7, LoveWeb2py wrote: >> >> Are there any other suggestions? I've tried everything and I really need >> help with this. >> >> When the table is set to Migrate=True the sql log shows VARCHAR(255) even >> though my actual SQLDatabase shows 499 length and my length on the db model >> is set to length=500 >> >> On Thursday, April 10, 2014 11:05:29 AM UTC-4, 黄祥 wrote: >>> >>> please try to start from simple, create your new web2py application and >>> then put your define table there, after that check your sql.log or test it >>> from appadmin. >>> e.g. >>> *models/db.py* >>> db.define_table('newtable', >>> Field('Name','string'), >>> Field('Comments', string', length=499) ) >>> >>> best regards, >>> stifan >>> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/d8G92qlxSjc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.