Skip to content

Commit

Permalink
Merge pull request #363 from /issues/362
Browse files Browse the repository at this point in the history
`Delete::many()` with `TableRef`
  • Loading branch information
tyt2y3 authored Dec 9, 2021
2 parents 871a5e8 + 1aea3f6 commit 18ed683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
QueryFilter, QueryTrait,
};
use core::marker::PhantomData;
use sea_query::{DeleteStatement, IntoIden};
use sea_query::DeleteStatement;

/// Defines the structure for a delete operation
#[derive(Clone, Debug)]
Expand Down Expand Up @@ -94,7 +94,7 @@ impl Delete {
{
DeleteMany {
query: DeleteStatement::new()
.from_table(entity.into_iden())
.from_table(entity.table_ref())
.to_owned(),
entity: PhantomData,
}
Expand Down

0 comments on commit 18ed683

Please sign in to comment.