Anna-Team / AnnaDB

Developer-first database
Apache License 2.0
56 stars 4 forks source link

Bug: Operator `eq` map with multiple properties #9

Open amaster507 opened 1 year ago

amaster507 commented 1 year ago

Bug Report

What you did

Try to use an operator map like eq with multiple properties:

collection|user|:q[
  find[
    eq{
      value|username|:s|foo|,
      value|username|:s|bar|
    }
  ]
];

collection|user|:q[
  find[
    eq{
      value|username|:s|foo|,
      value|name|:s|bar|
    }
  ]
];

collection|user|:q[
  find[
    eq{
      value|username|:s|bar|
    }
  ]
];

What results

The query was shown as:

image

What was expected

The parsed query to match the queries inputed, or else an error to pop.

If the parsed query shown is a good query, then I expected results. All three queries shown to be parsed as the same query, but only the last query returns a response.

roman-right commented 1 year ago

Good catch! Thank you