Hello,
When I try to create in MySql using "createTable" the class...

class Country(SQLObject):
    class sqlmeta:
        idName = "iso"
        idType = str
    name = StringCol(notNone = True)

I get an exception :

_mysql_exceptions.OperationalError: (1170, "BLOB/TEXT column 'iso' used 
in key specification without a key length")

How can I fix the lenght of this id ?

François

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to