Skip to content

Commit

Permalink
added-all
Browse files Browse the repository at this point in the history
  • Loading branch information
mirshahriar committed May 26, 2018
1 parent da5ed55 commit 5c66678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dialect/mysql/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestPostgres_ColumnSignatureOf(t *testing.T) {
}

signature := columnSignatureOf(f)
assert.Equal(t, "NUMERIC(128) PRIMARY KEY NOT NULL UNIQUE", signature)
assert.Equal(t, "DOUBLE(128) PRIMARY KEY NOT NULL UNIQUE", signature)

fType = protod.FieldDescriptorProto_TYPE_INT32
f.FieldDescriptorProto.Type = &fType
Expand Down Expand Up @@ -162,10 +162,10 @@ func TestType2SQLType(t *testing.T) {
Type: &fType,
},
}
assert.Equal(t, type2SQLType(f).Name, Numeric)
assert.Equal(t, type2SQLType(f).Name, Double)

fType = protod.FieldDescriptorProto_TYPE_FLOAT
assert.Equal(t, type2SQLType(f).Name, Numeric)
assert.Equal(t, type2SQLType(f).Name, Double)
fType = protod.FieldDescriptorProto_TYPE_SFIXED32
assert.Equal(t, type2SQLType(f).Name, Int)
fType = protod.FieldDescriptorProto_TYPE_SFIXED64
Expand Down

0 comments on commit 5c66678

Please sign in to comment.