Older version of mysql support maxlength=255 so that is what web2py
does. I am not sure what the best solution wihtout using different
adapters for different mysql versions.
On Jan 30, 7:16 pm, ionel wrote:
> I forgot to say that I use my own function to define the fields in the
> custom form.
>
Hi,
I can not reproduce this with 1.91.6, which version are you using?.
On Jan 30, 8:16 pm, ionel wrote:
> I forgot to say that I use my own function to define the fields in the
> custom form.
>
> db.py:
> db.define_table('a_table', Field('field_name', 'text', length=600))
>
> controller:
> def
I forgot to say that I use my own function to define the fields in the
custom form.
db.py:
db.define_table('a_table', Field('field_name', 'text', length=600))
controller:
def copyField(field):
return Field(field.name, field.type, length=field.length)
form = SQLFORM.factory(copyField(db.a_tabl
3 matches
Mail list logo