-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve aliased catalogs (#2793)
closes #2779 Note for Reviewers: There isn't a real good way that I know of to add a test for this, so i will just share the steps I took to manually test it. 1. go to console.glaredb.com 2. create a view in there: `create view "my_view" as select 1;` 3. connect to cloud via local ```sh > just run local > \open glaredb://<USER>:<PASS>@o_xTz3cuY.remote.glaredb.com:6443/quiet_frog Connected to Cloud deployment (TLS enabled): quiet_frog > select * from "quiet_frog"."public"."my_view"; ┌──────────┐ │ Int64(1) │ │ ── │ │ Int64 │ ╞══════════╡ │ 1 │ └──────────┘ ``` it also works the other way around. Previously a create statement `create view quiet_frog.public.my_view_2` would save it to the "default" db, now it properly saves it under the alias name ```sql > create view "quiet_frog"."public"."my_view_2" as select 2; View created > select * from my_view_2; ┌──────────┐ │ Int64(2) │ │ ── │ │ Int64 │ ╞══════════╡ │ 2 │ └──────────┘ > select * from "quiet_frog"."public"."my_view_2"; ┌──────────┐ │ Int64(2) │ │ ── │ │ Int64 │ ╞══════════╡ │ 2 │ └──────────┘ > ```
- Loading branch information
1 parent
f1b558a
commit 94d547d
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters