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 " : ","
|
const separator = this.client === SqlClient.ORACLE ? " VALUE " : ","
|
||||||
let identifier = this.rawQuotedIdentifier(tableField)
|
let identifier = this.rawQuotedIdentifier(tableField)
|
||||||
if (schema.type === FieldType.BIGINT) {
|
// if (schema.type === FieldType.BIGINT) {
|
||||||
identifier = this.castIntToString(identifier)
|
// identifier = this.castIntToString(identifier)
|
||||||
} else if (schema.type === FieldType.LINK) {
|
// } else if (schema.type === FieldType.LINK) {
|
||||||
const otherTable = this.query.meta.tables![schema.tableId]
|
// const otherTable = this.query.meta.tables![schema.tableId]
|
||||||
const otherField = otherTable.schema[schema.fieldName]
|
// const otherField = otherTable.schema[schema.fieldName]
|
||||||
if (otherField.type === FieldType.BIGINT) {
|
// if (otherField.type === FieldType.BIGINT) {
|
||||||
identifier = this.castIntToString(identifier)
|
// identifier = this.castIntToString(identifier)
|
||||||
}
|
// }
|
||||||
} else if (schema.autocolumn && schema.autoReason === "foreign_key")
|
// }
|
||||||
return this.knex
|
return this.knex.raw(`?${separator}??`, [unaliased, identifier]).toString()
|
||||||
.raw(`?${separator}??`, [unaliased, identifier])
|
|
||||||
.toString()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
maxFunctionParameters() {
|
maxFunctionParameters() {
|
||||||
|
|
|
@ -3549,7 +3549,7 @@ if (descriptions.length) {
|
||||||
_id: "%5B'1'%5D",
|
_id: "%5B'1'%5D",
|
||||||
_rev: "rev",
|
_rev: "rev",
|
||||||
id: "1",
|
id: "1",
|
||||||
related: [
|
many: [
|
||||||
{
|
{
|
||||||
_id: "%5B'1'%5D",
|
_id: "%5B'1'%5D",
|
||||||
primaryDisplay: 1,
|
primaryDisplay: 1,
|
||||||
|
|
Loading…
Reference in New Issue