Commit Graph

11855 Commits

Author SHA1 Message Date
Cies Breijs
e7a21cc678
Correctly hint nullability of getSchema() method
Fixes #14431
2022-12-27 15:18:17 +01:00
Lukas Eder
0b720ed251 [jOOQ/jOOQ#11981] Added ARRAY_REPLACE parser support 2022-12-21 09:11:03 +01:00
Lukas Eder
d68d9707ca [jOOQ/jOOQ#11981] Deprecate PostgresDSL methods 2022-12-21 09:10:55 +01:00
Lukas Eder
fe5de70962 [jOOQ/jOOQ#11981] Added ARRAY_REPLACE 2022-12-20 16:31:27 +01:00
Lukas Eder
ccfe834c51 Revert "[jOOQ/jOOQ#14417] ArrayTableEmulation should use VALUES to emulate UNNEST" 2022-12-20 11:01:27 +01:00
Lukas Eder
14d148a9e5 [jOOQ/jOOQ#5799] OSS edition fix 2022-12-20 09:30:36 +01:00
Lukas Eder
5da938a261 [jOOQ/jOOQ#14426] OUTER APPLY emulation should use TrueCondition, not hard coded 1 = 1 2022-12-20 09:30:21 +01:00
Lukas Eder
67e658eb9f [jOOQ/jOOQ#5799] Rename OrdinalityTable to WithOrdinalityTable 2022-12-19 16:09:58 +01:00
Lukas Eder
ff23814a45 [jOOQ/jOOQ#5799] Rename OrdinalityTable to WithOrdinalityTable 2022-12-19 15:54:51 +01:00
Lukas Eder
ca266a307a [jOOQ/jOOQ#14421] Update error reporting URL in log messages 2022-12-19 10:46:09 +01:00
Lukas Eder
e8175b9392 [jOOQ/jOOQ#14416] Support UNNEST(ARRAY[...]) in dialects that do not otherwise support arrays 2022-12-16 16:26:21 +01:00
Lukas Eder
80395e3c5b [jOOQ/jOOQ#11981] Fix ARRAY_OVERLAP emulation 2022-12-16 14:56:56 +01:00
Lukas Eder
0d6f26f51d [jOOQ/jOOQ#14356] Fixed regression
The goal of this algorithm is to iteratively traverse the tree breadth
first, keeping a heap based stack to emulate depth first traversal. The
previous algorithm mixed up the order on that stack, such that some
trees were traversed in the wrong order, producing wrong results, e.g.

  (1 + 2) + (3 + 4)

Was rendered as

  (3 + 1 + 2 + 4)

# Conflicts:
#jOOQ/src/main/java/org/jooq/impl/Expression.java
2022-12-16 14:55:59 +01:00
Lukas Eder
2b705c8677 [jOOQ/jOOQ#11981] Emulate array functions in H2, HSQLDB:
- ARRAY_APPEND
- ARRAY_OVERLAP
- ARRAY_PREPEND
- ARRAY_REMOVE
2022-12-16 11:25:48 +01:00
Lukas Eder
0c01b82177 [jOOQ/jOOQ#5799] Add emulation determinism disclaimer 2022-12-16 10:12:03 +01:00
Lukas Eder
ab88ab10eb [jOOQ/jOOQ#5799] Add parser support for WITH ORDINALITY 2022-12-15 21:23:36 +01:00
Lukas Eder
bfe5d5151f [jOOQ/jOOQ#5799] Move Table::withOrdinality into OSS section! 2022-12-15 17:13:41 +01:00
Lukas Eder
cc2e45792b [jOOQ/jOOQ#5799] Fix regressions in ORACLE dialect 2022-12-15 17:10:17 +01:00
Lukas Eder
2b9b352ec1 [jOOQ/jOOQ#5799] Fix tests and regressions 2022-12-15 16:34:39 +01:00
Lukas Eder
c34f0a9a8e [jOOQ/jOOQ#5799] Fix CockroachDB DerivedTable WITH ORDINALITY 2022-12-15 16:18:59 +01:00
Lukas Eder
ad66b4ec3b [jOOQ/jOOQ#5799] Add support for the SQL Standard WITH ORDINALITY clause
This includes:
- [jOOQ/jOOQ#14406] The AutoAlias feature isn't applied from within the JOIN tree, only from the TableList
- Update AutoAlias to allow for auto-aliasing other tables than this
- Add NoAutoAlias to prevent aliasing in derived column list emulations
- Removed TableWithOrdinalityStep again, all Table types are supported
- Implement emulations
- Added an AbstractAutoAliasTable base implementation for AliasTable
- [jOOQ/jOOQ#14409] Refactor Values to implement AutoAlias
- [jOOQ/jOOQ#13971] Use DataType::array internally
- [jOOQ/jOOQ#14388] Fix data type of ArrayConcat expression
2022-12-15 16:03:31 +01:00
Lukas Eder
b7c2c5e347 [jOOQ/jOOQ#11981] Support ARRAY_APPEND and ARRAY_PREPEND 2022-12-13 17:33:51 +01:00
Lukas Eder
a1a67a0b17 [jOOQ/jOOQ#11981] Pull up PostgresDSL::arrayRemove 2022-12-13 16:09:50 +01:00
Lukas Eder
9d75ad1b2e [jOOQ/jOOQ#11981] [jOOQ/jOOQ#14352] Pull up PostgresDSL::arrayOverlap
This implicitly fixes:
- [jOOQ/jOOQ#14352] PostgresDSL arrayOverlap does not properly cast arguments
2022-12-13 15:33:36 +01:00
Lukas Eder
26ec94ce70 [jOOQ/jOOQ#14403] "You can't specify target table '...' for update in FROM clause" when target table has index hint in MySQL 2022-12-13 15:02:12 +01:00
Lukas Eder
4b9ceea9ea [jOOQ/jOOQ#14356] java.lang.StackOverflowError at
org.jooq.impl.Expression.acceptAssociative
2022-12-13 13:19:46 +01:00
Lukas Eder
0a5352f89a [jOOQ/jOOQ#14395] DSL::noField doesn't work in SEEK clause 2022-12-13 09:50:12 +01:00
Lukas Eder
97da2154f3 [jOOQ/jOOQ#13640] Added more Javadoc 2022-12-12 09:52:17 +01:00
Lukas Eder
54e3bc3c2c [jOOQ/jOOQ#13640] Add QOM.WithTable 2022-12-09 17:58:59 +01:00
Lukas Eder
42d7e21983 [jOOQ/jOOQ#13640] Add QOM.HintedTable 2022-12-09 17:58:35 +01:00
Lukas Eder
a2c6a1a225 [jOOQ/jOOQ#14387] Fix also FlashbackTable 2022-12-09 17:44:42 +01:00
Lukas Eder
fa7f31d3cb [jOOQ/jOOQ#14387] Table::useIndex and similar table wrapping methods
break joins using onKey()
2022-12-09 17:37:32 +01:00
Lukas Eder
d5ecfa9140 [jOOQ/jOOQ#14388] Parser support for ARRAY_CAT 2022-12-09 15:16:43 +01:00
Lukas Eder
9dd9758844 [jOOQ/jOOQ#14388] Deprecate PostgresDSL::arrayCat 2022-12-09 14:57:09 +01:00
Lukas Eder
5094b07ac5 [jOOQ/jOOQ#14388] Add support for ARRAY concatenation 2022-12-09 14:51:53 +01:00
Lukas Eder
0173f5dded [jOOQ/jOOQ#14379] Add DSL.raw(String) and
Settings.renderPlainSQLTemplatesAsRaw to allow plain SQL without
templating
2022-12-08 16:32:36 +01:00
Lukas Eder
9c90643c12 [jOOQ/jOOQ#14383] Broken link in a logging statement and Javadoc 2022-12-08 16:32:13 +01:00
Lukas Eder
67d13e8ec1 [jOOQ/jOOQ#14195] Generate WKB inside of JSON for MySQL/PG dialects 2022-12-06 17:24:09 +01:00
Lukas Eder
ca5fb47c5b [jOOQ/jOOQ#14372] Parser reports wrong Ambiguous field identifier error when derived tables share column names 2022-12-06 14:59:10 +01:00
Lukas Eder
0da4dea7cb [jOOQ/jOOQ#14368] Meta::getTables should list also PARTITIONED TABLE 2022-12-06 14:10:46 +01:00
Lukas Eder
45882adcf3 [jOOQ/jOOQ#14373] Parser produces wrong projection data type when
parsing doubly nested derived table
2022-12-06 14:10:25 +01:00
Lukas Eder
c0c1aa4e13 Revert "[jOOQ/jOOQ#13640] Seal significant parts of the QOM API".
Eclipse isn't ready yet, produces OOME. I have no time to investigate
this, currently. It will improve eventually.
2022-12-06 10:37:13 +01:00
Lukas Eder
c68ea952c0 [jOOQ/jOOQ#13640] This particular sealed type makes the compiler trip
(?)
2022-12-06 08:41:43 +01:00
Lukas Eder
d10f9406e6 [jOOQ/jOOQ#13640] Seal significant parts of the QOM API 2022-12-05 20:41:36 +01:00
Lukas Eder
53a33e376e [jOOQ/jOOQ#13640] Seal significant parts of the QOM API 2022-12-05 20:11:34 +01:00
Lukas Eder
87416ff5f9 [jOOQ/jOOQ#13640] Seal significant parts of the QOM API 2022-12-05 17:33:04 +01:00
Lukas Eder
207223b100 [jOOQ/jOOQ#13640] Seal significant parts of the QOM API 2022-12-05 16:56:50 +01:00
Lukas Eder
599b5540b7 [jOOQ/jOOQ#14366] Add HANA support for UPDATE .. FROM 2022-12-05 16:10:00 +01:00
Lukas Eder
81d180d5b3 [jOOQ/jOOQ#14365] Emulate expressions in LIMIT .. OFFSET where not
natively supported in more dialects
2022-12-05 15:34:43 +01:00
Lukas Eder
8e6a9b45f9 [jOOQ/jOOQ#14365] Emulate expressions in LIMIT .. OFFSET where not natively supported in more dialects 2022-12-05 15:26:33 +01:00