Commit Graph

10635 Commits

Author SHA1 Message Date
Lukas Eder
24e68ea130 [jOOQ/jOOQ#12463] H2 enum values which contain brackets are not generated as Java literals 2021-11-10 13:06:24 +01:00
Lukas Eder
2a8e30b6a6 [jOOQ/jOOQ#10881] Scala's enums are Java classes 2021-11-10 12:16:43 +01:00
Lukas Eder
a280058080 [jOOQ/jOOQ#10881] Enum literals should be defined by generator strategies 2021-11-10 11:52:32 +01:00
Lukas Eder
d9e4b9a8aa [jOOQ/jOOQ#12620] Document that the asterisk may lead to column order mismatches 2021-11-10 09:56:59 +01:00
Lukas Eder
15581a9958 [jOOQ/jOOQ#8431] Add support for PostgreSQL 11 procedures 2021-11-09 17:15:20 +01:00
Lukas Eder
f0a839df8d [jOOQ/jOOQ#9917] Codegeneration fails with case sensitive data types in
postgres
2021-11-09 14:18:06 +01:00
Lukas Eder
c4b65bc28b [jOOQ/jOOQ#12003] Add support for ALTER COLUMN adding an identity 2021-11-09 13:46:02 +01:00
Lukas Eder
4d1388c1e5 [jOOQ/jOOQ#12612] Generated column in table valued function of type
TIMESTAMP without precision is generated using precision zero
2021-11-09 10:30:56 +01:00
Lukas Eder
f2a7dfd881 [jOOQ/jOOQ#12611] SQLDataType.null generated when using XMLDatabase with
lower case array type
2021-11-09 09:14:24 +01:00
Lukas Eder
2aa166f846 [jOOQ/jOOQ#9864] Generate additional record constructor
It is useful to have an additional record constructor that does not include the readonly columns. Further improvements to code generation might follow.
2021-11-08 11:04:39 +01:00
Lukas Eder
9971ff8e96 [jOOQ/jOOQ#9864] Support INSERT .. DEFAULT VALUES
If users specify VALUES(), but the list is effectively empty, because all supplied fields are readonly and we use the default IGNORE behaviour, then users have effectively specified DEFAULT VALUES
2021-11-08 11:02:50 +01:00
Lukas Eder
cd615bcf51 [jOOQ/jOOQ#9864] Fix another instance of ORA-38104 2021-11-05 15:12:56 +01:00
Lukas Eder
43f8b1992a [jOOQ/jOOQ#12212] Unnecessary generic type parameter in localDateAdd and other date time arithmetic functions 2021-11-05 14:41:02 +01:00
Lukas Eder
1cb77e5303 Whitespace fix 2021-11-04 16:29:36 +01:00
Lukas Eder
91295db719 [jOOQ/jOOQ#12604] Add SQLDialect.FIREBIRD_4_0 2021-11-04 16:03:08 +01:00
Lukas Eder
e3854f0223 [jOOQ/jOOQ#12604] Add SQLDialect.FIREBIRD_4_0
- Added dialect and updated tests
- Support LATERAL and APPLY
- Support WINDOW clause
- Support window frames
- Support new window functions
2021-11-04 15:00:21 +01:00
Lukas Eder
15b52ffafb [jOOQ/jOOQ#12601] Produce compilation error if code generator version
doesn't match runtime version
2021-11-04 14:01:49 +01:00
Lukas Eder
07d57a27c3 [jOOQ/jOOQ#3398] Avoid generating new SQL statements for every bind variable length in Firebird 3.0 2021-11-04 14:01:29 +01:00
Lukas Eder
81be95e884 [jOOQ/jOOQ#12602] Parse INSERT .. SELECT without column list 2021-11-04 11:23:46 +01:00
Lukas Eder
de274b5f3f Added missing (?) junit test dependency 2021-11-04 11:14:36 +01:00
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