-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add Support for tuple in where clauses #40
Comments
Is that valid in PostgreSQL? I tried this query using the SqlHydra.Npgsql test database but it gives a syntax error: select e.*
from humanresources.employee e
(jobtitle, maritalstatus) = ('Design Engineer', 'M') However, this works: select e.*
from humanresources.employee e
where jobtitle = 'Design Engineer' and maritalstatus = 'M' |
The first one is missing a This should work sample=# with t as (select 1 as f, 2 as s) select * from t where (t.f,t.s) = (1,2);
f | s
---+---
1 | 2
(1 row) It does work with string too. It is especially handy working with comparing multiple operators i.e less than/greater than, since the expanded form is bit lengthy. |
That was it. Still getting used to DBeaver which tries a little too hard to be helpful sometimes. |
Thanks for the great library. Another thing I've found is probably missing support for tuple query generation in where clauses?
should roughly translate to
However at the moment, it gives:
The text was updated successfully, but these errors were encountered: