Repository navigation
Remove support for the {database} macro from the client's prompt - #42508
Merged
alexey-milovidov merged 1 commit intoOct 20, 2022
Merged
Conversation
Member
Author
|
Perfect. |
Member
Maybe it is better to fix this? |
Member
Author
|
@azat Maybe it is better, but there were no tests for this feature, so removing it was easy. |
Member
Thinking about this a little bit more, and I guess yep, it is not that needable, and less code is better. |
zhangjmruc
pushed a commit
to myscale/MyScaleDB
that referenced
this pull request
Feb 5, 2025
1 task done
il9ue
added a commit
to il9ue/ClickHouse
that referenced
this pull request
Apr 15, 2026
The {database} macro was removed in PR ClickHouse#42508 because it read from
static config and did not update after USE statements. This re-adds
the macro by substituting it dynamically from the default_database
member variable, which is updated on USE and --database flag.
Closes ClickHouse#49118
il9ue
added a commit
to il9ue/ClickHouse
that referenced
this pull request
Jul 17, 2026
The {database} macro was removed in PR ClickHouse#42508 because it read from
static config and did not update after USE statements. This re-adds
the macro by substituting it dynamically from the default_database
member variable, which is updated on USE and --database flag.
Closes ClickHouse#49118
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Remove support for the
{database}macro from the client's prompt. It was displayed incorrectly if the database was unspecified and it was not updated onUSEstatements. This closes #25891.