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

Renaming a MySQL/Postgres column clears the data from that column. #4811

Closed
mslourens opened this issue Mar 7, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@mslourens
Copy link
Contributor

Describe the bug
When changing the name of a column in MySQL or Postgres, the data from that column gets cleared.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Data tab
  2. Create a new MySQL or Postgres data connection
  3. Click on a table inside the created data connection
  4. Enter some data (if not already present)
  5. Change the name of one the columns (which contain data)
  6. Notice: the data from the renamed column disappears
  7. Refresh the page to retrieve the data again
  8. Notice: the data is still gone.

Expected behavior
The column should be renamed without changing the content of the column

Screenshots

change.column.name.mysql.mov

Desktop (please complete the following information):

  • OS: MacOS 12.2.1
  • Browser: Vivaldi
  • Version: develop

Additional context
If this is somehow expected behavior, we should add a warning dialog saying that renaming a column will delete all data from that column.

@mike12345567
Copy link
Collaborator

Resolved as of #4834.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants