Commit Graph

13287 Commits

Author SHA1 Message Date
Lukas Eder
54dbdcffa4 [jOOQ/jOOQ#644] Fix compilation error in RecordType setters/getters
RecordType setters/getters should use the Mode.DEFAULT for the attribute types, not the Mode.RECORD_TYPE, in case a hierarchical record references a flat record!
2024-08-29 16:38:50 +02:00
Lukas Eder
402790f475 [jOOQ/jOOQ#12180] Include jOOQ-scala_3.5 in module list 2024-08-29 16:08:54 +02:00
Lukas Eder
e662700892 [jOOQ/jOOQ#12180] [jOOQ/jOOQ#17146] [jOOQ/jOOQ#17147] install/deploy 2024-08-29 16:07:22 +02:00
Lukas Eder
86d75b208e [jOOQ/jOOQ#12180] Fix typo 2024-08-29 15:55:40 +02:00
Lukas Eder
de28358e3d [jOOQ/jOOQ#17146] Move Scala 2.13 support to the commercial distributions 2024-08-29 15:32:24 +02:00
Lukas Eder
25ebce0f4c [jOOQ/jOOQ#12180] Add a jOOQ-scala-3.5 extension library 2024-08-29 14:55:35 +02:00
Lukas Eder
172a0e9b3d [jOOQ/jOOQ#12180] Add Scala3Generator 2024-08-29 13:37:29 +02:00
Lukas Eder
89a4785f30 [jOOQ/jOOQ#644] Generated RECORD_TYPE classes don't need to be generic 2024-08-29 10:21:29 +02:00
Lukas Eder
dba849cf5d [jOOQ/jOOQ#644] Generated RECORD_TYPE classes don't need to be generic 2024-08-29 10:19:59 +02:00
Lukas Eder
d15f9f0d04 [jOOQ/jOOQ#644] Revert NOT INSTANTIABLE support for now
There are numerous problems in jOOQ's internals, which assume that a UDTRecord is always non-abstract (e.g. to access the UDT qualifier via reflection). This cannot be avoided, for now.
2024-08-28 15:43:06 +02:00
Lukas Eder
e7d82f6764 [jOOQ/jOOQ#644] Add support for Oracle TYPE .. UNDER type hierarchies
This includes:

- Add support for NOT INSTANTIABLE
- Handle synonym references
2024-08-28 13:25:50 +02:00
Lukas Eder
175380c1dc [jOOQ/jOOQ#644] Add support for Oracle TYPE .. UNDER type hierarchies
This includes:

- [jOOQ/jOOQ#11371] Generate UDT.getSupertype() and UDT.getSubtypes()
2024-08-28 12:56:34 +02:00
Lukas Eder
fdbeea9977 [jOOQ/jOOQ#17135] <unsignedTypes/> flag doesn't work outside of
MySQLDatabase
2024-08-27 08:53:08 +02:00
Lukas Eder
23a0ae44e0 [jOOQ/jOOQ#17131] Improve formatting of functions containing CASE
arguments - WIP
2024-08-22 17:25:14 +02:00
Lukas Eder
830e956e76 [jOOQ/jOOQ#17124] Use CASE simple, instead of CASE searched 2024-08-22 15:58:10 +02:00
Lukas Eder
d3a4f9527b [jOOQ/jOOQ#17092] Fix this also for Derby 2024-08-22 12:14:41 +02:00
Lukas Eder
ab348020b7 [jOOQ/jOOQ#17124] MySQL boolean type information isn't maintained across
expressions when embedded into JSON
2024-08-22 11:55:45 +02:00
Lukas Eder
0fe17b977e [jOOQ/jOOQ#17126] Deprecate SQLDialect.SQLSERVER2008 2024-08-22 10:36:11 +02:00
Lukas Eder
c635c50e99 [jOOQ/jOOQ#17125] Deprecate SQLDialect.ORACLE11G and ORACLE12C 2024-08-22 10:30:58 +02:00
Lukas Eder
07f3a37859 [jOOQ/jOOQ#17113] CASE expression on BOOLEAN type emulation in JSON
constructor causes ORA-40590: invalid format on Oracle XE 18
2024-08-21 16:10:48 +02:00
Lukas Eder
9d67a2eb37 [jOOQ/jOOQ#17113] Remove ELSE NULL emulation as it's no longer necessary 2024-08-21 15:09:11 +02:00
Lukas Eder
d57dcdbb85 [jOOQ/jOOQ#17099] [jOOQ/jOOQ#17117] Code generation escaping issues
This includes:

- [jOOQ/jOOQ#17099] KotlinGenerator contains incomplete list of Kotlin forbidden identifier characters
- [jOOQ/jOOQ#17117] Bad code generated for enum values containing backslash character
2024-08-21 14:18:18 +02:00
Lukas Eder
7ce935bbb5 [jOOQ/jOOQ#15936] De-duplicate join/path correlation predicates
There are some edge cases where duplicate predicates are being generated from both the join tree (or table lists) and the path correlations. It's worth investigating why this happens rather than removing the duplicates with a Set, but for now this works.
2024-08-20 16:17:12 +02:00
Lukas Eder
70187dbee8 [jOOQ/jOOQ#15936] Whitespace fix 2024-08-20 15:34:35 +02:00
Lukas Eder
97f2b8be00 [jOOQ/jOOQ#15936] Implicit path correlation produces correlation
predicate in ON clause rather than WHERE clause in some cases
2024-08-20 15:32:41 +02:00
Lukas Eder
74d999a5ef
[jOOQ/jOOQ#17105] Upgrade xerial SQLite dependency to 3.46.1.0 2024-08-19 13:41:59 +02:00
Lukas Eder
94e97b229a [jOOQ/jOOQ#12605] Add support for Firebird 4 TIME[STAMP] WITH TIME ZONE data types 2024-08-19 11:44:14 +02:00
Lukas Eder
3b26957826 [jOOQ/jOOQ#17069] Fix this also for Firebird TIME[STAMP]TZ types 2024-08-19 11:38:03 +02:00
Lukas Eder
2a3dcc6d21 [jOOQ/jOOQ#17100] Add DataType.isTimestampWithTimeZone() for INSTANT and OFFSETDATETIME and isTimeWithTimeZone() for OffsetTime 2024-08-19 11:27:51 +02:00
Lukas Eder
1c453a1e28 [jOOQ/jOOQ#10880] Firebird may also produce -NaN values 2024-08-19 09:06:32 +02:00
Lukas Eder
79e60a7369 [jOOQ/jOOQ#17088] Fix R2DBC support for TIMESTAMP WITH TIME ZONE types 2024-08-16 14:56:38 +02:00
Lukas Eder
8aefba19c1 [jOOQ/jOOQ#16984] The sorting will continue until morale improves 2024-08-16 14:56:25 +02:00
Lukas Eder
f27e78b4e2 [jOOQ/jOOQ#17069] Handle TIME precisions in schema Diff 2024-08-16 09:36:49 +02:00
Lukas Eder
f1b7998113 [jOOQ/jOOQ#10880] Normalise parsed DECFLOAT representation
To improve equals(), hashCode(), and toString() behaviour, we must
normalise the parsed DECFLOAT representation to:

- Always have only 1 digit left of the comma
- Strip trailing zeros
2024-08-16 09:29:26 +02:00
Lukas Eder
a51eec3222 [jOOQ/jOOQ#10880] [jOOQ/jOOQ#11706] Better handle DECFLOAT NaN and Infinity 2024-08-16 09:29:13 +02:00
Lukas Eder
af4a8a819d [jOOQ/jOOQ#17069] Don't generate TIME precision where unsupported 2024-08-15 17:30:54 +02:00
Lukas Eder
9d7f4dc02e [jOOQ/jOOQ#17069] Don't generate TIME precision where unsupported 2024-08-15 16:56:42 +02:00
Lukas Eder
8b60baf07d [jOOQ/jOOQ#17067] Fix support for special float values NaN, Infinity in
MULTISET usage
2024-08-15 16:31:51 +02:00
Lukas Eder
727c2448dd [jOOQ/jOOQ#17083] HANA's WITH ORDINALITY emulation doesn't maintain correct ordering of ORDINALITY 2024-08-15 14:59:16 +02:00
Lukas Eder
2741b1786a [jOOQ/jOOQ#10880] Add DECFLOAT support
This includes:

- Code generation support
- Test coverage for org.jooq.Meta
- Test coverage for plain SQL usage
2024-08-15 14:33:17 +02:00
Lukas Eder
428fbc5a56 [jOOQ/jOOQ#17074] Add type witness to work around broken inference 2024-08-15 13:16:41 +02:00
Lukas Eder
cb982b37d8 [jOOQ/jOOQ#17074] Fix MULTISET handling when using NATIVE vs JSON 2024-08-15 13:00:00 +02:00
Lukas Eder
827f103fa1 [jOOQ/jOOQ#17074] Fix JSON_OBJECTAGG() window function
The ARRAY_AGG() window function cannot have an aggregate ORDER BY clause, but we don't really need it when we aggregate entries in a single aggregation, rather than aggregating keys and values separately.
2024-08-15 12:23:14 +02:00
Lukas Eder
44f386e7f3 [jOOQ/jOOQ#17074] Add JSON function support in DuckDB 2024-08-15 12:17:01 +02:00
Lukas Eder
6a976af194 [jOOQ/jOOQ#17059] Redundant unique index on primary key makes foreign
keys disappear in PostgreSQL

This fixes code generation behaviour
2024-08-14 18:03:30 +02:00
Lukas Eder
84c1e5c7ba [jOOQ/jOOQ#17069] TIME(0), LOCALTIME(0), OFFSETDATETIME(0), and INSTANT(0) don't work in DDL statements as the datetime precision is simply omitted 2024-08-14 16:10:28 +02:00
Lukas Eder
bbee824972 [jOOQ/jOOQ#17068] Add DuckDB support for unsigned numbers 2024-08-14 15:10:07 +02:00
Lukas Eder
0b7a5f3fc9 [jOOQ/jOOQ#10880] Add DECFLOAT support
This includes:

- Support casts
- Support DDL
- Support MULTISET usage
- Support Db2's NAN (all uppercase) syntax
2024-08-14 14:47:05 +02:00
Lukas Eder
4bdc6f4a54 [jOOQ/jOOQ#10880] Add DECFLOAT support
This includes:

- Add pgFromString() support
2024-08-14 12:28:04 +02:00
Lukas Eder
c3d66506cf [jOOQ/jOOQ#10880] Add DECFLOAT support
This includes:

- Support integer values as data (without exponent)
- Support DefaultConverterProvider conversions
- Support DataType.hasPrecision()
- Add 1E0 and 0E0 as TRUE_VALUES and FALSE_VALUES
2024-08-14 12:26:39 +02:00