Skip to content

regression for insert orUpdate with Postgres driver #11440

@yurks

Description

@yurks

Issue description

After releasing #11082 PR the SQL query is generated incorrectly if using schema property for entity

Expected Behavior

..."schemaName"."Category"."name" IS DISTINCT FROM... should be generated

Actual Behavior

..."schemaName.Category"."name" IS DISTINCT FROM... actually generated

Steps to reproduce

set schema property and run .insert().into(Entity).values(values).orUpdate()

My Environment

Dependency Version
Operating System osx 15.4.1 (24E263)
Node.js version 22
Typescript version 5.8.3
TypeORM version 0.3.22

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

No, I don’t have the time, but I can support (using donations) development.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions