Move DriverUsesLastInsertID to correct package
This commit is contained in:
parent
bd92e49ff0
commit
799c35125f
5 changed files with 24 additions and 24 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue