on dev help sign in
Correct alias constraint on createDomain; fixes #142
commit2de32fba42abf0a4e4261c72ccb3c33e95d05cdc authorChristopher League <league@contrapunctus.net> dateWed 21 Aug 2019, 11:30 (7 years ago) parentc135984
1 file changed+1−1
squeal-postgresql/src/Squeal/PostgreSQL/Definition.hs+1−1
squeal-postgresql/src/Squeal/PostgreSQL/Definition.hs+1−1
@@ -1034,7 +1034,7 @@ createDomain
10341034 => QualifiedAlias sch dom
10351035 -> (forall nullity. TypeExpression schemas (nullity ty))
10361036 -> (forall tab. Condition '[] '[] 'Ungrouped schemas '[] '[tab ::: '["value" ::: 'Null ty]])
1037− -> Definition schemas (Alter sch (Create alias ('Typedef ty) schema) schemas)
1037+ -> Definition schemas (Alter sch (Create dom ('Typedef ty) schema) schemas)
10381038createDomain dom ty condition =
10391039 UnsafeDefinition $ "CREATE DOMAIN" <+> renderSQL dom
10401040 <+> "AS" <+> renderTypeExpression ty