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

Dont use select * from in jooq #2231

Merged
merged 6 commits into from
Jan 12, 2022
Merged

Conversation

Sethuraman
Copy link
Collaborator

We had a query that started randomly failing in a deployed environment. On further investigation we found that using ctx.select(

.asterisk()).from() is untrustworthy. Read in the comment of AvoidUsingSelectStartListener.renderEnd for more details.

import org.jooq.ExecuteContext
import org.jooq.impl.DefaultExecuteListener

class AvoidUsingSelectStartListener : DefaultExecuteListener() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class AvoidUsingSelectStartListener : DefaultExecuteListener() {
class AvoidUsingSelectStarListener : DefaultExecuteListener() {

@Sethuraman Sethuraman enabled auto-merge (squash) December 1, 2021 04:03
@Sethuraman Sethuraman merged commit 48f5b5f into master Jan 12, 2022
@Sethuraman Sethuraman deleted the sethu/dont-allow-select-star branch January 12, 2022 06:21
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

Successfully merging this pull request may close these issues.

3 participants