Replies: 1 comment
-
same with load_one |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When using Vec<ModelTrait>.load_many() or Vec<ModelTrait>.load_many_to_many() rust panic: "Service panicked: Failed at mapping string to column A:1" was thrown.
After testing for a while I found out, that it panics if either the referenced column name or the owning column name starts with a capital letter.
Steps to Reproduce
Expected Behavior
Was expecing to get a Vec<Vec<table2::Model>> from load_many()
Actual Behavior
panics with "Service panicked: Failed at mapping string to column A:1"
Reproduces How Often
always
Workarounds
Changing the names of columns and tables to lower case works fine for me.
Versions
Database: PostgreSQL
OS: Windows 11 Pro
Postgres: 14
Sea Orm:
Beta Was this translation helpful? Give feedback.
All reactions