Commit Graph

12699 Commits

Author SHA1 Message Date
Lukas Eder
514b39d359 [jOOQ/jOOQ#15967] Implicit path correlation shouldn't generate
correlation predicate if correlation isn't in scope
2023-12-20 13:35:46 +01:00
Lukas Eder
480329ab26 [jOOQ/jOOQ#15965] Regression in LiquibaseDatabase when omitting the database.liquibaseSchemaName value 2023-12-20 13:34:55 +01:00
Lukas Eder
227f932b41 [jOOQ/jOOQ#15958] YugabyteDB doesn't support ALTER TABLE .. DROP CONSTRAINT IF EXISTS 2023-12-19 10:01:16 +01:00
Lukas Eder
27a95c7c3a [jOOQ/jOOQ#15943] SQLite requires parenthesised DEFAULT expressions in DDL 2023-12-19 08:59:27 +01:00
Lukas Eder
d060580a98 [jOOQ/jOOQ#15942] KeepNamesGeneratorStrategy generates ambiguous path
names if implicitJoinPathTableSubtypes is activated
2023-12-18 10:53:46 +01:00
Lukas Eder
0fdd1e1f6f [jOOQ/jOOQ#15944] jOOQ-codegen-gradle should resolve relative
directories with respect to the gradle project, not the running process
2023-12-18 10:53:30 +01:00
Data Geekery CI Bot
8fc04cc536 Re-generated code 2023-12-16 04:26:32 +01:00
Lukas Eder
070d47a161 Release 3.20.0-SNAPSHOT 2023-12-15 17:16:27 +01:00
Lukas Eder
05f24d79e3 Release 3.19.1-SNAPSHOT 2023-12-15 17:08:05 +01:00
Lukas Eder
04dbbf4639 Release 3.19.0 2023-12-15 14:05:22 +01:00
Lukas Eder
139e1afe84 [jOOQ/jOOQ#12985] Replace Closure<?> usage by ObjectFactory usage
As recommended here:
https://github.com/jOOQ/jOOQ/issues/12985#issuecomment-1853325931 if we
pass around an ObjectFactory instance from Gradle, then all the meta
data can be made available to Gradle / IntelliJ for both kotlin and
groovy builds.
2023-12-13 11:23:24 +01:00
Lukas Eder
c697e1cc6c [jOOQ/jOOQ#15755] Make RenderImplicitJoinType.THROW default for to-many
To-many implicit joins are a controversial feature for the reasons
discussed in various issues. THROW is now the default for them, to make
sure no RDBMS with weird implementation for the SCALAR_SUBQUERY
implementation confuses users.

This change also correctly generates implicit joins from paths declared
in FROM, in case sub-paths are skipped.
2023-12-12 10:10:49 +01:00
Lukas Eder
50290b4c69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again 2023-12-08 16:32:25 +01:00
Lukas Eder
d40390cf69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again
It's no longer needed, now that the jOOQ-meta extensions classes provide methods accepting Action
2023-12-08 15:32:18 +01:00
Lukas Eder
9a9dfc8335 [jOOQ/jOOQ#14551] Add a tip about DAOs 2023-12-07 16:17:05 +01:00
Lukas Eder
60c910bf46 [jOOQ/jOOQ#15918] AbstractDatabase::markUsed doesn't work in some edge
cases
2023-12-07 14:13:54 +01:00
Lukas Eder
698fbc0f94 [jOOQ/jOOQ#12985] Add --debug CLI hint for Gradle 2023-12-07 12:41:11 +01:00
Lukas Eder
f2a4c7667c [jOOQ/jOOQ#12985] Add comment explaining rationale for explicit Closure
We still need explicit groovy Closure support in our DSL API for gradle because of an interesting decision in ClosureBackedAction to prefer Closure.OWNER_ONLY over Closure.DELEGATE_FIRST. Apparenty, OWNER_ONLY is faster, but DELEGATE_FIRST is really what we want, irrespective of speed
2023-12-07 12:05:57 +01:00
Lukas Eder
1c908c0294 [jOOQ/jOOQ#12985] Add org.gradle.api.Action support 2023-12-07 12:01:53 +01:00
Lukas Eder
d2e991454c [jOOQ/jOOQ#12985] Add @DelegatesTo annotation to all closures 2023-12-06 17:10:26 +01:00
Lukas Eder
5aa6185d92 [jOOQ/jOOQ#12985] Clone the closures for good measure 2023-12-06 11:15:57 +01:00
Lukas Eder
5befaf6576 [jOOQ/jOOQ#12985] Support a Groovy DSL in jOOQ-codegen-gradle 2023-12-05 16:37:21 +01:00
Lukas Eder
ccaab3f6ad [jOOQ/jOOQ#12985] No longer recommending the third party plugin 2023-12-05 08:30:22 +01:00
Lukas Eder
9fec09343a [jOOQ/jOOQ#12985] Removed requirement for redundant configuration() 2023-12-01 15:14:47 +01:00
Lukas Eder
72455e2527 [jOOQ/jOOQ#14756] Added some missing NotNull annotations to the QOM API 2023-12-01 15:14:31 +01:00
Lukas Eder
e5954d40c1 [jOOQ/jOOQ#15901] Incorrect ExecuteListener Javadoc regarding ExecuteListener lifecycle 2023-11-30 09:14:11 +01:00
Lukas Eder
cab6c6f812 [jOOQ/jOOQ#11248] Refactor common MetaImpl::init0 logic 2023-11-30 08:21:36 +01:00
Lukas Eder
73e3a3e9c7 [jOOQ/jOOQ#14771] NullPointerException when using plain SQL identity and additional column in INSERT .. RETURNING 2023-11-29 17:14:49 +01:00
Lukas Eder
57ed425370 [jOOQ/jOOQ#11248] Implement MetaTable::getTriggers 2023-11-28 15:43:15 +01:00
Lukas Eder
238d497631 [jOOQ/jOOQ#15883] Compilation error in generated code when using
<embeddableDomains/> and the domain is part of a composite key
2023-11-28 14:00:33 +01:00
Lukas Eder
6561668238 [jOOQ/jOOQ#15873] IllegalArgumentException when calling UpdatableRecord methods on tables with embedded domains that replace their underlying fields 2023-11-28 11:05:41 +01:00
Lukas Eder
a64d56ee92 [jOOQ/jOOQ#15876] Internal RecordDataType.getDataType() should be non-nullable for records consisting of all non-null fields 2023-11-28 10:59:44 +01:00
Lukas Eder
f6cff58e8b [jOOQ/jOOQ#11248] Make jOOQ-meta queries available to MetaSQL 2023-11-27 19:47:32 +01:00
Lukas Eder
e90a6c41e7 [jOOQ/jOOQ#11248] Use DSL API instead of QOM API to construct statement
We have integration tests covering all API with @NotNull annotations to make sure they never return null. These tests fail if we construct a CREATE TRIGGER statement with null arguments using the QOM API, which we're doing implicitly as the mutator methods can only set one value at a time.
2023-11-24 16:29:18 +01:00
Lukas Eder
5512bc8226 [jOOQ/jOOQ#11248] Add interpreter support for TRIGGER DDL
This includes:

- [jOOQ/jOOQ#15872] QOM.CreateTrigger and related API should work with new org.jooq.Trigger type
2023-11-24 15:56:55 +01:00
Lukas Eder
789462bfca [jOOQ/jOOQ#15316] Historic RETURNING implementation only for INSERT
The historic SQLite RETURNING implementation only works for INSERT statements, running a follow-up query with _rowid_ = last_insert_rowid() predicate.
2023-11-24 11:29:31 +01:00
Lukas Eder
f0145338fc [jOOQ/jOOQ#15316] Support also UPDATE RETURNING and DELETE RETURNING 2023-11-23 18:04:02 +01:00
Lukas Eder
9b4023e39d [jOOQ/jOOQ#15316] Add support for SQLite 3.35 RETURNING 2023-11-23 15:56:02 +01:00
Lukas Eder
3e276baf0b [jOOQ/jOOQ#13912] Simplify SQL Server's RETURNING emulation in the absence of triggers
This includes:

- [jOOQ/jOOQ#11248] SQL Server trigger meta data support
2023-11-23 14:37:42 +01:00
Lukas Eder
54ae05e5a7 [jOOQ/jOOQ#12493] Support INSERTING, UPDATING, DELETING in PostgreSQL via TG_OP
This includes:

- [jOOQ/jOOQ#15351] Decide based on the TG_OP whether to RETURN NEW or RETURN OLD in PostgreSQL
2023-11-22 15:20:00 +01:00
Lukas Eder
7cd0816e52 [jOOQ/jOOQ#14756] Add QOM.If
See also [jOOQ/jOOQ#15351], where procedural QOM types are necessary for PostgreSQL trigger support
2023-11-22 14:40:09 +01:00
Lukas Eder
1ba854ff61 [jOOQ/jOOQ#15351] Better support for PG triggers
- DELETE triggers should RETURN OLD, not RETURN NEW
- Clean up stale trigger functions, if their trigger doesn't exist
2023-11-22 10:55:00 +01:00
Lukas Eder
151720788c [jOOQ/jOOQ#15864] Add support for PostgreSQL DROP TRIGGER .. ON <table name> 2023-11-21 16:56:02 +01:00
Lukas Eder
bdf4a8651e [jOOQ/jOOQ#15862] Revert Derby upgrade for now (JDK version issues) 2023-11-21 16:29:11 +01:00
Lukas Eder
392c08ed05 [jOOQ/jOOQ#15354] Fix PostgreSQL implementation 2023-11-21 16:28:53 +01:00
Lukas Eder
08d76e4523 [jOOQ/jOOQ#15862] Remove unnecessary managed JDBC drivers from parent pom.xml 2023-11-21 10:42:42 +01:00
Lukas Eder
fcb59a3c01 [jOOQ/jOOQ#13295] Allow for specifying both <name> and <binding> / <converter> in <forcedType> 2023-11-21 09:49:36 +01:00
Lukas Eder
2366d0d7c3 [jOOQ/jOOQ#15843] Deprecation log warning about <dateAsTimestamp/>
should link to relevant manual section
2023-11-20 16:15:49 +01:00
Lukas Eder
4bbc9b6463 [jOOQ/jOOQ#15850] Accidental override when enabling <interfaces> for
tables with columns X and IS_X in Kotlin
2023-11-20 16:04:58 +01:00
Lukas Eder
7a8b2b8391 [jOOQ/jOOQ#15848] Compilation error in KotlinGenerator generated code
for tables containing a FROM column, when <interfaces> is activated
2023-11-20 15:34:49 +01:00