]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix docs typo
authorFederico Caselli <cfederico87@gmail.com>
Mon, 24 Feb 2025 11:27:50 +0000 (12:27 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 24 Feb 2025 11:28:58 +0000 (12:28 +0100)
Fixes: #12371
Change-Id: I86e6e34d407223d66b2cbcb21ec10dc292676449
(cherry picked from commit 15b1e14db21d2fa0bbc7b68e80883efb6334ad30)

lib/sqlalchemy/sql/schema.py

index 8daa8864d2fd2e40cfb72a2d06d151180432d8b5..a6c24ce618dd33af56c02a0e2982a24bb38087f9 100644 (file)
@@ -2839,7 +2839,7 @@ class ForeignKey(DialectKWArgs, SchemaItem):
 
         :param ondelete: Optional string. If set, emit ON DELETE <value> when
             issuing DDL for this constraint. Typical values include CASCADE,
-            DELETE and RESTRICT.
+            SET NULL and RESTRICT.
 
         :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
             DEFERRABLE when issuing DDL for this constraint.
@@ -4628,7 +4628,7 @@ class ForeignKeyConstraint(ColumnCollectionConstraint):
 
         :param ondelete: Optional string. If set, emit ON DELETE <value> when
           issuing DDL for this constraint. Typical values include CASCADE,
-          DELETE and RESTRICT.
+          SET NULL and RESTRICT.
 
         :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
           DEFERRABLE when issuing DDL for this constraint.