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