mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 05:40:54 +00:00
[Fix-Issue-3991] Add warn for SQLite Read is invoked isForUpdate=true
This commit is contained in:
parent
8055357576
commit
677d010d86
@ -70,6 +70,9 @@ var _ dbBaser = new(dbBaseSqlite)
|
||||
|
||||
// override base db read for update behavior as SQlite does not support syntax
|
||||
func (d *dbBaseSqlite) Read(q dbQuerier, mi *modelInfo, ind reflect.Value, tz *time.Location, cols []string, isForUpdate bool) error {
|
||||
if isForUpdate {
|
||||
DebugLog.Println("[WARN] SQLite does not support SELECT FOR UPDATE query, isForUpdate param is ignored and always as false to do the work")
|
||||
}
|
||||
return d.dbBase.Read(q, mi, ind, tz, cols, false)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user