On Fri, Jul 21, 2006 at 04:22:06PM +0200, Fran?ois wrote:
> class Country(SQLObject):
> class sqlmeta:
> idName = "iso"
> idType = str
> name = StringCol(notNone = True)
With this SQLObject creates an "iso" column declared as TEXT PRIMARY
KEY. I don't know if MySQL allows this. Please consult the docs. If it
doesn't - please report what column type it must be.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
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