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
strmangle

View file

@ -313,17 +313,6 @@ func WhereClause(start int, cols []string) string {
return buf.String()
}
// DriverUsesLastInsertID returns whether the database driver supports the
// sql.Result interface.
func DriverUsesLastInsertID(driverName string) bool {
switch driverName {
case "postgres":
return false
default:
return true
}
}
// Substring returns a substring of str starting at index start and going
// to end-1.
func Substring(start, end int, str string) string {