Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 12, 2024
1 parent 4deafce commit 089e121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/mssql/dialect/dialect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ func TestMSSQLDialect_BuildDropColumnQuery(t *testing.T) {

func TestMSSQLDialect_BuildIsNotToastValueExpression(t *testing.T) {
assert.Equal(t,
`COALESCE(tbl."bar", '') != '__debezium_unavailable_value'`,
`COALESCE(tbl."bar", '') NOT LIKE '%__debezium_unavailable_value%'`,
MSSQLDialect{}.BuildIsNotToastValueExpression("tbl", columns.NewColumn("bar", typing.Invalid)),
)
assert.Equal(t,
`COALESCE(tbl."foo", {}) != {'key': '__debezium_unavailable_value'}`,
`COALESCE(tbl."foo", '') NOT LIKE '%__debezium_unavailable_value%'`,
MSSQLDialect{}.BuildIsNotToastValueExpression("tbl", columns.NewColumn("foo", typing.Struct)),
)
}
Expand Down

0 comments on commit 089e121

Please sign in to comment.