mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:53:10 +08:00
Remove support for Google Spanner database. (#105846)
* Remove support for Google Spanner database.
This commit is contained in:
@ -15,8 +15,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/util/xorm/core"
|
||||
"xorm.io/builder"
|
||||
|
||||
"github.com/grafana/grafana/pkg/util/xorm/core"
|
||||
)
|
||||
|
||||
// ErrNoElementsOnSlice represents an error there is no element when insert
|
||||
@ -422,10 +423,6 @@ func (session *Session) innerInsert(bean any) (int64, error) {
|
||||
buf.WriteString(" RETURNING " + session.engine.Quote(table.AutoIncrement))
|
||||
}
|
||||
|
||||
if len(table.AutoIncrement) > 0 && session.engine.dialect.DBType() == "spanner" {
|
||||
buf.WriteString(" THEN RETURN " + session.engine.Quote(table.AutoIncrement))
|
||||
}
|
||||
|
||||
sqlStr := buf.String()
|
||||
args = buf.Args()
|
||||
|
||||
|
Reference in New Issue
Block a user