Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mlafeldt
Copy link
Member

Implements AppendDefault marker type that allows appending a column's DEFAULT value (as defined in table schema) when using the Appender API.

Fixes #551

ToSqlOutput::AppendDefault => {
return Err(Error::ToSqlConversionFailure(Box::new(std::io::Error::new(
std::io::ErrorKind::InvalidInput,
"AppendDefault is only valid for Appender operations, not for prepared statements",
Copy link
Member Author

Choose a reason for hiding this comment

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

I believe this is a limitation of the C API as there's no duckdb_bind_default or similar.

@mlafeldt mlafeldt requested a review from Maxxen October 23, 2025 10:35
Implements `AppendDefault` marker type that allows appending a column's
`DEFAULT` value (as defined in table schema) when using the Appender API.

Fixes #551
@mlafeldt mlafeldt marked this pull request as draft October 23, 2025 11:03
@mlafeldt
Copy link
Member Author

Back to draft status. Looking into duckdb_append_default_to_chunk as an alternative.

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.

Appender: support appending default column values

1 participant