forked from mirror/gorm
Run only on MySQL and sqlite
This commit is contained in:
parent
741cd60b1b
commit
abe3fa8631
|
@ -1165,6 +1165,10 @@ func TestCountWithQueryOption(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFloatColumnPrecision(t *testing.T) {
|
func TestFloatColumnPrecision(t *testing.T) {
|
||||||
|
if dialect := os.Getenv("GORM_DIALECT"); dialect != "mysql" && dialect != "sqlite" {
|
||||||
|
t.Skip()
|
||||||
|
}
|
||||||
|
|
||||||
type FloatTest struct {
|
type FloatTest struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
FloatValue float64 `gorm:"column:float_value" sql:"type:float(255,5);"`
|
FloatValue float64 `gorm:"column:float_value" sql:"type:float(255,5);"`
|
||||||
|
|
Loading…
Reference in New Issue