ask them, it's an error on mysql side, not web2py's. BTW: creating
temporary tables at runtime is the dumbest thing since the invention of
ORMs.
On Tuesday, September 23, 2014 9:02:25 AM UTC+2, Richard wrote:
>
> I am hosting my app on python anywhere and get sometimes the following
> error:
>
> <class '_mysql_exceptions.OperationalError'> (1005, "Can't create table
> 'richdijk$imanops03d.form_iv_9cf75329ccbc' (errno: 139)")
> when creating a new table using:
>
> issue_var_fields= [
> Field(
> "d"+str(db[issue_var_table][date_row.id]['iv_date']).replace("-",
> ""),
> issue_var.data_type,
> default=db[issue_var_table][date_row.id
> ]['iv_value'],
> label = str(db[issue_var_table][date_row.id
> ]['iv_date'])
> )
> for date_row in db(db[issue_var_table]).select()
> ]
> db.define_table('form_%s'%issue_var_table, *issue_var_fields)
>
> What may be the cause of this when the error occur? Sometimes the table is
> created without an error.
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.