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

[Chore] Use defer to close rows in examples #1431

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

hayotbisonai
Copy link
Contributor

@hayotbisonai hayotbisonai commented Nov 3, 2024

Summary

  • Updated row.Close() to defer rows.Close()
  • It ensures that row resources are consistently released, even if an error occurs during further processing in the function. Using defer to close resources improves code reliability and readability.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@jkaflik jkaflik changed the title [Chore] Use defer to close rows [Chore] Use defer to close rows in examples Nov 4, 2024
@jkaflik jkaflik merged commit 87098af into ClickHouse:main Nov 4, 2024
12 checks passed
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.

2 participants