mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(Postgres Node): Do not include id column in upsert fields selection if it's not unique (#7975)
## Summary Do not include id column in upsert fields selection if it's not unique Forum: https://community.n8n.io/t/postgres-node-insert-or-update-unique-column-name/32520
This commit is contained in:
parent
393afef174
commit
435392cbfe
|
@ -77,7 +77,7 @@ export async function getMappingColumns(
|
||||||
id: col.column_name,
|
id: col.column_name,
|
||||||
displayName: col.column_name,
|
displayName: col.column_name,
|
||||||
required: col.is_nullable !== 'YES' && !isAutoIncrement,
|
required: col.is_nullable !== 'YES' && !isAutoIncrement,
|
||||||
defaultMatch: col.column_name === 'id',
|
defaultMatch: (col.column_name === 'id' && canBeUsedToMatch) || false,
|
||||||
display: true,
|
display: true,
|
||||||
type,
|
type,
|
||||||
canBeUsedToMatch,
|
canBeUsedToMatch,
|
||||||
|
|
Loading…
Reference in a new issue