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

Outline Navigator does not get updated after 'ALTER TABLE' #16

Open
vanHoesel opened this issue Aug 30, 2018 · 1 comment
Open

Outline Navigator does not get updated after 'ALTER TABLE' #16

vanHoesel opened this issue Aug 30, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@vanHoesel
Copy link

The following works fine when running this query inside the query-editor:

BEGIN;
    /* my_new_column.sql */

    ALTER TABLE foo_table
        ADD COLUMN IF NOT EXISTS bar_column
            BOOLEAN;

COMMIT;

Dubble clicking on "Columns" in the "Outline Navigator" does show the newly created column in the Results Table. However, it does not appear underneath the "Columns" in the navigator.

Or maybe I should call the issue "Auto Refresh" ... without having an entire redraw of the navigator, but only an insert/removal of displayed lines.

@marcprux marcprux added the enhancement New feature or request label Sep 17, 2018
@marcprux
Copy link
Member

This would be a nice improvement. Currently, Splice doesn't parse any of the SQL (aside from minimal parsing for syntax highlighting), and so it doesn't know when a statement is altering the schema. We could invalidate the entire client-side cache whenever a statement is executed that looks like it updated the schema, but this would slow things down, especially for Oracle where schema metadata introspection in especially slow.

We'll think about good ways to implement this, though. Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants