]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
onupdate/ondelete fix
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Sep 2006 23:06:54 +0000 (23:06 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Sep 2006 23:06:54 +0000 (23:06 +0000)
doc/build/content/metadata.txt

index d1294b9f1bc74fa5a5185051a1595aa7a6b289b9..bf5d78dce09882d0c2c4e5cb214331a8eb790262 100644 (file)
@@ -226,13 +226,13 @@ Within the `MetaData` collection, this table will be identified by the combinati
 
 #### ON UPDATE and ON DELETE {@name=onupdate}
 
-`ON UPDATE` and `ON DELETE` clauses to a table create are specified within the `ForeignKeyConstraint` object, using the `on_update` and `on_delete` keyword arguments:
+`ON UPDATE` and `ON DELETE` clauses to a table create are specified within the `ForeignKeyConstraint` object, using the `onupdate` and `ondelete` keyword arguments:
 
     {python}
     foobar = Table('foobar', meta,
         Column('id', Integer, primary_key=True),
         Column('lala', String(40)),
-        ForeignKeyConstraint(['lala'],['hoho.lala'], on_update="CASCADE", on_delete="CASCADE"))
+        ForeignKeyConstraint(['lala'],['hoho.lala'], onupdate="CASCADE", ondelete="CASCADE"))
 
 #### Enabling Table / Column Quoting {@name=quoting}