Browse Source

fix bug that empty query in transaction (#801)

Kevin Wan 3 năm trước cách đây
mục cha
commit
5b22823018
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      core/stores/sqlx/tx.go

+ 2 - 1
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
 }