try using the DDL() construct instead. I dont think Index() supports
that syntax.
On Jan 15, 2009, at 3:10 PM, KevinTran wrote:
>
> I have a quick question. I am trying to make an index for my table in
> MySQL. I have the line below:
>
> Index('index_table_on_field', table.c.field)
>
> I want to specify a length as in the SQL:
>
> KEY `index_table_on_field` (`field`(255))
>
> Where do I enter the value 255 in the SQLAlchemy syntax?
>
> Thanks and I hope my question makes sense.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---