Commit Graph

11291 Commits

Author SHA1 Message Date
Lukas Eder
0d60fd887f [jOOQ/jOOQ#9817] Added config 2022-05-19 15:46:17 +02:00
Lukas Eder
65e3a39f2b [jOOQ/jOOQ#11071] First prototype committed
- Added code generation configuration
- Simple code generation implementation
- Simple integration tests
2022-05-19 15:28:46 +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
Lukas Eder
939ce28117 [jOOQ/jOOQ#13574] Correct order of excluded and computed logic
EXCLUDED logic should happen before the stored client side computed column logic because the former can be implemented in the OSS edition if we don't have to traverse the entire update map using QOM traversal
2022-05-18 15:41:32 +02:00
Lukas Eder
a39f95a117 [jOOQ/jOOQ#12868] The DATA_RENDERING_DATA_CHANGE_DELTA_TABLE qualification omission doesn't work correctly in the presence of scalar subqueries 2022-05-18 15:34:15 +02:00
Lukas Eder
7aeed2e41f [jOOQ/jOOQ#13555] More casts are required for likeIgnoreCase() 2022-05-18 14:33:01 +02:00
Lukas Eder
524c153261 [jOOQ/jOOQ#13574] UpdatableRecord::merge might produce wrong update count if generated keys can't be fetched 2022-05-18 14:17:22 +02:00
Lukas Eder
2761c8efdb [jOOQ/jOOQ#11770] UpdatableRecord::merge should use new EXCLUDED semantics to avoid repeating bind values 2022-05-18 14:05:29 +02:00
Lukas Eder
9053bd8857 [jOOQ/jOOQ#7912] Support parsing SET ALL TO EXCLUDED 2022-05-18 12:51:46 +02:00
Lukas Eder
b8fcf22fb9 [jOOQ/jOOQ#7912] Add InsertOnDuplicateSetStep::setAllToExcluded to auto-set all insert column list columns to their EXCLUDED value 2022-05-18 12:36:00 +02:00
Lukas Eder
b650db1f0d [jOOQ/jOOQ#5214] Updated MySQL emulation of EXCLUDED for INSERT SELECT 2022-05-18 11:17:51 +02:00
Lukas Eder
8ad020c55b [jOOQ/jOOQ#5214] Updated MySQL emulation of EXCLUDED
For INSERT .. VALUES, we now generate the new syntax starting from MySQL 8.0.20, which is using VALUES (...) AS EXCLUDED. This doesn't work yet for INSERT .. SELECT, which I'll fix right away.
2022-05-18 11:01:46 +02:00
Lukas Eder
e62218ac9a [jOOQ/jOOQ#13571] Added Derby emulation 2022-05-18 10:22:22 +02:00
Lukas Eder
8a4d33519d [jOOQ/jOOQ#13571] Fixed instanceof pattern backport 2022-05-18 09:59:38 +02:00
Lukas Eder
f11d60d67b [jOOQ/jOOQ#13572] Add SQLDialect.MYSQL_8_0_20 2022-05-18 09:21:09 +02:00
Lukas Eder
8d668b00b5 [jOOQ/jOOQ#13571] Emulate the PostgreSQL ON CONFLICT .. EXCLUDED pseudo table in MERGE emulation 2022-05-18 09:17:47 +02:00
Lukas Eder
7cb60cf8ce [jOOQ/jOOQ#5214] Add support for PostgreSQL's EXCLUDED table 2022-05-17 17:45:50 +02:00
Lukas Eder
38493f7ca1 [jOOQ/jOOQ#11969] Restore NotField patch 2022-05-17 16:36:18 +02:00
Lukas Eder
9bbf43fba6 [jOOQ/jOOQ#13557] MySQL / MariaDB generated columns with enum type are
not generated as readonly
2022-05-17 16:23:40 +02:00
Lukas Eder
0b7e91c18b [jOOQ/jOOQ#13563] INSERT .. RETURNING emulations shouldn't acquire
multiple connections from ConnectionProvider when using
ThreadLocalTransactionProvider
2022-05-17 16:23:25 +02:00
Lukas Eder
3d4af4f206 [jOOQ/jOOQ#12989] Update R2DBC dependency to 0.9.1.RELEASE 2022-05-17 11:58:18 +02:00
Lukas Eder
6def0cb81a [jOOQ/jOOQ#11969] Need to explicitly wrap aliases 2022-05-17 11:09:21 +02:00
Lukas Eder
088571bbcc [jOOQ/jOOQ#11969] Let Condition extend Field<Boolean> 2022-05-17 10:38:28 +02:00
Lukas Eder
5b5a57eab8 [jOOQ/jOOQ#13553] Add asMultiset(Field<?>|Name|String alias) overloads. 2022-05-16 10:21:42 +02:00
Lukas Eder
b95715d1fc [jOOQ/jOOQ#13558] Add a PrefixSuffixGeneratorStrategy to jOOQ-codegen 2022-05-13 16:00:59 +02:00
Lukas Eder
95bc88e5fe [jOOQ/jOOQ#13069] Added <existsConvenience/> 2022-05-13 09:21:23 +02:00
Lukas Eder
e122273e50 [jOOQ/jOOQ#13553] Add TableLike<R>.asMultiset(): Field<Result<R>>
This includes:

- [jOOQ/jOOQ#13552] Change DSL.multiset(Select<R>) into DSL.multiset(TableLike<R>)
2022-05-12 17:11:28 +02:00
Lukas Eder
7f416b3136 [jOOQ/jOOQ#13546] Stop aligning generated POJO members and constructor arguments in columns 2022-05-12 15:50:08 +02:00
Lukas Eder
19efc7a3ec [jOOQ/jOOQ#5970] Add Setting to auto-inline all bind variables that participate in predicates on certain fields 2022-05-12 10:59:18 +02:00
Lukas Eder
78792b0659 [jOOQ/jOOQ#10677¨Add <onUnused/> to code generation configuration to specify behaviour when encountering unused objects 2022-05-11 16:05:07 +02:00
Lukas Eder
124640771f [jOOQ/jOOQ#13545] DSL.quotedName(String[]) should produce QualifiedName only if argument array length != 1 2022-05-11 12:17:24 +02:00
Lukas Eder
66d680e0a5 [jOOQ/jOOQ#12287] Replace calls to System.currentTimeMillis() by Clock
usage
2022-05-11 09:10:53 +02:00
Lukas Eder
9d07310fc0 [jOOQ/jOOQ#13544] Remove EXPERIMENTAL remark from ad-hoc converter and MULTISET construction API 2022-05-10 17:24:48 +02:00
Lukas Eder
f55181e4b0 [jOOQ/jOOQ#10304] Re-generated code 2022-05-10 17:00:26 +02:00
Lukas Eder
fc1e7a2807 [jOOQ/jOOQ#10304] Unnecessary parentheses generated in ConditionAsField 2022-05-10 16:52:14 +02:00
Lukas Eder
581b232b30 Stupid Java 8 compiler bug, again 2022-05-10 16:36:06 +02:00
Lukas Eder
9c7636d290 [jOOQ/jOOQ#7362] NOT NOT x is invalid in Derby. Revert to NOT (NOT x) 2022-05-10 15:31:28 +02:00
Lukas Eder
c9cfe48f5d [jOOQ/jOOQ#7362] NOT NOT x is invalid in Derby. Revert to NOT (NOT x) 2022-05-10 15:27:49 +02:00
Lukas Eder
b8114532a8 [jOOQ/jOQO#7284] Fix patterns backport 2022-05-10 15:20:55 +02:00
Lukas Eder
a9c0c3f5b1 [jOOQ/jOOQ#13541] [jOOQ/jOOQ#13543] NullPointerException when rendering CTE without a top level context 2022-05-10 13:43:36 +02:00
Lukas Eder
ee187a4c04 [jOOQ/jOOQ#13534] Avoid rendering PostgreSQL native cast operator :: which cannot be used in Hibernate native queries 2022-05-10 12:27:57 +02:00
Lukas Eder
91a4e86125 [jOOQ/jOOQ#13542] Replace SPI default implementation class (e.g.
DefaultExecuteListener) by default methods in interface
2022-05-10 10:20:08 +02:00
Lukas Eder
41d08702a0 [jOOQ/jOOQ#13540] Remove "inline" and "reified" keywords from jOOQ-kotlin extensions where unnecessary 2022-05-09 14:24:34 +02:00
Lukas Eder
ee453a084a [jOOQ/jOOQ#13538] Add a <T, E> Field<Result<R>>.collecting(Collector<R, ?, E>) kotlin extension function, and similar 2022-05-09 12:55:05 +02:00