From 375ed280c9484780873765e660b08f7d5429ead3 Mon Sep 17 00:00:00 2001 From: AndriiSherman Date: Thu, 21 Nov 2024 16:22:32 +0200 Subject: [PATCH] Fix wrong resolved conflicts --- drizzle-orm/src/pg-core/query-builders/insert.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drizzle-orm/src/pg-core/query-builders/insert.ts b/drizzle-orm/src/pg-core/query-builders/insert.ts index 18b972102..c1849d4bb 100644 --- a/drizzle-orm/src/pg-core/query-builders/insert.ts +++ b/drizzle-orm/src/pg-core/query-builders/insert.ts @@ -70,9 +70,16 @@ export class PgInsertBuilder< return this; } - values(value: PgInsertValue): PgInsertBase; - values(values: PgInsertValue[]): PgInsertBase; - values(values: PgInsertValue | PgInsertValue[]): PgInsertBase { + overridingSystemValue(): Omit, 'overridingSystemValue'> { + this.overridingSystemValue_ = true; + return this as any; + } + + values(value: PgInsertValue): PgInsertBase; + values(values: PgInsertValue[]): PgInsertBase; + values( + values: PgInsertValue | PgInsertValue[], + ): PgInsertBase { values = Array.isArray(values) ? values : [values]; if (values.length === 0) { throw new Error('values() must be called with at least one value');