From 5b2282301862387d2a7d05efb51be910688fd5ab Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 29 Jun 2021 23:18:32 +0800 Subject: [PATCH] fix bug that empty query in transaction (#801) --- core/stores/sqlx/tx.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/stores/sqlx/tx.go b/core/stores/sqlx/tx.go index 2fb71f88..97991569 100644 --- a/core/stores/sqlx/tx.go +++ b/core/stores/sqlx/tx.go @@ -30,7 +30,8 @@ func (t txSession) Prepare(q string) (StmtSession, error) { } return statement{ - stmt: stmt, + query: q, + stmt: stmt, }, nil }