datagrip Cannot apply changes This table is read only. Cell editor changes cannot be applied

后端 未结 14 2256
北荒
北荒 2020-12-11 00:45

So simply the problem occurs when I want to edit selected rows and then apply it. I\'m sure it worked some time ago. Tried redownload postgres driver in preferences(yeah, I

相关标签:
14条回答
  • 2020-12-11 00:59

    The only thing that actually worked for me, after trying everything above multiple times, was deleting each DB connection and remaking a new one from scratch.

    0 讨论(0)
  • 2020-12-11 01:02

    try this

    1. In the IDE settings (Ctrl+Alt+S), go to Database | General.

    2. Select the Open results in new tab checkbox and click OK.

    3. Re-run your query, and you'll be able to edit and commit the changes in the new tabs.

    0 讨论(0)
  • 2020-12-11 01:03

    The only way I was able to get around this issue was to remove the database connection details for the given connection and recreate them from scratch. While this was happening to me on this specific connection, editing was working fine on other connections, which suggests the problem might be related to specific parameters around the connection in question.

    0 讨论(0)
  • 2020-12-11 01:05

    If your query is using field alias (renaming column instead of using actual column name) , then Datagrip set data results as read only.

    Solution: Rewrite query using field names as in the table and rerun query. Then you will be able to edit the rows.

    Example

    Rewrite this:

    select id,interest_recalcualated_on, interest_recalculation_enabled alias from m_loan;
    

    ..to this:

    select id,interest_recalcualated_on, interest_recalculation_enabled from m_loan;
    
    0 讨论(0)
  • 2020-12-11 01:09

    Nothing worked. I had to update DataGrip from 2017.2 to 2018.3

    I had to open the project by navigating to: /home/user/.DataGrip2017.2/config/projects/my_project/

    All my scripts for this project as I did not want to import the config from the old version of Datagrip. So I'll probably need to downgrade, get the scripts and upgrade again.

    0 讨论(0)
  • 2020-12-11 01:12

    This can be due to default settings, make it sure your your transaction Mode settings are as below

    0 讨论(0)
提交回复
热议问题