- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DecimalSize (0.09 sec)
-
tests/migrate_test.go
} case "salary": if precision, o, _ := columnType.DecimalSize(); (fullSupported || precision != 0) && precision != 2 { t.Fatalf("salary's precision should be 2, but got %v %v", precision, o) } case "birthday": if precision, _, _ := columnType.DecimalSize(); (fullSupported || precision != 0) && precision != 2 {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Aug 20 04:51:17 UTC 2025 - 65.2K bytes - Viewed (0) -
migrator/migrator.go
precision, scale, ok := columnType.DecimalSize() if ok { if !strings.HasPrefix(fullDataType, fmt.Sprintf("%s(%d,%d)", realDataType, precision, scale)) && !strings.HasPrefix(fullDataType, fmt.Sprintf("%s(%d)", realDataType, precision)) { alterColumn = true } } } else { if precision, _, ok := columnType.DecimalSize(); ok && int64(field.Precision) != precision {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Jun 06 02:35:01 UTC 2025 - 29.5K bytes - Viewed (0)