Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upLoading Data from tables with bytea columns fails due missing FromSqlRow implementation #1552
Comments
This comment has been minimized.
|
You're missing the |
This comment has been minimized.
MattsSe
commented
Feb 11, 2018
|
Got it, thanks. Thought that diesel could omit the nullable field. |
MattsSe
closed this
Feb 11, 2018
This comment has been minimized.
|
You could also do that. But if you still want your structure, the common thing is two have two different structs, one that is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MattsSe commentedFeb 11, 2018
Versions
nightly-x86_64-apple-darwin (default)
rustc 1.25.0-nightly (bd98fe0c0 2018-02-06)
1.1.1
psql (PostgreSQL) 9.6.7
MacOs High Sierra
Feature Flags
Problem Description
I'm trying to load data from a postgresql table that contains a
Byteacolumn. This fails due missing implementations forFromSqlRow, even if the targeted type doesn't contain a field for that column. Inserting, however works fine. This occurs for all tables that contain at least a bytea column.What are you trying to accomplish?
Loading data from tables with columns of binary types. How to fetch Binary data?
What is the actual output?
Steps to reproduce