From 2b87a8ba32ff1b05b50209de2729b7b77e859b93 Mon Sep 17 00:00:00 2001 From: Josh <43808099+josh-codes@users.noreply.github.com> Date: Mon, 15 Nov 2021 17:10:02 +0800 Subject: [PATCH] Pass the argument `entity.table_ref()` instead of just `entity`. --- src/schema/entity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema/entity.rs b/src/schema/entity.rs index 8b0ad144..58b168de 100644 --- a/src/schema/entity.rs +++ b/src/schema/entity.rs @@ -165,7 +165,7 @@ where ); } - stmt.table(entity).take() + stmt.table(entity.table_ref()).take() } #[cfg(test)]