aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/test_rls_hooks/test_rls_hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/modules/test_rls_hooks/test_rls_hooks.c')
-rw-r--r--src/test/modules/test_rls_hooks/test_rls_hooks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/modules/test_rls_hooks/test_rls_hooks.c b/src/test/modules/test_rls_hooks/test_rls_hooks.c
index 8bf8f764ac3..10379bc59c0 100644
--- a/src/test/modules/test_rls_hooks/test_rls_hooks.c
+++ b/src/test/modules/test_rls_hooks/test_rls_hooks.c
@@ -75,8 +75,8 @@ test_rls_hooks_permissive(CmdType cmdtype, Relation relation)
ParseState *qual_pstate;
RangeTblEntry *rte;
- if (strcmp(RelationGetRelationName(relation), "rls_test_permissive")
- && strcmp(RelationGetRelationName(relation), "rls_test_both"))
+ if (strcmp(RelationGetRelationName(relation), "rls_test_permissive") != 0 &&
+ strcmp(RelationGetRelationName(relation), "rls_test_both") != 0)
return NIL;
qual_pstate = make_parsestate(NULL);
@@ -140,8 +140,8 @@ test_rls_hooks_restrictive(CmdType cmdtype, Relation relation)
RangeTblEntry *rte;
- if (strcmp(RelationGetRelationName(relation), "rls_test_restrictive")
- && strcmp(RelationGetRelationName(relation), "rls_test_both"))
+ if (strcmp(RelationGetRelationName(relation), "rls_test_restrictive") != 0 &&
+ strcmp(RelationGetRelationName(relation), "rls_test_both") != 0)
return NIL;
qual_pstate = make_parsestate(NULL);