Move DriverUsesLastInsertID to correct package

This commit is contained in:
Patrick O'brien 2016-08-14 00:07:22 +10:00
parent bd92e49ff0
commit 799c35125f
5 changed files with 24 additions and 24 deletions

View file

@ -223,3 +223,14 @@ func TestSetRelationships(t *testing.T) {
t.Error("should not be a join table")
}
}
func TestDriverUsesLastInsertID(t *testing.T) {
t.Parallel()
if DriverUsesLastInsertID("postgres") {
t.Error("postgres does not support LastInsertId")
}
if !DriverUsesLastInsertID("mysql") {
t.Error("postgres does support LastInsertId")
}
}