OSDN Git Service

Add copyObject logic for TruncateStmt and a few other utility-statement
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Apr 2000 00:21:15 +0000 (00:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Apr 2000 00:21:15 +0000 (00:21 +0000)
commitdc070fdea60c4071124c228ca793ac9569190b56
treef91240550def77537253ebfdd389504398785d2c
parent124875e879d43edb2f16962cf4359f68045284fd
Add copyObject logic for TruncateStmt and a few other utility-statement
parse node types.  This allows these statements to be placed in a plpgsql
function.  Also, see to it that statement types not handled by the copy
logic will draw an appropriate elog(ERROR), instead of leaving a null
pointer that will cause coredump later on.  More utility statements could
be added if anyone felt like turning the crank.
src/backend/nodes/copyfuncs.c