From c1ebf04f77c23211b6839db6eccb53ea179caeb4 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 17 Jul 2019 08:42:29 +0000 Subject: [PATCH] PostreSQL: DUAL_UNIQUE constraint name fixed to allow more of them git-svn-id: svn://ultimatepp.org/upp/trunk@13496 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/PostgreSQL/PostgreSQLSchema.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/PostgreSQL/PostgreSQLSchema.h b/uppsrc/PostgreSQL/PostgreSQLSchema.h index 405976dda..900a0a41c 100644 --- a/uppsrc/PostgreSQL/PostgreSQLSchema.h +++ b/uppsrc/PostgreSQL/PostgreSQLSchema.h @@ -112,9 +112,9 @@ "(" #k1 ", " #k2 ");",\ "alter table @t drop constraint DK_@t;") -#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("alter table @t add constraint DQ_@t unique "\ +#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("alter table @t add constraint DQ_@t$" #k1 "$" #k2 " unique "\ "(" #k1 ", " #k2 ");",\ - "alter table @t drop constraint DQ_@t;") + "alter table @t drop constraint DQ_@t$" #k1 "$" #k2 ";") #define SQLCHECK(name, chk) ATTRIBUTE("alter table @t add constraint CHK_@t$" #name " check "\ "(" chk ");",\