1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-11-29 23:08:18 +02:00

On delete plan, delete the query too

This commit is contained in:
Hubert depesz Lubaczewski
2020-07-31 08:37:44 +02:00
parent 55be9d33bf
commit b36cefb716

View File

@@ -317,7 +317,7 @@ sub delete_plan {
my $self = shift;
my ( $plan_id, $delete_key ) = @_;
my @row = $self->dbh->selectrow_array(
'UPDATE plans SET plan = ?, title = ?, is_deleted = true, delete_key = NULL WHERE id = ? and delete_key = ? RETURNING 1',
'UPDATE plans SET plan = ?, title = ?, is_deleted = true, delete_key = NULL, query = NULL WHERE id = ? and delete_key = ? RETURNING 1',
undef,
'',
'This plan has been deleted.',