fix(Postgres Node): Upsert does not fetch columns when schema other then public (#6643)

This commit is contained in:
Michael Kret
2023-07-12 13:26:46 +03:00
committed by GitHub
parent 05007d894e
commit aaa9ee3949
12 changed files with 42 additions and 40 deletions

View File

@@ -63,7 +63,7 @@ export async function getMappingColumns(
try {
const columns = await getTableSchema(db, schema, table);
const unique = operation === 'upsert' ? await uniqueColumns(db, table) : [];
const unique = operation === 'upsert' ? await uniqueColumns(db, table, schema) : [];
const enumInfo = await getEnums(db);
const fields = await Promise.all(
columns.map(async (col) => {