Skip to content

Commit

Permalink
Merge branch 'oceanbase:main' into modis_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu authored Jun 12, 2024
2 parents 3bf8943 + 044f1e3 commit a988ca1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/autoinc/auto_increment_normal_fill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func TestAuto_NormalFill(t *testing.T) {
)
assert.Equal(t, nil, err)
assert.EqualValues(t, 5, result.Value("c1"))
assert.EqualValues(t, 7, result.Value("c2"))
assert.EqualValues(t, 6, result.Value("c2"))
assert.EqualValues(t, "append", result.Value("c3"))
assert.EqualValues(t, 0, result.Value("c4"))

Expand All @@ -300,7 +300,7 @@ func TestAuto_NormalFill(t *testing.T) {
)
assert.Equal(t, nil, err)
assert.EqualValues(t, 5, result.Value("c1"))
assert.EqualValues(t, 7, result.Value("c2"))
assert.EqualValues(t, 6, result.Value("c2"))
assert.EqualValues(t, "append-exist", result.Value("c3"))
assert.EqualValues(t, 0, result.Value("c4"))
}
4 changes: 2 additions & 2 deletions test/autoinc/auto_increment_normal_not_fill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func TestAuto_NormalNotFill(t *testing.T) {
)
assert.Equal(t, nil, err)
assert.EqualValues(t, 5, result.Value("c1"))
assert.EqualValues(t, 8, result.Value("c2"))
assert.EqualValues(t, 7, result.Value("c2"))
assert.EqualValues(t, "append", result.Value("c3"))
assert.EqualValues(t, 0, result.Value("c4"))

Expand All @@ -283,7 +283,7 @@ func TestAuto_NormalNotFill(t *testing.T) {
)
assert.Equal(t, nil, err)
assert.EqualValues(t, 5, result.Value("c1"))
assert.EqualValues(t, 8, result.Value("c2"))
assert.EqualValues(t, 7, result.Value("c2"))
assert.EqualValues(t, "append-exist", result.Value("c3"))
assert.EqualValues(t, 0, result.Value("c4"))
}
4 changes: 2 additions & 2 deletions test/current_timestamp/current_timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func TestCurrentTimestamp_common(t *testing.T) {
)
assert.Equal(t, nil, err)
assert.EqualValues(t, 3, result.Value("c1"))
assert.EqualValues(t, result.Value("c3"), result.Value("c4"))
assert.NotEqual(t, result.Value("c3"), result.Value("c4"))
assert.EqualValues(t, result.Value("c4"), result.Value("c5"))

// append insert
Expand Down Expand Up @@ -316,7 +316,7 @@ func TestCurrentTimestamp_common(t *testing.T) {
assert.EqualValues(t, 4, result.Value("c1"))
assert.EqualValues(t, 0, result.Value("c2"))
assert.EqualValues(t, "abcefg", result.Value("c6"))
assert.EqualValues(t, result.Value("c3"), result.Value("c4"))
assert.NotEqual(t, result.Value("c3"), result.Value("c4"))
assert.EqualValues(t, result.Value("c4"), result.Value("c5"))
}

Expand Down
2 changes: 1 addition & 1 deletion test/error_message/error_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func TestErrMsg_UpdateVirtualColumnNotSupport(t *testing.T) {
)
assert.NotEqual(t, nil, err)
fmt.Println(err.Error())
expectContainErrMsg := "errCode:-4007, errCodeName:ObNotSupported, errMsg:assign virtual generated column not supported"
expectContainErrMsg := "errCode:-4007, errCodeName:ObNotSupported, errMsg:The specified value for generated column not supported"
assert.EqualValues(t, true, strings.Contains(err.Error(), expectContainErrMsg))
}

Expand Down

0 comments on commit a988ca1

Please sign in to comment.