is it possible to ignore columns when insert #3007
Unanswered
jiangxiaoqiang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please provide at least the following information:
Without these information its unfortunately not possible to help you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using diesel to do an insert, this is my code:
but it shows error:
thread 'rocket-worker-thread' panicked at 'called
Result::unwrap()on an
Errvalue: DatabaseError(__Unknown, "cannot insert into column \"id\"")', src/service/app/cernitor/domain/domain_service.rs:46:10
what should I do to ignore the id column and make database auto generate?
Beta Was this translation helpful? Give feedback.
All reactions