Commit Graph

7583 Commits

Author SHA1 Message Date
Knut Wannheden
eaf48e48ef [jOOQ/jOOQ#9111] Support parsing COUNT(DISTINCT ROW(A, B))
In H2 a row value expression can alternatively also use the `ROW()`
syntax.
2019-08-30 14:44:03 +02:00
Knut Wannheden
a8ffd253aa [jOOQ/jOOQ#9111] Support parsing COUNT(DISTINCT (A, B))
Dialects like H2 and PostgreSQL allow row value expressions following
the `DISTINCT` keyword.
2019-08-30 13:40:30 +02:00
Knut Wannheden
5c8549e8b0 [jOOQ/jOOQ#9109] H2: Support DSL#countDistinct(Field...)
As with PostgreSQL this MySQL construct can be emulated using an RVE.
2019-08-30 13:30:45 +02:00
Knut Wannheden
841dfa7bd5 [jOOQ/jOOQ#9099] Try using maven-javadoc-plugin 3.0.1 instead
There were still more problems while building the Javadoc for other
Maven modules (other than jooq-checker). Trying with
maven-javadoc-plugin version 3.0.1 now.
2019-08-30 12:44:13 +02:00
Knut Wannheden
c01c944041 [jOOQ/jOOQ#9099] Revert upgrade of Checker Framework version
This version upgrade is not needed for this fix.
2019-08-30 12:00:30 +02:00
Knut Wannheden
cef24d45f5 [jOOQ/jOOQ#9110] Fix parsing of COUNT(DISTINCT *) 2019-08-30 11:26:23 +02:00
Knut Wannheden
e5bf605399 [jOOQ/jOOQ#9099] Exclude java.compiler module for Javadoc
Using `--limit-modules org.checkerframework.checker` appears to help.

Also upgrades errorprone and checkerframework Maven dependencies.
2019-08-30 10:56:44 +02:00
Knut Wannheden
b8e9c22a84 [jOOQ/jOOQ#9099] Upgrade some relevant Maven plugins 2019-08-30 09:20:51 +02:00
Knut Wannheden
2fb28a8956 [jOOQ/jOOQ#9104] Fix missing parenthesis regression in OSS edition
In commit jOOQ/jOOQ@a55a362fd8 the SQL
rendering logic for parenthesis pairs in `QuantifiedSelectImpl` and
`RowSubqueryCondition` was inadvertently broken.
2019-08-30 08:26:44 +02:00
Knut Wannheden
4c54d82a7e Release: Update version of jOOQ-examples/pom.xml 2019-08-30 07:46:59 +02:00
Knut Wannheden
e43478d86c Release 3.12.0 2019-08-30 07:42:06 +02:00
Knut Wannheden
80d42ff120 [jOOQ/jOOQ#8986] Cannot call UDT.getPackage() in OSS edition 2019-08-30 07:40:30 +02:00
Knut Wannheden
24a8dcae06 [jOOQ/jOOQ#8982] Avoid using JDK 8 API 2019-08-30 07:37:53 +02:00
Knut Wannheden
e2c2cf17c2 [jOOQ/jOOQ#8004] Avoid using JDK 8 API 2019-08-30 07:36:59 +02:00
Knut Wannheden
bdb6b764c4 Removed jOOQ-extensions again from build.xml 2019-08-30 07:35:54 +02:00
Knut Wannheden
feb27a36d7 [jOOQ/jOOQ#8923] Fix Javadoc of CustomType
The Javadoc of `CustomType` was accidentally reverted.
2019-08-29 16:58:55 +02:00
Knut Wannheden
2beb580df2 [jOOQ/jOOQ#8923] Add @Deprecated annotations to XSDs
Updates the jooq-codegen and jooq-runtime XSDs to generate `@Deprecated`
annotations where applicable. Since this is the first change to these
two XSDs in 3.13, the files, namespaces, and all references are also
updated for the new release.
2019-08-29 16:52:02 +02:00
Knut Wannheden
d27dbf4117 Preparing master for 3.13 release cycle 2019-08-29 16:12:59 +02:00
Knut Wannheden
e96e6d1bcb [jOOQ/jOOQ#8995] Regenerate JAXB classes
Regenerates all JAXB classes to add Javadoc to with-methods (copied from
corresponding set-method).
2019-08-29 13:42:30 +02:00
Lukas Eder
b4a73dac11 [jOOQ/jOOQ#8616] Correctly clone Settings.parseSearchPath 2019-08-28 15:33:03 +02:00
Lukas Eder
81556707a8 [jOOQ/jOOQ#9090] Handle CTAS edge case 2019-08-28 12:12:54 +02:00
Lukas Eder
d6aef06e48 [jOOQ/jOOQ#9090] CREATE TABLE fails with ParseWithMetaLookups.THROW_ON_FAILURE 2019-08-28 09:49:02 +02:00
Knut Wannheden
d2cb5570b2 [jOOQ/jOOQ#8986] Consistent naming of "org.jooq.ddl" context data keys
Make sure all key references use a consistent "org.jooq.ddl" prefix.
2019-08-27 21:12:17 +02:00
Knut Wannheden
147345304b [jOOQ/jOOQ#8986] New DSLContext#meta(Source...) API
Adds a new internal `DSLContext#meta(Source...)` API which can be used to construct a `Meta` object for a list of DDL scripts (similarly to the existing `DDLDatabase`), but for other use cases such as the `Parser`.

This new method uses the new internal `Source` abstraction to represent a DDL script, which can be constructed using any of the existing static `of()` factory methods or optionally by a custom implementation class.
2019-08-27 21:11:30 +02:00
Knut Wannheden
d092e1b6ef [jOOQ/jOOQ#9082] ResultQuery.fetchStream() and similar overloads should add an explicit statement about resulting streams being resourceful 2019-08-27 21:10:27 +02:00
Knut Wannheden
d1c9c8f9da [#25] Upgrade various Maven dependencies and plugins 2019-08-27 13:21:48 +02:00
Lukas Eder
feed7665c9 [jOOQ/jOOQ#9078] Improve MockFileDatabase error message "Invalid SQL" 2019-08-26 10:21:30 +02:00
Knut Wannheden
2b3532d4c5 [jOOQ/jOOQ#9063] Support ALTER TABLE ... DROP PRIMARY KEY for Derby 2019-08-23 10:06:36 +02:00
Knut Wannheden
5830b1b0d5 [jOOQ/jOOQ#9071] Fix for DefaultConfiguration#derive()
`DefaultConfiguration#derive()` could lead to surprising effects because
the derived `Configuration` would be linked to a `MetaProvider` which
still referenced the original `Configuration`.
2019-08-22 14:24:10 +02:00
Knut Wannheden
66a45669c4 [jOOQ/jOOQ#8918] Use Java 6 compatible SchemaFactory API 2019-08-21 17:15:41 +02:00
Knut Wannheden
fb01e29114 [jOOQ/jOOQ#9070] Use new constants in MiniJAXB 2019-08-21 15:31:57 +02:00
Knut Wannheden
bda1ec9b7f [jOOQ/jOOQ#8918] Log warnings regarding unknown elements
The `MiniJAXB` implementation now attempts to validate the input XML against the corresponding XSD schema and will log warnings when there are validation errors (e.g. unknown elements).
2019-08-21 15:29:00 +02:00
Lukas Eder
590cdf1821 [jOOQ/jOOQ#9070] Add Constants.CP_RUNTIME and other values 2019-08-21 15:03:42 +02:00
Lukas Eder
4356de54b2 [jOOQ/jOOQ#9065] Parser does not support NVARCHAR2 2019-08-21 10:54:13 +02:00
Knut Wannheden
25cc3e6fd9 [jOOQ/jOOQ#8238] Support DSL#convert() for POSTGRES
Adds POSTGRES support to `DSL#convert()`.
2019-08-20 14:13:57 +02:00
Knut Wannheden
6220688ca2 Cleanup: Delete some no longer relevant examples and log4j.xml files 2019-08-20 13:31:08 +02:00
Knut Wannheden
eaadafa8bf Cleanup: Remove some unnecessary preprocessor whitespace 2019-08-20 12:42:23 +02:00
Knut Wannheden
3933ad94ee [jOOQ/JOOQ#9064] Support HSQLDB in DSL#week() 2019-08-20 10:03:52 +02:00
Knut Wannheden
345fbe29fb [jOOQ/jOOQ#9063] Add HSQLDB to AlterTableStep#dropPrimaryKey() 2019-08-20 09:52:23 +02:00
Knut Wannheden
e5768e6b51 [jOOQ/jOOQ#9062] Add internal AlterTableImpl#dropColumns0()
Extract `AlterTableImpl#dropColumns()` into
`AlterTableImpl#dropColumns0()` which is now also directly called by
`AlterTableImpl#dropColumn()`.
2019-08-20 09:44:33 +02:00
Knut Wannheden
8ec0f771a7 [jOOQ/jOOQ#9015] Add support for unqualifiedSchema in JPADatabase to
prevent generating the H2 PUBLIC schema
2019-08-20 09:43:44 +02:00
Lukas Eder
0e63ae8064 [jOOQ/jOOQ#9059] DSLContext.ddl(Catalog) does not correctly create cross schema foreign key constraints. 2019-08-19 11:40:55 +02:00
Lukas Eder
796c8260c1 [jOOQ/jOOQ#9058] Undocument use-attribute-converters in favour of useAttributeConverters 2019-08-19 11:21:29 +02:00
Lukas Eder
47ce44f247 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-08-16 16:58:56 +02:00
Lukas Eder
d2982c92fc [jOOQ/jOOQ#9049] Stop shipping the Sakila database over the zip files
downloaded from the website
2019-08-16 16:58:29 +02:00
Knut Wannheden
2202e4f21a [jOOQ/jOOQ#7545] Use ForcedType#withIncludeExpression() in JPADatabase
Using the legacy ForcedType#withExpression() results in a logged
warning.
2019-08-16 14:04:57 +02:00
Lukas Eder
0f5b8799b9 [jOOQ/jOOQ#9048] Delete module-info.java.invalid files 2019-08-16 14:02:45 +02:00
Lukas Eder
4c9a718efe Release 3.11.12 2019-08-16 13:56:22 +02:00
Knut Wannheden
a144a1402d [jOOQ/jOOQ#8964] Always cast decimals with scale in toSQL92Values()
The SQL Server workaround does not always work correctly when the
`CAST()` is only applied to the values of the first row.
2019-08-15 16:53:24 +02:00
Lukas Eder
56d25586cc [jOOQ/jOOQ#9043] Provide minimal internal implementation 2019-08-15 16:18:27 +02:00