Break transformCreateStmt() into multiple routines and make

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f9e6e27c873bcf50fdc20f5a28c5bede66d18f25
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-10-12T00:07:15Z
Releases: 7.2.1
Break transformCreateStmt() into multiple routines and make
transformAlterStmt() use these routines, instead of having lots of
duplicate (not to mention should-have-been-duplicate) code.
Adding a column with a CHECK constraint actually works now,
and the tests to reject unsupported DEFAULT and NOT NULL clauses
actually fire now.  ALTER TABLE ADD PRIMARY KEY works, modulo
having to have created the column(s) NOT NULL already.

Files