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 uphi diesel mysql unsize issue. #1627
Comments
haruhinoshana
changed the title from
hi
to
hi diesel mysql unsize issue.
Apr 9, 2018
This comment has been minimized.
|
|
weiznich
closed this
Apr 9, 2018
This comment has been minimized.
haruhinoshana
commented
Apr 9, 2018
|
is there a work around to get the last_insert_id or let new_user = statement.get_result::(&**connection); in mysql diesel sir.. |
This comment has been minimized.
|
See http://docs.diesel.rs/diesel/macro.sql_function.html to use custom SQL functions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
haruhinoshana commentedApr 9, 2018
•
edited by weiznich
hi im new in using rust iron and diesel and i'm doing a sample project i got using rust iron with r2d2 diesel cli mysql..... heres the error.
error[E0308]: mismatched types
--> src/dal/models/user.rs:82:23
|
82 | Ok(new_user) => Ok(new_user),
| ^^^^^^^^ expected struct
dal::models::user::User, found usize|
= note: expected type
dal::models::user::Userfound type
usizeerror[E0308]: mismatched types
--> src/dal/models/post.rs:36:23
|
36 | Ok(new_post) => Ok(new_post),
| ^^^^^^^^ expected struct
dal::models::post::Post, found usize|
= note: expected type
dal::models::post::Postfound type
usizeheres the code...
help me please im newbie.