diff options
author | Tom Lane | 2012-06-18 00:16:07 +0000 |
---|---|---|
committer | Tom Lane | 2012-06-18 00:16:44 +0000 |
commit | f5297bdfe4c4a47376c41b96161fb55c2294a0b1 (patch) | |
tree | a16c04a93f38ec3ecde20ed318911b5dc31fcae6 /src/backend/commands/trigger.c | |
parent | bb7520cc26dcd392e3dce294b685b3a0d6dae9e9 (diff) |
Refer to the default foreign key match style as MATCH SIMPLE internally.
Previously we followed the SQL92 wording, "MATCH <unspecified>", but since
SQL99 there's been a less awkward way to refer to the default style.
In addition to the code changes, pg_constraint.confmatchtype now stores
this match style as 's' (SIMPLE) rather than 'u' (UNSPECIFIED). This
doesn't affect pg_dump or psql because they use pg_get_constraintdef()
to reconstruct foreign key definitions. But other client-side code might
examine that column directly, so this change will have to be marked as
an incompatibility in the 9.3 release notes.
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r-- | src/backend/commands/trigger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 4399a274465..57fcfbeefd9 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -805,7 +805,7 @@ ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid) char *constr_name; char *fk_table_name; char *pk_table_name; - char fk_matchtype = FKCONSTR_MATCH_UNSPECIFIED; + char fk_matchtype = FKCONSTR_MATCH_SIMPLE; List *fk_attrs = NIL; List *pk_attrs = NIL; StringInfoData buf; @@ -831,7 +831,7 @@ ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid) if (strcmp(strVal(arg), "FULL") == 0) fk_matchtype = FKCONSTR_MATCH_FULL; else - fk_matchtype = FKCONSTR_MATCH_UNSPECIFIED; + fk_matchtype = FKCONSTR_MATCH_SIMPLE; continue; } if (i % 2) |