Skip to content

How to Join Tables using Left JOIN IN diesel #4128

Answered by weiznich
dxphilo asked this question in Q&A
Discussion options

You must be logged in to vote

It's hard to answer this question based on the provided details. I've tried to reproduce your problem locally but the following minimal extended code compiles fine with diesel = { version = "2.2.2", default-features = false, features = ["postgres", "chrono"] }:

se diesel::prelude::*;
use diesel::PgConnection;

mod schema {
    diesel::table! {
        corruption_cases (id) {
            id -> Int4,
            #[max_length = 255]
            name -> Varchar,
            politician_id -> Int4,
            #[max_length = 255]
            case_description -> Varchar,
            #[max_length = 255]
            case_date -> Varchar,
            #[max_length = 255]
            legal_outcome -> N…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dxphilo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants