OSDN Git Service

Don't try to use a constraint name as domain name
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 4 Jul 2011 18:28:05 +0000 (14:28 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 4 Jul 2011 18:33:44 +0000 (14:33 -0400)
commitd665162077862ef9e5886f870bf5ce909fc9342c
treee7af9e869f947d7a454a6f733268ff13fa11302f
parent9f084527a48f7c9ceb995d7bc39da63ae1941a3c
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.
src/backend/commands/typecmds.c