Commit Graph

13255 Commits

Author SHA1 Message Date
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
Lukas Eder
044cebb85b [jOOQ/jOOQ#17063] Update DataType.isXYZ() Javadoc with new types 2024-08-14 11:40:55 +02:00
Lukas Eder
aa3fbda55d [jOOQ/jOOQ#10880] Add DECFLOAT support
This includes:

- Added org.jooq.Decfloat draft implementation
- Added DefaultBinding
- Added SQLDataType and dialect specific ones
- Added binding test
- org.jooq.Decfloat implements org.jooq.Data
- Normalisation of Decfloat for equals(), hashCode(), toString()
- [jOOQ/jOOQ#17060] Add a org.jooq.Data interface, which all the data()
bearing types can implement
2024-08-14 10:13:38 +02:00
Lukas Eder
b60097822c [jOOQ/jOOQ#17056] Support comparing arrays in BigQuery 2024-08-13 15:04:49 +02:00
Lukas Eder
9b10360358 [jOOQ/jOOQ#17057] Emulate (ROW) DISTINCT predicates where not available
and INTERSECT is also not available
2024-08-13 15:04:32 +02:00
Lukas Eder
2e4877aa86 [jOOQ/jOOQ#17037] Add BigQuery support for various array functions 2024-08-13 13:58:05 +02:00
Lukas Eder
247b70b2c8 [jOOQ/jOOQ#17055] BigQuery FILTER clause is ignored on MEDIAN() or PERCENTILE_CONT() / PERCENTILE_DISC() functions 2024-08-13 13:57:53 +02:00
Lukas Eder
34f9f9714b [jOOQ/jOOQ#17046] Upgrade H2 dependency to 2.3.232 2024-08-13 10:19:43 +02:00
Lukas Eder
9708c7d7e7 [jOOQ/jOOQ#17037] Inline array bind values 2024-08-12 11:05:28 +02:00
Lukas Eder
f768442721 [jOOQ/jOOQ#17045] Support array types as BigQuery results 2024-08-12 09:55:25 +02:00
Lukas Eder
8693b2fa0d [jOOQ/jOOQ#16997] jOOQ-codegen-gradle plugin doesn't work with Gradle's configuration cache feature 2024-08-12 09:16:41 +02:00
Lukas Eder
9aec5c9de7 [jOOQ/jOOQ#17040] SQLDialect.JAVA warning message about derived tables not being supported is misleading 2024-08-12 08:37:45 +02:00
Lukas Eder
418bb8ff92 [jOOQ/jOOQ#17037] Add BigQuery support for various array functions
This includes:

- ARRAY_ALL_MATCH
- ARRAY_ANY_MATCH
- ARRAY_APPEND
- ARRAY_FILTER
- ARRAY_GET
- ARRAY_MAP
- ARRAY_NONE_MATCH
- CARDINALITY
2024-08-09 13:33:24 +02:00
Lukas Eder
30be9eee28 [jOOQ/jOOQ#17037] Add BigQuery support for various array functions
This includes:

- [jOOQ/jOOQ#17036] Add BigQuery support for arrayGet()
2024-08-08 18:06:24 +02:00
Lukas Eder
67e6657192 [jOOQ/jOOQ#17030] JDBCUtils.dialect() detects wrong MySQL dialect for versions > 8.1 2024-08-07 15:55:55 +02:00
Lukas Eder
ccbe04b1b5 [jOOQ/jOOQ#17019] Wrong cast being generated for H2's MySQL style enum types, when a EnumConverter is present 2024-08-07 15:49:29 +02:00
Lukas Eder
d3b72dff19 [jOOQ/jOOQ#17026] Repeated WHERE FALSE clause in CREATE TABLE AS SELECT .. WITH NO DATA emulation, when query is nested 2024-08-07 14:30:56 +02:00
Lukas Eder
1b344e8693 [jOOQ/jOOQ#17021] Add BigQuery support for CREATE TABLE from a SELECT 2024-08-07 14:15:48 +02:00
Lukas Eder
2d7759dc05 [jOOQ/jOOQ#17018] Row[N].in(Row[N]...), Row[N].between(...), and
Row[N].is[Not]DistinctFrom(...) should apply data type bindings if
necessary
2024-08-07 12:54:33 +02:00
Lukas Eder
be6cb4a991 [jOOQ/jOOQ#17017] Add BigQuery support for JSON_OBJECTAGG 2024-08-06 18:41:15 +02:00
Lukas Eder
bb2d386bdf [jOOQ/jOOQ#16979] Exception when doing Meta.ddl() export with tables
that have USE or GO or similar field or table aliases
2024-08-05 16:39:34 +02:00
Lukas Eder
5e737fd626 [jOOQ/jOOQ#17009] SQLite unnamed unique constraints are listed in a
non-deterministic order by code generator
2024-08-05 15:04:22 +02:00
Lukas Eder
79d9acb567 [jOOQ/jOOQ#16946] Apply fix also to OSS edition 2024-08-05 15:03:31 +02:00
Lukas Eder
90c3cd8e5c [jOOQ/jOOQ#16978] Error when trying to delay DataType inference for
scalar SQL type converted to user array type
2024-08-05 13:56:29 +02:00
Lukas Eder
c7d2f2ec92 [jOOQ/jOOQ#16999] Reset also new caches when adding synthetic keys 2024-07-31 18:33:33 +02:00
Lukas Eder
d792494e78 [jOOQ/jOOQ#16999] Code generation order provider isn't being applied to TableDefinition.getXYZ() methods, nor to Database.getIndexes() or Database.getTriggers() 2024-07-31 17:13:23 +02:00
Lukas Eder
5eba72d49b [jOOQ/jOOQ#16997] Avoid referencing project from task at runtime 2024-07-31 12:35:23 +02:00
Lukas Eder
3cade0204f [#16988] Correctly name Apache-2.0 everywhere 2024-07-29 13:00:52 +02:00
Lukas Eder
4f50ef2c55 [#16988] Correctly name Apache-2.0 everywhere 2024-07-29 12:53:09 +02:00
Lukas Eder
ae481ac913 [jOOQ/jOOQ#14894] Remove examples 2024-07-12 15:16:59 +02:00
Lukas Eder
03cdd195d2 [jOOQ/jOOQ#14894] Remove examples 2024-07-12 15:11:40 +02:00
Lukas Eder
1fcf275a15 [#14894] Remove examples 2024-07-12 15:07:31 +02:00
Lukas Eder
60e5f8a32c [jOOQ/jOOQ#7104] Add DSL.stringAgg() and stringAggDistinct() 2024-07-12 14:13:14 +02:00