1
0
Fork 0
forked from forgejo/forgejo

Update github.com/lafriks/xormstore and tidy up mod.go (#8020)

This commit is contained in:
guillep2k 2019-08-28 18:17:14 -03:00 committed by Antoine GIRARD
parent dd3ba9bb6b
commit cedb285e25
20 changed files with 286 additions and 165 deletions

View file

@ -5,6 +5,7 @@ package mssql
import (
"context"
"database/sql/driver"
"errors"
)
var _ driver.Connector = &Connector{}
@ -45,3 +46,7 @@ func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) {
func (c *Connector) Driver() driver.Driver {
return c.driver
}
func (r *Result) LastInsertId() (int64, error) {
return -1, errors.New("LastInsertId is not supported. Please use the OUTPUT clause or add `select ID = convert(bigint, SCOPE_IDENTITY())` to the end of your query.")
}