mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 03:40:04 -06:00
🎨 Kernel API /api/query/sql support || operator https://github.com/siyuan-note/siyuan/issues/9662
This commit is contained in:
@@ -46,7 +46,7 @@ func queryAssetContentRawStmt(stmt string, limit int) (ret []map[string]interfac
|
||||
return
|
||||
}
|
||||
|
||||
noLimit := !strings.Contains(strings.ToLower(stmt), " limit ")
|
||||
noLimit := !containsLimitClause(stmt)
|
||||
var count, errCount int
|
||||
for rows.Next() {
|
||||
columns := make([]interface{}, len(cols))
|
||||
@@ -152,7 +152,7 @@ func selectAssetContentsRawStmt(stmt string, limit int) (ret []*AssetContent) {
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
noLimit := !strings.Contains(strings.ToLower(stmt), " limit ")
|
||||
noLimit := !containsLimitClause(stmt)
|
||||
var count, errCount int
|
||||
for rows.Next() {
|
||||
count++
|
||||
|
||||
Reference in New Issue
Block a user