Hi,

In this documentation section:

http://www.sqlalchemy.org/docs/metadata.myt#metadata_tables_onupdate

the example goes like this:

-----------
foobar = Table('foobar', meta,
    Column('id', Integer, primary_key=True),
    Column('lala', String(40)),
    ForeignKeyConstraint(['lala'],['hoho.lala'], on_update="CASCADE",
on_delete="CASCADE"))
-----------

"on_update" and "on_delete" should be replaced by "onupdate" and "ondelete".

-Samuel

-------------------------------------------------------------------------
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
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to