Environment:
-JDK21 (but even 17 is KO)
- Oracle DB 19c
- Oracle driver ojdbc11 (23.3.0.23.09) but it happens also with ojdbc10 as well
- Jooq 3.17 (Enterprise)
Hi,
we have an issue with model generator (by "org.jooq.codegen.GenerationTool" direct call) when generating code for an Oracle View. The whole generated java object looks fine except for one of the private costructor, the one with the TableOptions.view("[ ..... ]") parameter, which contains a string with the whole view's DML Sql code.
At some point of this very long String with DML (the view has something like 600+ fields) the generator put an extra ".toString()" with the wrong escaping like:
"...... ds.div_espressione_valori AS tcy,\".toString() + "n NVL(div4.coddiv, '') AS tcy_str,\n ...."
and then, after another 1k charcter or so, the String is closed, but wronlgy again:
"......... rivalutazione = 1\n".toString() + ""));
Problem is that the bold part make the string illegal (since the "+" is inside " and not outside, so the strings are not concatenated correctly). It looks like there is an extra \" or a missing one.. one way or another they look not balanced and this brake the code.
We have no idea why this happens, our best guess is that the SQL string is too long, since this string break after more than 16k characters. By the way the view works like a charm in SQL direclty and once we manually fix this issue, also the rest of JOOQ mapping is fine.
Any Idea? are we hitting some hard limit?
Thank you.
Alessandro