Run only on MySQL and sqlite

This commit is contained in:
Emir Beganovic 2019-05-05 11:51:05 +04:00
parent 741cd60b1b
commit abe3fa8631
1 changed files with 4 additions and 0 deletions

View File

@ -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);"`