Skip to content

Commit 5c89099

Browse files
committed
Add test case for the combination of NOT and AND ops.
1 parent 976c51d commit 5c89099

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/knowledge/query_sql_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ WHERE a0.type = 'ip'`,
4040
Cypher: "MATCH (n) WHERE NOT n.value = 'prod' RETURN n",
4141
SQL: "SELECT a0.id, a0.value, a0.type FROM assets a0\nWHERE NOT a0.value = 'prod'",
4242
},
43+
QueryCase{
44+
Cypher: "MATCH (n) WHERE NOT n.value = 'prod' AND n.value = 'preprod' RETURN n",
45+
SQL: "SELECT a0.id, a0.value, a0.type FROM assets a0\nWHERE NOT a0.value = 'prod' AND a0.value = 'preprod'",
46+
},
4347
QueryCase{
4448
Cypher: "MATCH (n) WHERE n.value STARTS WITH 'prod' RETURN n",
4549
SQL: "SELECT a0.id, a0.value, a0.type FROM assets a0\nWHERE a0.value LIKE 'prod%'",

0 commit comments

Comments
 (0)