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

Check for optional field presence before using them #47

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

elefeint
Copy link
Contributor

I actually had tests for the hard-delete scenario, but the thing with invalid memory access is that it's invalid in different ways...

This is likely what's causing the segfault for fivetran_log and github connectors.

@elefeint elefeint requested a review from hrl20 August 16, 2024 14:24
@elefeint elefeint requested a review from awitten1 August 16, 2024 15:54
@@ -15,6 +15,10 @@ static constexpr const char *const CONFIG_TEST_NAME_AUTHENTICATE =
static constexpr const char *const CONFIG_TEST_NAME_CSV_BLOCK_SIZE =
"test_csv_block_size";

static const int DUCKDB_DEFAULT_PRECISION = 18;

static const int DUCKDB_DEFAULT_SCALE = 3;

Choose a reason for hiding this comment

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

Nit: this should probably be in the cpp file. Otherwise we'll actually have multiple copies of these constants in every cpp file that includes this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

won't #pragma once prevent that?

Copy link

@awitten1 awitten1 left a comment

Choose a reason for hiding this comment

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

Left one comment but LGTM other than that!

@elefeint elefeint merged commit 0dad35f into main Aug 16, 2024
1 check passed
@elefeint elefeint deleted the protect_optional_fields branch August 16, 2024 16:54
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