Skip to content

Conversation

mlafeldt
Copy link
Member

@mlafeldt mlafeldt commented Feb 15, 2025

Errors are only reported if has_error is true, which is only set for get_api but not for get_database.

// Throw any error that the extension might have encountered
if (load_state.has_error) {
load_state.error_data.Throw("An error was thrown during initialization of the extension '" + extension +
"': ");
}

@mlafeldt
Copy link
Member Author

The failure in LinuxRelease is unrelated: error: https://github.com/boostorg/range/archive/boost-1.86.0.tar.gz: curl failed to download with exit code 92

@Mytherin
Copy link
Collaborator

Thanks for the PR! Looks good - could you perhaps retarget this to v1.2-histrionicus so that it can be included in v1.2.1?

@mlafeldt mlafeldt changed the base branch from main to v1.2-histrionicus February 16, 2025 13:42
@mlafeldt mlafeldt force-pushed the fix-get-database-error-reporting branch from 23e0d8a to a46237b Compare February 16, 2025 13:45
@duckdb-draftbot duckdb-draftbot marked this pull request as draft February 16, 2025 13:46
@mlafeldt mlafeldt marked this pull request as ready for review February 16, 2025 13:46
@mlafeldt
Copy link
Member Author

@Mytherin Of course, done.

@Mytherin Mytherin merged commit 2b87326 into duckdb:v1.2-histrionicus Feb 16, 2025
50 checks passed
@mlafeldt mlafeldt deleted the fix-get-database-error-reporting branch March 6, 2025 08:57
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 7, 2025
Correctly report errors caused by get_database in C extensions (duckdb/duckdb#16253)
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