Commit Graph

10615 Commits

Author SHA1 Message Date
Lukas Eder
e06f06edb7 [jOOQ/jOOQ#9864] Added READONLY support in InformationSchema 2021-11-04 10:51:34 +01:00
Lukas Eder
e3d1013731 [jOOQ/jOOQ#9864] OSS edition fix 2021-11-04 10:36:23 +01:00
Lukas Eder
2766eeb4b5 [jOOQ/jOOQ#12601] Produce compilation error if code generator version
doesn't match runtime version
2021-11-04 10:33:56 +01:00
Lukas Eder
91a25a5c1d [jOOQ/jOOQ#9864] Add parser support 2021-11-03 18:01:22 +01:00
Lukas Eder
516e87556c [jOOQ/jOOQ#9864] Fix Derby ON DUPLICATE KEY / ON CONFLICT 2021-11-03 17:35:51 +01:00
Lukas Eder
167ba3c705 [jOOQ/jOOQ#12599] Incorrect MERGE statement syntax generated in FIREBIRD when aliasing USING derived table 2021-11-03 17:29:02 +01:00
Lukas Eder
fcc4467913 [jOOQ/jOOQ#9864] Added support for Firebird et al. INSERT IGNORE 2021-11-03 16:52:14 +01:00
Lukas Eder
b065c9de88 [jOOQ/jOOQ#9864] Added some more iterable tools 2021-11-03 16:31:48 +01:00
Lukas Eder
820c09c56b [jOOQ/jOOQ#9864] Support HANA style UPSERT 2021-11-03 16:09:36 +01:00
Lukas Eder
046e229fa6 [jOOQ/jOOQ#9864] Support H2 style MERGE 2021-11-03 15:49:00 +01:00
Lukas Eder
4e64c74b02 [jOOQ/jOOQ#12596] ParamType.INLINED produces wrong behaviour for cacheParsingConnection 2021-11-03 15:06:17 +01:00
Lukas Eder
05ad90fbe4 [jOOQ/jOOQ#9864] Fix UPDATE .. SET ROW for THROW 2021-11-03 14:27:29 +01:00
Lukas Eder
a255fc1cd0 [jOOQ/jOOQ#9864] Support UPDATE .. SET ROW (..) = 2021-11-03 13:00:38 +01:00
Lukas Eder
e846c83939 [jOOQ/jOOQ#12592] JPADatabase should log a WARNING message if it cannot find any entities on the classpath 2021-11-03 09:09:55 +01:00
Lukas Eder
f453ba0f63 Updated XMLNS 2021-11-02 17:40:56 +01:00
Lukas Eder
ca440df7d7 [jOOQ/jOOQ#10423] Bad translation of identity to CockroachDB 2021-11-02 17:35:30 +01:00
Lukas Eder
ea60d3db43 [jOOQ/jOOQ#9864] Fixed INSERT .. ON CONFLICT etc.
We shouldn't access a FieldMapsForInsert's contents directly anymore, as we always have to:

- Flatten embeddable types
- Remove readonly fields

The status quo isn't optimal. We can possibly work with views rather than copying the collections around all the time.
2021-11-02 17:01:44 +01:00
Lukas Eder
15004cdc1d Updated Constants.XSD_CODEGEN 2021-11-02 16:42:35 +01:00
Lukas Eder
397cc67ea6 [jOOQ/jOOQ#12589] CockroachDB IDENTITY column recognition is broken 2021-11-02 15:53:44 +01:00
Lukas Eder
284d1d095b [jOOQ/jOOQ#9864] Implement <readonlyIdentities/> 2021-11-02 15:01:32 +01:00
Lukas Eder
457bc2880f [jOOQ/jOOQ#8388] Generate Table.rowid() overrides, implement KotlinGenerator and ScalaGenerator, improved configuration 2021-11-02 14:17:55 +01:00
Lukas Eder
eb126b2ee0 [jOOQ/jOOQ#8388] Generate Table.rowid() overrides, implement KotlinGenerator and ScalaGenerator, improved configuration 2021-11-02 14:17:48 +01:00
Lukas Eder
e1d3a45206 [jOOQ/jOOQ#12585] Use INFO level instead of WARNING level for routines with more than 254 parameters 2021-11-02 11:52:06 +01:00
Lukas Eder
b7154e57b9 [jOOQ/jOOQ#8388] Add code generation option to generate a synthetic, readonly ROWID column (WIP) 2021-11-02 11:50:48 +01:00
Lukas Eder
7e7259b2ef [jOOQ/jOOQ#10385] Add support for CockroachDB SYSTEM_TIME versioning
(WIP)

This change adds support for the syntax. The feature itself isn't fully
supported yet, as it works quite differently in CockroachDB, compared to
the standard. To be continued.
2021-11-01 16:40:49 +01:00
Lukas Eder
c13afc0941 [jOOQ/jOOQ#12425] [jOOQ/jOOQ#11959] Fixed regression
A recent query object model refactoring (where Mul, Div, Add, Sub were
extracted) created a regression in the expression data type calculation
for interval data types.
2021-11-01 16:40:27 +01:00
Lukas Eder
27d911dede [jOOQ/jOOQ#12583] Generate DAO.fetchOptionalBy[Column] methods 2021-11-01 13:58:31 +01:00
Lukas Eder
c4afb5c889 [jOOQ/jOOQ#12583] Add DAO.findOptionalById() 2021-11-01 13:31:50 +01:00
Lukas Eder
bf17bef951 [jOOQ/jOOQ#9864] Add support for readonly columns (WIP) 2021-11-01 13:21:51 +01:00
Lukas Eder
1a015852d7 [jOOQ/jOOQ#12582] ControlFlowSignal should use Throwable(String, Throwable, boolean, boolean) super constructor 2021-11-01 11:58:37 +01:00
Lukas Eder
e14fea1008 [jOOQ/jOOQ#9864] Fix DataTypeProxy 2021-10-29 16:41:04 +02:00
Lukas Eder
9de6ba83de [jOOQ/jOOQ#9864] Add support for readonly columns
- Added synthetic readonly column codegen config
- Added code generation logic
- Added DataTypeDefinition.readonly()
- Added DataType.readonly()
2021-10-29 16:24:01 +02:00
Lukas Eder
0c7c6c16dc [jOOQ/jOOQ#12557] Add support for unwrapping Optional types in DefaultConverterProvider 2021-10-29 13:48:10 +02:00
Lukas Eder
942697a219 Log jOOQ logo earlier in code generator 2021-10-29 13:25:07 +02:00
Lukas Eder
89577eedc8 [#12425] Fix regression 2021-10-29 12:56:05 +02:00
Lukas Eder
dddee18ef4 [jOOQ/jOOQ#11834] Fixed api.xml 2021-10-29 11:11:59 +02:00
Lukas Eder
a32222163c [jOOQ/jOOQ#12574] Add ExecuteContext::resultLevel and ::recordLevel to indicate the Result and Record nesting level 2021-10-29 10:18:33 +02:00
Lukas Eder
a53a981331 [jOOQ/jOOQ#12564] Exception in LoggerListener when projecting top level
row(...).mapping()
2021-10-28 18:04:48 +02:00
Lukas Eder
cffaf5f017 [jOOQ/jOOQ#11834] Fixed emulation formatting (to some extent) 2021-10-28 15:20:39 +02:00
Lukas Eder
25ac74245b [jOOQ/jOOQ#11834] Let Table<?> extend GroupField 2021-10-28 13:01:27 +02:00
Lukas Eder
69fd5c2b35 [jOOQ/jOOQ#11834] Fix support 2021-10-28 12:54:28 +02:00
Lukas Eder
4f5624499d [jOOQ/jOOQ#12568] Connection leak when ExecuteListener::fetchEnd throws an exception 2021-10-28 11:19:43 +02:00
Lukas Eder
3733dce111 [jOOQ/jOOQ#12566] JDBCUtils::safeClose methods should debug log stack traces 2021-10-28 10:29:51 +02:00
Lukas Eder
404ea8eddb [jOOQ/jOOQ#11834] Let Table<?> extend GroupField 2021-10-27 18:07:02 +02:00
Lukas Eder
2fba034f2b [jOOQ/jOOQ#12425] Generate equals based on QOM API type, not impl type 2021-10-27 14:36:52 +02:00
Lukas Eder
57f874309b [#12425] [#12561] Re-generate imports 2021-10-27 14:21:53 +02:00
Lukas Eder
3f0e0cf7a7 [#12425] [#12561] Fix ROWNUM transformation
ROWNUM transformation doesn't work when projecting an expression containing ROWNUM. This fix also refactors arithmetic Expressions to their own classes, including internal IAdd, ISub, IMul, IDiv for the unneeded arithmetic transformation (further refactorings scheduled)
2021-10-27 14:21:36 +02:00
Lukas Eder
d5a586c767 [#12425] [#12561] Fix ROWNUM transformation
ROWNUM transformation doesn't work when projecting an expression containing ROWNUM. This fix also refactors arithmetic Expressions to their own classes, including internal IAdd, ISub, IMul, IDiv for the unneeded arithmetic transformation (further refactorings scheduled)
2021-10-27 14:13:12 +02:00
Lukas Eder
0160a761f7 [jOOQ/jOOQ#12425] Rename Plus to PlusJoin. Plus should be for arithmetic 2021-10-27 11:11:26 +02:00
Lukas Eder
33b96c3a96 [jOOQ/jOOQ#12561] Refactor ROWNUM transformation to use QOM::replace 2021-10-27 11:02:41 +02:00