This commit is contained in:
Liang Ding 2023-05-04 10:11:29 +08:00
parent 8ae3b354ab
commit a48154ba84
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 91 additions and 8 deletions

View file

@ -21,6 +21,7 @@ import (
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/sql"
"github.com/siyuan-note/siyuan/kernel/util"
)
@ -35,7 +36,7 @@ func SQL(c *gin.Context) {
}
stmt := arg["stmt"].(string)
result, err := sql.Query(stmt)
result, err := sql.Query(stmt, model.Conf.Search.Limit)
if nil != err {
ret.Code = 1
ret.Msg = err.Error()