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

Possible compilation errors in generated code when column names contain double quotes #15714

Closed
lukaseder opened this issue Oct 19, 2023 · 3 comments

Comments

@lukaseder
Copy link
Member

A table like this:

create table fields (
  "ID" bigint,
  "X""" bigint,
  primary key ("ID")
);

Can produce compilation errors in generated code, because currently, we're not escaping column names in generated code. We're escaping identifiers almost everywhere else though.

The issue has already been fixed in jOOQ 3.19.0 as part of:

See:

This issue is to track backports to the currently maintained minor releases.

@lukaseder
Copy link
Member Author

ScalaGenerator and KotlinGenerator are also affected in all versions

@lukaseder
Copy link
Member Author

lukaseder added a commit that referenced this issue Oct 19, 2023
lukaseder added a commit that referenced this issue Oct 19, 2023
lukaseder added a commit that referenced this issue Oct 19, 2023
3.19 Other improvements automation moved this from To do to Done Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant