- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for prepared_stmt_concurrent_close (0.13 sec)
-
tests/prepared_stmt_test.go
// and the only error cause by this is using a closed Stmt or gorm.ErrInvalidDB // and all of the goroutine must got gorm.ErrInvalidDB after database close func TestPreparedStmtConcurrentClose(t *testing.T) { name := "prepared_stmt_concurrent_close" user := *GetUser(name, Config{}) createTx := DB.Session(&gorm.Session{}).Create(&user) if createTx.Error != nil { t.Fatalf("failed to prepare record due to %s, test cannot be continue", createTx.Error)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:02:05 UTC 2024 - 8.5K bytes - Viewed (0)