Don't try to use a constraint name as domain name

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: d665162077862ef9e5886f870bf5ce909fc9342c
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2011-07-04T18:33:44Z
Releases: 9.2.0
Don't try to use a constraint name as domain name

The bug that caused this to be discovered is that the code was trying to
dereference a NULL or ill-defined pointer, as reported by Michael Mueller;
but what it was doing was wrong anyway, per Heikki.

This patch is Heikki's suggested fix.

Files

PathChange+/−
src/backend/commands/typecmds.c modified +2 −2