-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
DDLDatabase issue with array type #11759
Comments
Thanks for your suggestion. Yes, this limitation is due to H2 historically not knowing typed arrays, so you're going to lose the array types when using the
Even so, numerous improvements in jOOQ would profit from a new H2 release, but we'll have to wait. It seems this cannot be accelerated: h2database/h2database#2491 So, I'm closing this as a duplicate of the above three issues. |
(Note that #6551 contains some comments related to workaround to use jOOQ's code generator with testcontainers already today!) |
Thx for mentioning that issue. I was looking at a different workaround to use forced types (but it is not working yet).
The For the forced type name the jOOQ docs state:
I guess name Another more brute "force type" way would be just doing an automated search / replace in the generated Java file. ;-) |
I've moved to testcontainers and it works well!. |
Thanks for the feedback. If you don't mind then, I won't investigate how to apply a forced type for a string array in H2? Because that, too, will resolve itself eventually, when the next version of H2 is released... |
Expected behavior
Having a column definition in a DDLDatabase script like
previous_names VARCHAR(255)[] DEFAULT NULL,
I would expect aVARCHAR
array to be generated.Actual behavior
It generates:
Probably this is because H2 does not support it?
Although that seem to be added: h2database/h2database#1390, but I'm not sure that is released yet, and probably won't be soon.
Would there be any workarounds for this?
Steps to reproduce the problem
I'm using
org.jooq.meta.extensions.ddl.DDLDatabase
.Versions
The text was updated successfully, but these errors were encountered: