Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issues with JOIN operation. #21

Closed
tusharmalpani20 opened this issue Sep 4, 2023 · 1 comment
Closed

Facing issues with JOIN operation. #21

tusharmalpani20 opened this issue Sep 4, 2023 · 1 comment

Comments

@tusharmalpani20
Copy link

tusharmalpani20 commented Sep 4, 2023

I am using PostgreSQL 14 on (WSL2 : Ubuntu) and have installed your extension using deb files which @pksunkara have provided here.

Here are my table schema.

CREATE TABLE IF NOT EXISTS "project_schema"."project"(
    "id" ulid NOT NULL DEFAULT gen_ulid() PRIMARY KEY,
    "name" VARCHAR(255) NOT NULL
);

CREATE TABLE IF NOT EXISTS "demo_schema"."demo" (
    "id" ulid NOT NULL DEFAULT gen_ulid() PRIMARY KEY,
    "name" varchar(255) DEFAULT NULL
);

CREATE TABLE IF NOT EXISTS "demo_schema"."demo_project" (
    "demo_id" ulid NOT NULL REFERENCES "demo_schema"."demo"(id),
    "project_id" ulid NOT NULL REFERENCES "project_schema"."project"(id)
);

When I want to run a join function to get all the demo for a particular project, I am using the following query

SELECT * FROM demo_schema.demo JOIN demo_schema.demo_project ON demo.id= demo_project.demo_id WHERE demo_project.project_id  = '01H9FS1KBXDKAH9GNEGNMNDYW4';

I encounter the following error :

ERROR:  could not find commutator for operator 17239
SQL state: XX000

Can you please help me find a solution for the above.

@tusharmalpani20 tusharmalpani20 changed the title Facing issues with on JOIN operation. Facing issues with JOIN operation. Sep 4, 2023
@pksunkara
Copy link
Owner

This has been fixed in 0.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants