mirror of https://github.com/aldy505/bob.git
test: dialect not supported
This commit is contained in:
parent
1b25a09302
commit
ecefcdb710
|
@ -144,4 +144,12 @@ func TestUpsert(t *testing.T) {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
t.Run("should emit error if dialect not supported", func(t *testing.T) {
|
||||||
|
_, _, err := bob.Upsert("users", 100).Columns("name", "email").Values("James", "james@mail.com").Replace("name", "Thomas").ToSql()
|
||||||
|
if err.Error() != "provided database dialect is not supported" {
|
||||||
|
t.Log(err.Error())
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
Loading…
Reference in New Issue