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');