]> granicus.if.org Git - postgresql/commitdiff
equalAttr() had its strcmp test backwards :-(
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Mar 2000 18:47:43 +0000 (18:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Mar 2000 18:47:43 +0000 (18:47 +0000)
src/backend/nodes/equalfuncs.c

index 6cb9eada0f8a6c937c0578d04da98b66821923de..3101706f8af37830ec9d782b165097b22b51319e 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.63 2000/02/21 18:47:00 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.64 2000/03/01 18:47:43 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -98,7 +98,7 @@ _equalExpr(Expr *a, Expr *b)
 static bool
 _equalAttr(Attr *a, Attr *b)
 {
-       if (!strcmp(a->relname, b->relname))
+       if (strcmp(a->relname, b->relname) != 0)
                return false;
        if (!equal(a->attrs, b->attrs))
                return false;