Content-Length: 259133 | pFad | http://github.com/postgrespro/postgres_cluster/commit/563d575fd73361f6118c13f2816988eba8e1f657

25 Fix creative, but unportable, spelling of "ptr != NULL". · postgrespro/postgres_cluster@563d575 · GitHub
Skip to content

Commit 563d575

Browse files
committed
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.
1 parent a924c32 commit 563d575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13167,7 +13167,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd)
1316713167
tupleDesc = RelationGetDescr(attachRel);
1316813168
attachRel_constr = tupleDesc->constr;
1316913169
existConstraint = NIL;
13170-
if (attachRel_constr > 0)
13170+
if (attachRel_constr != NULL)
1317113171
{
1317213172
int num_check = attachRel_constr->num_check;
1317313173
int i;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/563d575fd73361f6118c13f2816988eba8e1f657

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy