Commit Graph

11280 Commits

Author SHA1 Message Date
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
Lukas Eder
169102e69f [jOOQ/jOOQ#7362] Excess parentheses generated in NOT operator 2022-05-06 17:43:22 +02:00
Lukas Eder
06c2c31907 [jOOQ/jOQO#7284] Replace common patterns in query object model
- transformPatternsScalarSubqueryCountAsteriskGtZero
- transformPatternsScalarSubqueryCountExpressionGtZero
2022-05-06 15:32:11 +02:00
Lukas Eder
d26e2829cd [jOOQ/jOOQ#12893] Fixed imports 2022-05-06 11:23:48 +02:00
Lukas Eder
c77fbb5e55 [jOOQ/jOOQ#12893] Add an Replacers.listening(Replacer, BiConsumer<QueryPart, QueryPart>) to allow for listening to QueryPart.() events 2022-05-06 11:23:10 +02:00
Lukas Eder
6f099c6cc9 [jOOQ/jOOQ#13053] java.lang.NoClassDefFoundError: org/postgresql/util/PGInterval when rendering SQL without the pgjdbc dependency 2022-05-06 10:45:48 +02:00
Lukas Eder
96b09d7686 [jOOQ/jOOQ#6454] Support converting from java.sql.Array to Object[]
This fixes:
- [jOOQ/jOOQ#13454] ARRAY_AGG cannot aggregate array columns in H2
2022-05-05 15:46:12 +02:00
Lukas Eder
0bab3f41fa [jOOQ/jOOQ#13457] New configuration to generate implicit join definitions ALWAYS from foreign key name 2022-05-05 11:47:16 +02:00
Lukas Eder
e961592ea6 [jOOQ/jOOQ#13525] Improve Documentation for DSLContext.fetchStream() and related methods 2022-05-05 10:21:56 +02:00
Lukas Eder
098a290387 [jOOQ/jOOQ#13523] Add support for parsing ! (bang) as equivalent to .
(dot) in MS Access identifiers
2022-05-05 10:04:53 +02:00
Lukas Eder
7c6618833c [jOOQ/jOOQ#13509] MariaDB is also affected 2022-05-04 15:36:10 +02:00
Lukas Eder
51ba61d336 [jOOQ/jOOQ#13516] KotlinGenerator should generate implicit joins path
accessors as properties
2022-05-03 16:40:18 +02:00