只使用lru

This commit is contained in:
xiezhaodong 2025-04-24 16:12:39 +08:00
parent 2a08d0e193
commit b0dcec6c81

View File

@ -93,7 +93,7 @@ func TestPreparedStmtFromTransaction(t *testing.T) {
} }
func TestPreparedStmtLruFromTransaction(t *testing.T) { func TestPreparedStmtLruFromTransaction(t *testing.T) {
db, _ := OpenTestConnection(&gorm.Config{PrepareStmt: true, PrepareStmtLruConfig: &gorm.PrepareStmtLruConfig{10, 20 * time.Second, true}}) db, _ := OpenTestConnection(&gorm.Config{PrepareStmt: true, PrepareStmtMaxSize: 10, PrepareStmtTTL: 20 * time.Second})
tx := db.Begin() tx := db.Begin()
defer func() { defer func() {