Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres module drops value from Output Columns in Options when closing module #9277

Closed
PowerBootWS opened this issue May 2, 2024 · 2 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@PowerBootWS
Copy link

Bug Description

After selecting an output column in the options section of the Postgres module, testing the module to confirm it works, and then closing the module to return to the canvas, the column selected in the Output Columns field resets to no value and causes further module executions to fail.

To Reproduce

  1. Insert and connect Postgres module.
  2. Use 'select' operation, add column and value as a condition in the Select Rows section.
  3. Click Add Option at bottom and select a valid column from the Postgres table.
  4. Exit module (with or without testing the step.
  5. Reopen module and observe that Option value is blank.

Expected behavior

The module should keep the column selected in the output option.

Operating System

Ubuntu 22.04 Docker

n8n Version

1.39.1

Node.js Version

18.19.1

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented May 2, 2024

Hey @PowerBootWS,

That is a good spot, I have created NODE-1326 as the internal dev ticket to get this fixed. As a temporary solution if you set the field to an expression and create an array (example below) that will get you up and running.

{{ ['column_1', 'column_2'] }}

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label May 2, 2024
@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

Hey @PowerBootWS,

Good news, this was fixed in 1.41.0 in this PR: #9324

@Joffcom Joffcom closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants