Skip to content

Misleading answer to a delete query #717

Description

@izmalk

Description

If we send a valid delete query through studio it will say "Delete query successfully deleted things from the database." even if nothing has been deleted.

Environment

  1. TypeDB version: 2.14.3
  2. OS of TypeDB server: 12.6.3
  3. Studio version: 2.14.2
  4. OS of Studio: 12.6.3
  5. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Send a delete query with impossible pattern to match (so it can't delete a thing)
  2. It says it deleted something

Expected Output

"Delete query was unable to match any thing to delete from the database."

Actual Output

## Running> Delete query:
match
$p isa person,
    has full-name "1111111NO_NAME",
    has email $email;
delete
$p has $email;

## Result> Delete query successfully deleted things from the database.

Additional information

The cake is a lie! (c)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions