Open hoodiecollin opened 8 months ago
The impl ToSql for PostgresOrdEntity
needs to be fixed so that it actually uses the context: &PgrxSql
argument to determine what schema to use for schema qualification:
Same for PostgresHashEntity:
This will somewhat resemble, if you squint really hard, how PostgresTypeEntity walks the graph:
Alternatively, all such code could be handled in a more uniform way, but I don't have any good ideas for that off the top of my head.
The SQL generated for the
PostgresHash
andPostgresOrd
derive macros doesn't qualify the custom type with the correct schema.Minimal example taken from my project:
Generates the following SQL (irrelevant parts omitted):
The
PostgresEq
macro generates this which works as expected: