Remove some extraneous, unused code.
This commit is contained in:
parent
b8f061df68
commit
d061c19c80
|
@ -28,7 +28,7 @@ import {
|
|||
import Sql from "./base/sql"
|
||||
import { MSSQLTablesResponse, MSSQLColumn } from "./base/types"
|
||||
import { getReadableErrorMessage } from "./base/errorMapping"
|
||||
import sqlServer, { IRecordSet, IResult } from "mssql"
|
||||
import sqlServer from "mssql"
|
||||
|
||||
const DEFAULT_SCHEMA = "dbo"
|
||||
|
||||
|
|
|
@ -400,28 +400,6 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
|
|||
}
|
||||
}
|
||||
|
||||
_postProcessJson(json: QueryJson, results: any) {
|
||||
const table = json.meta?.table
|
||||
if (!table) {
|
||||
return results
|
||||
}
|
||||
for (const [name, field] of Object.entries(table.schema)) {
|
||||
if (
|
||||
field.type === FieldType.JSON ||
|
||||
(field.type === FieldType.BB_REFERENCE &&
|
||||
field.subtype === FieldSubtype.USERS)
|
||||
) {
|
||||
const fullName = `${table.name}.${name}`
|
||||
for (let row of results) {
|
||||
if (typeof row[fullName] === "string") {
|
||||
row[fullName] = JSON.parse(row[fullName])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
||||
async getExternalSchema() {
|
||||
try {
|
||||
const [databaseResult] = await this.internalQuery({
|
||||
|
|
Loading…
Reference in New Issue