We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the SEEK clause on a query that has no WHERE clause, there's an excess 1 = 1 predicate being generated:
1 = 1
assertEquals( asList(3, 4), create().select(TBook_ID()) .from(TBook()) .orderBy(TBook_ID()) .seek(2) .fetch(TBook_ID()));
produces:
select "PUBLIC"."T_BOOK"."ID" from "PUBLIC"."T_BOOK" where ( 1 = 1 and "PUBLIC"."T_BOOK"."ID" > 2 ) order by "PUBLIC"."T_BOOK"."ID"
when it should produce:
select "PUBLIC"."T_BOOK"."ID" from "PUBLIC"."T_BOOK" where "PUBLIC"."T_BOOK"."ID" > 2 order by "PUBLIC"."T_BOOK"."ID"
The text was updated successfully, but these errors were encountered:
[#7460] SEEK without WHERE produces excess 1 = 1 predicate
89adb16
No branches or pull requests
When using the SEEK clause on a query that has no WHERE clause, there's an excess
1 = 1
predicate being generated:produces:
when it should produce:
The text was updated successfully, but these errors were encountered: