- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isTiDB (0.03 sec)
-
tests/sql_builder_test.go
t.Fatalf("Failed to scan age, got %v", err) } if age != 10 { t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age) } table := "gorm.users" if DB.Dialector.Name() != "mysql" || isTiDB() { table = "users" // other databases doesn't support select with `database.table` } DB.Table(table).Where(map[string]interface{}{"name": user2.Name}).Update("age", 20)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 16.7K bytes - Viewed (0)