On Jun 4, 2014, at 9:37 PM, Ryan Kelly <rpkell...@gmail.com> wrote:

> 
> 
> On Wednesday, June 4, 2014 5:11:19 PM UTC-4, Michael Bayer wrote:
> 
> On Jun 4, 2014, at 4:29 PM, Ryan Kelly <rpke...@gmail.com> wrote: 
> 
> > Alembic cannot generate a revision for a table with 255 columns, as the 
> > resulting python code is not valid. Python cannot handle a function call 
> > with more than 255 arguments. At work, we get around this by defining the 
> > columns as a list and unpacking the list with *, e.g.: 
> > 
> > the_columns = [ 
> >      Column("a", Integer), 
> >      ... 
> > ] 
> > 
> > the_table = Table("tbl", metadata, *the_columns) 
> 
> I'd accept a pull request which: 
> 
> 1. checks len(columns) to see if greater than 255 
> 2. if so, wraps the output in *[ <the columns> ] 
> 
> https://github.com/zzzeek/alembic/pull/15


thank you!  you've confirmed the patch works as given?


> 
> -Ryan Kelly
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy-alembic" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy-alembic+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to