Put things back how they were.

This commit is contained in:
Sam Rose 2024-11-25 17:53:58 +00:00
parent c3b2c2e1c7
commit 7138c02f27
No known key found for this signature in database
2 changed files with 11 additions and 13 deletions

View File

@ -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() {

View File

@ -3549,7 +3549,7 @@ if (descriptions.length) {
_id: "%5B'1'%5D",
_rev: "rev",
id: "1",
related: [
many: [
{
_id: "%5B'1'%5D",
primaryDisplay: 1,