mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 02:08:36 +00:00
Upgrade xorm to v1.1.0 (#15869)
This commit is contained in:
2
vendor/xorm.io/xorm/internal/statements/cache.go
generated
vendored
2
vendor/xorm.io/xorm/internal/statements/cache.go
generated
vendored
@@ -12,6 +12,7 @@ import (
|
||||
"xorm.io/xorm/schemas"
|
||||
)
|
||||
|
||||
// ConvertIDSQL converts SQL with id
|
||||
func (statement *Statement) ConvertIDSQL(sqlStr string) string {
|
||||
if statement.RefTable != nil {
|
||||
cols := statement.RefTable.PKColumns()
|
||||
@@ -37,6 +38,7 @@ func (statement *Statement) ConvertIDSQL(sqlStr string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// ConvertUpdateSQL converts update SQL
|
||||
func (statement *Statement) ConvertUpdateSQL(sqlStr string) (string, string) {
|
||||
if statement.RefTable == nil || len(statement.RefTable.PrimaryKeys) != 1 {
|
||||
return "", ""
|
||||
|
Reference in New Issue
Block a user