Put things back how they were.
This commit is contained in:
parent
c3b2c2e1c7
commit
7138c02f27
|
@ -1210,18 +1210,16 @@ class InternalBuilder {
|
|||
|
||||
const separator = this.client === SqlClient.ORACLE ? " VALUE " : ","
|
||||
let identifier = this.rawQuotedIdentifier(tableField)
|
||||
if (schema.type === FieldType.BIGINT) {
|
||||
identifier = this.castIntToString(identifier)
|
||||
} else if (schema.type === FieldType.LINK) {
|
||||
const otherTable = this.query.meta.tables![schema.tableId]
|
||||
const otherField = otherTable.schema[schema.fieldName]
|
||||
if (otherField.type === FieldType.BIGINT) {
|
||||
identifier = this.castIntToString(identifier)
|
||||
}
|
||||
} else if (schema.autocolumn && schema.autoReason === "foreign_key")
|
||||
return this.knex
|
||||
.raw(`?${separator}??`, [unaliased, identifier])
|
||||
.toString()
|
||||
// if (schema.type === FieldType.BIGINT) {
|
||||
// identifier = this.castIntToString(identifier)
|
||||
// } else if (schema.type === FieldType.LINK) {
|
||||
// const otherTable = this.query.meta.tables![schema.tableId]
|
||||
// const otherField = otherTable.schema[schema.fieldName]
|
||||
// if (otherField.type === FieldType.BIGINT) {
|
||||
// identifier = this.castIntToString(identifier)
|
||||
// }
|
||||
// }
|
||||
return this.knex.raw(`?${separator}??`, [unaliased, identifier]).toString()
|
||||
}
|
||||
|
||||
maxFunctionParameters() {
|
||||
|
|
|
@ -3549,7 +3549,7 @@ if (descriptions.length) {
|
|||
_id: "%5B'1'%5D",
|
||||
_rev: "rev",
|
||||
id: "1",
|
||||
related: [
|
||||
many: [
|
||||
{
|
||||
_id: "%5B'1'%5D",
|
||||
primaryDisplay: 1,
|
||||
|
|
Loading…
Reference in New Issue