views:

34

answers:

1

Trying to make a column of type decimal:

Column('cost', DECIMAL)

Erorr, name 'DECIMAL' is not defined.

SqlAlch seems to support decimal, am I missing an import?

BTW, how do I also create a longtext column?

I'm using mysql.

+3  A: 

try

import sqlalchemy.types.DECIMAL as DECIMAL
GWW
duh, ok I was importing the other types. thanks gww
Blankman