Skip to content

Conversation

NiclasHaderer
Copy link
Contributor

Having a non-deleted copy constructor allows me to write the following code, which crashes

DuckDB duckdb(nullptr);
Connection con(duckdb);
auto pending = con.PendingQuery("FROM range(1000)");
auto pending2 = *pending;

pending2.Execute(); // Crashes -> Attempting to execute an unsuccessful or closed pending query result

@duckdb-draftbot duckdb-draftbot marked this pull request as draft February 14, 2025 13:33
@NiclasHaderer NiclasHaderer marked this pull request as ready for review February 14, 2025 13:35
@Mytherin Mytherin merged commit dfdd6a5 into duckdb:v1.2-histrionicus Feb 16, 2025
50 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 7, 2025
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