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

feat(source): ENCODE BYTES should allow generated columns #17959

Closed
xiangjinwu opened this issue Aug 7, 2024 · 0 comments · Fixed by #18294
Closed

feat(source): ENCODE BYTES should allow generated columns #17959

xiangjinwu opened this issue Aug 7, 2024 · 0 comments · Fixed by #18294
Assignees
Milestone

Comments

@xiangjinwu
Copy link
Contributor

(Format::Plain, Encode::Bytes) => {
if cols_from_sql.len() != 1 || cols_from_sql[0].data_type() != &DataType::Bytea {
return Err(RwError::from(ProtocolError(
"ENCODE BYTES only accepts one BYTEA type column".to_string(),
)));
}
Ok(cols_from_sql)
}

Some other format/encode branches above already handle generated columns explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants