Merge branch 'master' into fix/sql-pagination-fixes
This commit is contained in:
commit
47401e26ff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||
"version": "2.29.26",
|
||||
"version": "2.29.27",
|
||||
"npmClient": "yarn",
|
||||
"packages": [
|
||||
"packages/*",
|
||||
|
|
|
@ -43,6 +43,7 @@ import {
|
|||
} from "./filters"
|
||||
import { dataFilters, PROTECTED_INTERNAL_COLUMNS } from "@budibase/shared-core"
|
||||
import { isSearchingByRowID } from "./utils"
|
||||
import tracer from "dd-trace"
|
||||
|
||||
const builder = new sql.Sql(SqlClient.SQL_LITE)
|
||||
const SQLITE_COLUMN_LIMIT = 2000
|
||||
|
@ -232,7 +233,11 @@ async function runSqlQuery(
|
|||
}
|
||||
|
||||
const db = context.getAppDB()
|
||||
|
||||
return await tracer.trace("sqs.runSqlQuery", async span => {
|
||||
span?.addTags({ sql })
|
||||
return await db.sql<Row>(sql, bindings)
|
||||
})
|
||||
}
|
||||
const response = await alias.queryWithAliasing(json, processSQLQuery)
|
||||
if (opts?.countTotalRows) {
|
||||
|
|
Loading…
Reference in New Issue