diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-12-12 11:23:23 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-12-12 11:23:23 -0500 |
commit | 563d575fd73361f6118c13f2816988eba8e1f657 (patch) | |
tree | 72f4d44c355c6c4f8c574c63be76abae4e0557fb /src/backend | |
parent | a924c327e2793d2025b19e18de7917110dc8afd8 (diff) | |
download | postgresql-563d575fd73361f6118c13f2816988eba8e1f657.tar.gz postgresql-563d575fd73361f6118c13f2816988eba8e1f657.zip |
Fix creative, but unportable, spelling of "ptr != NULL".
Or at least I suppose that's what was really meant here. But even
aside from the not-per-project-style use of "0" to mean "NULL",
I doubt it's safe to assume that all valid pointers are > NULL.
Per buildfarm member pademelon.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index c77b216d4f7..5856e729180 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -13167,7 +13167,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd) tupleDesc = RelationGetDescr(attachRel); attachRel_constr = tupleDesc->constr; existConstraint = NIL; - if (attachRel_constr > 0) + if (attachRel_constr != NULL) { int num_check = attachRel_constr->num_check; int i; |