Commit Graph

12589 Commits

Author SHA1 Message Date
Lukas Eder
ca4964b9aa [jOOQ/jOOQ#9483] Add XMLDatabase support
This includes:

- [jOOQ/jOOQ#15745] TableDefinition.getTable() should return better meta data
2023-10-24 10:02:01 +02:00
Lukas Eder
85c42745ee [jOOQ/jOOQ#11263] Add KeyColumnUsage.positionInUniqueConstraint to the InformationSchema for use with XMLDatabase 2023-10-24 09:35:34 +02:00
Lukas Eder
6f93425854 [jOOQ/jOOQ#14551] [jOOQ/jOOQ#15731] Use landing page link 2023-10-23 17:38:25 +02:00
Lukas Eder
7fc4025f43 [jOOQ/jOOQ#14551] [jOOQ/jOOQ#15731] Add tip for commercial only features 2023-10-23 17:03:34 +02:00
Lukas Eder
d5bcd18e05 [jOOQ/jOOQ#8283] BatchCRUD does not update optimistic locking version
and timestamp values in UpdatableRecord
2023-10-23 16:29:45 +02:00
Lukas Eder
5002cea5c6 [jOOQ/jOOQ#15735] Ill-formed Javadoc causes JDK 21 javadoc tool to crash 2023-10-23 10:01:58 +02:00
Lukas Eder
28e5653c28 [jOOQ/jOOQ#15595] DefaultStringBinding should bind java.sql.Clob for
CLOB types in Oracle MERGE statements

This includes:

- [jOOQ/jOOQ#15724] BindingSetStatementContext should reference actual
ExecuteContext, if available
2023-10-20 12:01:38 +02:00
Lukas Eder
fb351a48f2 [jOOQ/jOOQ#15702] Reactive transaction hangs when exception thrown in
lambda constructing reactive flow
2023-10-12 15:00:58 +02:00
Lukas Eder
2d165c7c32 Sort list 2023-10-10 09:26:31 +02:00
Lukas Eder
124e90c9e0
Merge pull request #15693 from lhauspie/main
Fix a typo in a Tip
2023-10-10 09:22:49 +02:00
Logan HAUSPIE
52f56673b1
Fix a typo in a Tip 2023-10-09 23:59:00 +02:00
Lukas Eder
5b9f5eb161 [jOOQ/jOOQ#2682] [jOOQ/jOOQ#15632] Support DEFAULT values in INSERT 2023-10-05 16:30:27 +02:00
Lukas Eder
0b0e73ce87 [jOOQ/jOOQ#15687] HANA sort indirection doesn't work with bind values 2023-10-05 16:01:39 +02:00
Lukas Eder
2b77563721 [jOOQ/jOOQ#15686] Generated DEFAULT expressions should always be
syntactically valid for all data types in HANA
2023-10-05 15:35:49 +02:00
Lukas Eder
b82c6a3e91 [jOOQ/jOOQ#15685] Emulate DEFAULT expression in multi row INSERT .. VALUES, where that is emulated with INSERT .. SELECT 2023-10-05 14:25:58 +02:00
Lukas Eder
0d83a4894a [jOOQ/jOOQ#15682] Handle DEFAULT VALUES as well 2023-10-05 12:38:19 +02:00
Lukas Eder
499a79792b [jOOQ/jOOQ#15682] Emulate INSERT .. DEFAULT VALUES for dialects where no DEFAULT expression exists for DML
This includes:

- [jOOQ/jOOQ#15683] Incorrect DEFAULT values generated for Informix
- [jOOQ/jOOQ#15684] Add support for POSITION() in Informix via INSTR
2023-10-05 12:21:48 +02:00
Lukas Eder
1d5b43ba5a Merge branch 'main' of github.com:jOOQ/jOOQ 2023-10-05 12:20:30 +02:00
Lukas Eder
b6c28cd906 [jOOQ/jOOQ#11251] Add emulation support for IF [ NOT ] EXISTS to MySQL for DDL on INDEX and VIEW objects 2023-10-04 17:26:17 +02:00
Lukas Eder
5499ca8f61 [jOOQ/jOOQ#15627] Add parser support for functions without parameter
names
2023-10-04 15:43:27 +02:00
Lukas Eder
e17ad6d31b [jOOQ/jOOQ#13301] Allow kotlin pojos to not have defaulted constructor parameters 2023-10-04 14:32:47 +02:00
Lukas Eder
5e066d0a53 [jOOQ/jOOQ#15677] Make sure CHECK constraint ordering is stable 2023-10-04 11:01:19 +02:00
Lukas Eder
be25d7126f [jOOQ/jOOQ#15677] Make sure CHECK constraint ordering is stable 2023-10-03 17:37:17 +02:00
Lukas Eder
4bce9f79b7 [jOOQ/jOOQ#15677] Code generator doesn't generate multiple check constraints for DOMAIN types 2023-10-03 15:53:24 +02:00
Lukas Eder
9fa41c4743 [jOOQ/jOOQ#15673] Domains aren't generated if they don't have a CHECK constraint associated with them, in HSQLDB 2023-10-03 11:28:34 +02:00
Lukas Eder
f5315bec35 [jOOQ/jOOQ#15668] INSERT .. ON DUPLICATE KEY UPDATE emulation mustn't silently insert the last row only in Derby multi row inserts 2023-10-02 16:29:37 +02:00
Lukas Eder
bfc88406bb [jOOQ/jOOQ#15504] Query::isExecutable should be checked in the R2DBC, allowing no-ops for non-executable queries 2023-10-02 11:56:42 +02:00
Lukas Eder
178e9add3f [jOOQ/jOOQ#15442] Upgrade dependencies 2023-10-02 09:35:37 +02:00
Lukas Eder
8d7c5d7b7c [jOOQ/jOOQ#15632] OSS edition fix 2023-10-02 09:31:07 +02:00
Lukas Eder
8312478a1d [jOOQ/jOOQ#15442] Upgrade dependencies 2023-10-02 09:30:57 +02:00
Lukas Eder
fb514760df [jOOQ/jOOQ#15658] Copy paste errors in likeIgnoreCase and containsIgnoreCase Javadoc 2023-09-29 16:59:31 +02:00
Lukas Eder
0e4b997fd0
Merge pull request #15658 from schnapster/fix-ilike-not-docs
Clean up wrong NOTs in ILIKE docs
2023-09-29 16:54:33 +02:00
Lukas Eder
2923e4aa77 [jOOQ/jOOQ#15632] Support INSERT .. ON DUPLICATE KEY UPDATE 2023-09-29 16:47:13 +02:00
Lukas Eder
6e26879228 [jOOQ/jOOQ#15564] MutablePOJOMapper should be able to map to instance,
even if there isn't a default constructor

This fixes:

- [jOOQ/jOOQ#15559] KotlinGenerator - isKotlinNotNullPojoAttributes
setting prevents generated DAO to set serial ID to pojo
2023-09-29 16:46:32 +02:00
Lukas Eder
d92b678e16 Re-generated example code 2023-09-29 16:45:27 +02:00
Napster
5ca94d3ebe
Clean up wrong NOTs in ILIKE docs 2023-09-29 15:40:37 +03:00
Lukas Eder
526e259b6b [jOOQ/jOOQ#15650] DefaultConfiguration doesn't serialize AuditProvider or TransformProvider 2023-09-28 15:06:30 +02:00
Lukas Eder
af4324acbe [jOOQ/jOOQ#15619] On JDK 21, generated code should apply "this-escape" warning suppression 2023-09-28 14:37:17 +02:00
Lukas Eder
70f2c22335 [jOOQ/jOOQ#2682] [jOOQ/jOOQ#15632] Handle UPDATE .. SET
UPDATE .. SET must not produce rows that will no longer be accessible under any policy, so for UPDATE, a policy might generate 2 predicates. A first one for the WHERE part to allow only updates on rows that already are valid according the policy, and a second one to check if the SET clause will produce rows that will still be valid.
2023-09-28 12:53:22 +02:00
Lukas Eder
b48f742ac9 [jOOQ/jOOQ#2682] [jOOQ/jOOQ#15644] Refactor policy inheritance 2023-09-28 11:30:57 +02:00
Lukas Eder
61ef356d93 [jOOQ/jOOQ#2682] [jOOQ/jOOQ#15644] Make Policy<R> generic.
For now, I'm settling for declaring inherited paths from child to parent, not from parent to child. This means we can make Policy<R> generic, and require paths to be Path<R> as well for added type safety.
2023-09-28 11:21:14 +02:00
Lukas Eder
4372d36d00 [jOOQ/jOOQ#2682] Avoid duplicating the policy predicate
When a policy generates a derived table in an outer join (where the InlineDerivedTable cannot be inlined), then we produced the policy predicate twice.
2023-09-28 10:17:46 +02:00
Lukas Eder
7921c5ecdd [jOOQ/jOOQ#15644] Add Policy::inherited to specify whether child tables
should inherit a parent table's policies
2023-09-27 17:34:07 +02:00
Lukas Eder
d8dcff48da [jOOQ/jOOQ#2682] Remove PolicyStatement again
PostgreSQL's feature where policies can apply to statements (or commands, such as SELECT, INSERT, UPDATE, DELETE) may be a bit overengineered for jOOQ. It would be very hard to re-implement the same semantics as PostgreSQL, in particular because we also cannot distinguish between USING and CHECK semantics easily.

As such, let's keep things simple and implement only ALL semantics.
2023-09-27 15:09:46 +02:00
Lukas Eder
59c268f7c0 [jOOQ/jOOQ#2682] Support multiple PolicyProvider instances 2023-09-27 14:44:47 +02:00
Lukas Eder
3aab7f2f19 [jOOQ/jOOQ#2682] Support multiple PolicyProvider instances 2023-09-27 14:44:05 +02:00
Lukas Eder
e11e6adb93 [jOOQ/jOOQ#15632] [jOOQ/jOOQ#15641] Fix OSS edition regression 2023-09-27 14:36:06 +02:00
Lukas Eder
d11690f584 [jOOQ/jOOQ#15632] [jOOQ/jOOQ#15641] Handle DML table aliases
The prior implementation of working around DML table aliases in INSERT statements wasn't entirely correct with respect to how InlineDerivedTables are now handled. A minor refactor fixes the issue.

See also:
- [jOOQ/jOOQ#8382]
- [jOOQ/jOOQ#8384]
2023-09-27 12:23:50 +02:00
Lukas Eder
e46eabf1cb [jOOQ/jOOQ#2682] [jOOQ/jOOQ#15632] Make SchemaMapping work
SchemaMapping may rename a table in the inline derived table's condition, so the inline derived table alias needs to take this into account as well.

There are probably quite a few related bugs in jOOQ, which aren't showing in existing integration tests yet...
2023-09-26 16:29:47 +02:00
Lukas Eder
7101c4b371 [jOOQ/jOOQ#15639] RenderMapping doesn't apply to QualifiedRowid 2023-09-26 13:32:47 +02:00