Commit Graph

7651 Commits

Author SHA1 Message Date
Lukas Eder
6b70ac044f [jOOQ/jOOQ#13664] Avoid ambiguous reference when using Table<R> as
SelectField<R> for table conflicting with column
2022-06-13 15:30:29 +02:00
Lukas Eder
4b9e25ed27 [jOOQ/jOOQ#7362] Fixed some unit tests 2022-06-13 13:53:27 +02:00
Lukas Eder
a24f8def43 [jOOQ/jOOQ#7362] Some pedantry 2022-06-13 12:29:01 +02:00
Lukas Eder
255933935d [jOOQ/jOOQ#7362] More parenthesised conditions (in some dialects):
- TrueCondition
- FalseCondition
- NullCondition
2022-06-13 12:26:53 +02:00
Lukas Eder
3778a8796f [jOOQ/jOOQ#1049] Java 8 compiler needs type witnesses here 2022-06-13 11:57:23 +02:00
Lukas Eder
bb9900ba8f [jOOQ/jOOQ#13660] PostgreSQL ON CONFLICT .. WHERE .. DO NOTHING generates not valid SQL 2022-06-13 11:57:10 +02:00
Lukas Eder
74208f3398 [jOOQ/jOOQ#1049] Better GREATEST() and LEAST() emulations for SQL Server using MAX() or MIN() with VALUES() correlated derived table 2022-06-10 09:00:14 +02:00
Lukas Eder
5b26e7b827 [jOOQ/jOOQ#13650] Settings.emulateMultiset should have NestedCollectionEmulation.JSON as default in PostgreSQL 2022-06-08 16:25:23 +02:00
Lukas Eder
abbcbd40b0 [jOOQ/jOOQ#13647] DefaultRecordUnmapper should cache AbstractRow and record type 2022-06-08 12:36:37 +02:00
Lukas Eder
afc404eb44 [jOOQ/jOOQ#13643] Wrong result column type for requested conversion when reading JSONB_ARRAY nested in ROW in DB2 2022-06-08 10:57:04 +02:00
Lukas Eder
b58a8573ec [jOOQ/jOOQ#13641] Remove outdated issue reference 2022-06-07 14:10:03 +02:00
Lukas Eder
4a58988014 [jOOQ/jOOQ#7508] Fixed OSS edition syntax 2022-06-07 14:09:50 +02:00
Lukas Eder
b3a044b621 [jOOQ/jOOQ#13069] Revert prototype 2022-06-07 12:01:24 +02:00
Lukas Eder
a3fdbba5e3 [jOOQ/jOOQ#7508] Emulate only if path root child is the DML target table 2022-06-02 12:14:55 +02:00
Lukas Eder
2c866319b7 [jOOQ/jOOQ#7508] Add support for implicit joins in DML 2022-06-02 10:47:39 +02:00
Lukas Eder
2bd740ecca [jOOQ/jOOQ#13631] Add Context.topLevel() and Context.topLevelForLanguageContext() to give access to the top level QueryPart type that is being rendered 2022-06-02 09:50:13 +02:00
Lukas Eder
3dfe4750dc [jOOQ/jOOQ#13611] UnsupportedOperationException when selecting single
nested row with JSON column
2022-05-31 14:09:14 +02:00
Lukas Eder
768f5033b4 [jOOQ/jOOQ#13619] Revert this for now, until compilation issues are understood 2022-05-31 12:29:08 +02:00
Lukas Eder
76d7abe490 [jOOQ/jOOQ#13619] org.jetbrains.annotations dependency should be requires transitive 2022-05-31 10:56:20 +02:00
Lukas Eder
48ff999495 [jOOQ/jOOQ#13618] Document EnumType::lookupLiteral's nullable result 2022-05-31 10:53:54 +02:00
Lukas Eder
11467e91c2 [jOOQ/jOOQ#13605] Add JSONtoJacksonConverter, JSONBtoJacksonConverter, XMLtoJAXBConverter implementations 2022-05-26 15:56:49 +02:00
Lukas Eder
7cfee02d44 [jOOQ/jOOQ#13601] Derby boolean expressions have to be wrapped in parentheses when passed to COALESCE 2022-05-25 09:32:20 +02:00
Lukas Eder
e41d0d281c Document cast that is a workaround for an Eclipse compiler issue
Issue here: https://github.com/eclipse-jdt/eclipse.jdt.core/issues/99
2022-05-24 15:22:45 +02:00
Lukas Eder
16a4b7ea50 [jOOQ/jOOQ#13129] Fixed compilation errors 2022-05-24 14:22:48 +02:00
Lukas Eder
342e5096bc [jOOQ/jOOQ#13129] Don't pass boolean flags. Pass named bit encoding. 2022-05-24 14:14:24 +02:00
Lukas Eder
aca360f553 [jOOQ/jOOQ#13599] Let Context extends ExecuteScope 2022-05-24 13:03:21 +02:00
Lukas Eder
6b03c3f0de [jOOQ/jOOQ#13560] Use MULTISET emulation for nested rows with LIMIT
In older Oracle versions, we emulate LIMIT with ROWNUM calculations in derived tables. In those cases, it seems very hard to keep the flattening nested record emulation working. Better work with the MULTISET emulation of nested records, instead.

This includes parts of the implementation of [jOOQ/jOOQ#13599]
2022-05-24 12:29:41 +02:00
Lukas Eder
e63719fad0 [jOOQ/jOOQ#12430] Make Java 17 the baseline for the jOOQ Open Source Edition 2022-05-23 16:45:35 +02:00
Lukas Eder
5371c335dd [jOOQ/jOOQ#13573] Add parser support for the PostgreSQL EXCLUDED pseudo table and MySQL VALUES() syntax 2022-05-23 15:26:41 +02:00
Lukas Eder
2fa0495ec7 [jOOQ/jOOQ#12721] Add more startup tips to be logged with the jOOQ logo 2022-05-23 13:31:12 +02:00
Lukas Eder
37d023621d [jOOQ/jOOQ#13591] Add a new ColumnElement type 2022-05-23 12:11:55 +02:00
Lukas Eder
bd1e672ff3 [jOOQ/jOOQ#2333] noField() support in UPDATE and DELETE 2022-05-23 11:25:12 +02:00
Lukas Eder
14538ec894 [jOOQ/jOOQ#13581] Remove more unnecessary unary op parentheses
- For more functions with some default emulations
2022-05-20 17:39:49 +02:00
Lukas Eder
9d166fd99c [jOOQ/jOOQ#13581] Remove more unnecessary unary op parentheses
- For functions with some default emulations
2022-05-20 16:52:38 +02:00
Lukas Eder
aa68778250 Work around random compiler trip-up because of rawtypes
This time, the JDK 11 compiler seems to have suddenly tripped because of these rawtypes (I think)? The only change that was made prior to this was completely unreleated, in DefaultRecordMapper...
2022-05-20 15:44:45 +02:00
Lukas Eder
eb94c888d3 Update generated RowImpl[N] class formatting 2022-05-20 15:41:15 +02:00
Lukas Eder
7e942071e4 [jOOQ/jOOQ#8681] [jOOQ/jOOQ#13581] Fix CONNECT_BY_ROOT parentheses 2022-05-20 11:17:46 +02:00
Lukas Eder
700d5499ea [jOOQ/jOOQ#13581] Remove more unnecessary unary op parentheses
- For functions with only default emulations
2022-05-20 10:25:11 +02:00
Lukas Eder
4fe70c0767 [jOOQ/jOOQ#13581] Remove more unnecessary unary op parentheses
- For bind values of internal types (non-custom Binding)
- For TableField
- For functions without emulations
2022-05-20 09:59:35 +02:00
Lukas Eder
6e8c6c6243 [jOOQ/jOOQ#13582] DefaultRecordMapper should check whether user is attempting to map into an inner class 2022-05-20 08:50:15 +02:00
Lukas Eder
d5d95a8e5c [jOOQ/jOOQ#13581] Re-generate QOM API 2022-05-19 21:30:14 +02:00
Lukas Eder
fa6c71daeb [jOOQ/jOOQ#13581] Excess parentheses generated in unary ~ or - operators
This includes marking these as parenthesised:

- QOM.Add
- QOM.Sub
- QOM.Mul
- QOM.Div
2022-05-19 21:25:48 +02:00
Lukas Eder
c8729c9349 [jOOQ/jOQO#7284] Replace common patterns in query object model
- transformPatternsBitNotNand
- transformPatternsBitNotNor
- transformPatternsBitNotXNor
2022-05-19 20:40:15 +02:00
Lukas Eder
d1664b74ad [jOOQ/jOOQ#7912] Re-generated API 2022-05-19 11:27:29 +02:00
Lukas Eder
7f8a2ed549 [jOOQ/jOOQ#5214] Remove pro-only check from OSS edition 2022-05-19 11:17:25 +02:00
Lukas Eder
aa6d988ae4 [jOOQ/jOOQ#13578] Add native support for BITXNOR in H2 2022-05-19 11:14:36 +02:00
Lukas Eder
59d507bea7 [jOOQ/jOOQ#12688] Add support for H2's BIT_NAND_AGG, BIT_NOR_AGG, BIT_XNOR_AGG aggregate functions 2022-05-19 11:14:27 +02:00
Lukas Eder
f366b4976e [jOOQ/jOOQ#12688] Add support for H2's BIT_NAND_AGG, BIT_NOR_AGG, BIT_XNOR_AGG aggregate functions 2022-05-19 10:58:33 +02:00
Lukas Eder
6ccb0aee8b [jOOQ/jOOQ#11969] [jOOQ/jOOQ#12721] Condition <: Field<Boolean> as a tip 2022-05-19 10:06:20 +02:00
Lukas Eder
28f3a4f3ce [jOOQ/jOOQ#5214] MySQL 8.0.20 EXCLUDED emulation should name the table t
In various emulations, we're already calling auxiliary tables t, so this alias should also be applied to the EXCLUDED emulation, which benefits cases where INSERT .. SELECT is used and stored client side computed columns are involved. Re-wrapping the SELECT query to generate an EXCLUDED alias would only further complicate the logic.
2022-05-18 16:24:54 +02:00