FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix nil pointer for replicated database engine by rabenhorst · Pull Request #212 · AfterShip/clickhouse-sql-parser · GitHub

Fix nil pointer for replicated database engine - #212

Merged
git-hulk merged 1 commit into
AfterShip:masterfrom
rabenhorst:replicated-database-fix
Nov 17, 2025
Merged

Fix nil pointer for replicated database engine#212
git-hulk merged 1 commit into
AfterShip:masterfrom
rabenhorst:replicated-database-fix

Conversation

Copy link
Copy Markdown
Contributor

There is a bug in the parseCreateDatabase which results in nil pointer when setting the engine for a replicated database, because it sets StatementEnd to onCluster.End() after checking if engineExpr is nil.

if engineExpr != nil {
StatementEnd = onCluster.End()
}

In this PR this is fixed and test case for replicated database is added.

git-hulk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@rabenhorst Good catch!

git-hulk merged commit 42fd0bb into AfterShip:master Nov 17, 2025
2 checks passed

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 19428897560

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 50.935%

Totals
Change from base Build 19351970609: 0.03%
Covered Lines: 7842
Relevant Lines: 15396

💛 - Coveralls

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL