]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typos in PostgreSQL dialect’s DOMAIN docs (#9601)
authorJens Tröger <jenstroeger@users.noreply.github.com>
Thu, 6 Apr 2023 20:55:33 +0000 (06:55 +1000)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 20:55:33 +0000 (22:55 +0200)
lib/sqlalchemy/dialects/postgresql/named_types.py

index d09f8a25bf3b224c1adb0441637d40e4a842a07e..e2a683e1832a751d03cc0f3806de52d0ac5b0c94 100644 (file)
@@ -374,11 +374,11 @@ class DOMAIN(NamedType, sqltypes.SchemaType):
     A domain is essentially a data type with optional constraints
     that restrict the allowed set of values. E.g.::
 
-        PositiveInt = Domain(
+        PositiveInt = DOMAIN(
             "pos_int", Integer, check="VALUE > 0", not_null=True
         )
 
-        UsPostalCode = Domain(
+        UsPostalCode = DOMAIN(
             "us_postal_code",
             Text,
             check="VALUE ~ '^\d{5}$' OR VALUE ~ '^\d{5}-\d{4}$'"