Skip to content

Not consistent table naming when using InnerJoin() #8

@WestleyK

Description

@WestleyK

When using InnerJoin(), pika will sometimes rename the table name in the query. This can cause an issue when you want to filter by a value in that table, you need to manually debug the query to see what pika changed the table name too.

https://github.com/ctrliq/pika/blob/main/pika_psql_test.go#L1475C50-L1475C50

Notice join_model_foreign vs joinModelForeign.

CC @ikaneshiro, @mstg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions