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

Fix return type of AsyncDuckDBConnection.prepare #1925

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

swlynch99
Copy link
Contributor

This looks like it is supposed to return AsyncPreparedStatement<T> but since the type parameter is not provided it actually returns AsyncPreparedStatement<any>. That passes type checking anyway since any is compatible with T but is inconvenient downstream since it doesn't actually use the type parameter.

This looks like it is supposed to return `AsyncPreparedStatement<T>` but
since the type parameter is not provided it actually returns
`AsyncPreparedStatement<any>`, which passes type checking anyway since
`any` is compatible with `T`.
Copy link
Collaborator

@carlopi carlopi left a comment

Choose a reason for hiding this comment

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

Welcome!
This makes sense, thanks for catching this and sending the PR.

Thanks!!

@carlopi carlopi merged commit 41c03be into duckdb:main Nov 26, 2024
15 checks passed
@swlynch99 swlynch99 deleted the fix-async-query-prepare-type branch November 26, 2024 13:00
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