Commit Graph

7547 Commits

Author SHA1 Message Date
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
Knut Wannheden
c6eaa9ef3c [jOOQ/jOOQ#8964] Fix bulk INSERT of DECIMAL with scale values
SQL Server has a bug when it comes to bulk inserting DECIMAL with scale
values (see https://github.com/microsoft/mssql-jdbc/issues/1021 for
details). As a workaround jOOQ will in this scenario explicitly cast the
corresponding column values in the bulk set.
2019-08-15 15:18:22 +02:00
Knut Wannheden
ad60d8e198 Revert "[jOOQ/jOOQ#8964] Fix bulk INSERT of DECIMAL with scale values"
This reverts commit e929ea561728f521b38ce860d0937ea96ab092f9.
2019-08-15 15:15:31 +02:00
Knut Wannheden
fcf927b271 [jOOQ/jOOQ#2059] Update module-info with MemSQL export
Also adds missing `org.jooq.meta.tools` export.
2019-08-15 15:14:24 +02:00
Lukas Eder
0450643f1f [jOOQ/jOOQ#9034] JDBCUtils.driver(String) returns deprecated "com.mysql.jdbc.Driver" 2019-08-15 09:13:40 +02:00
Knut Wannheden
8c7d18343d [jOOQ/jOOQ#9037] Add missing @Support annotations to CaseWhenStep
Annotation was missing on mapFields() and mapValues().
2019-08-14 16:47:46 +02:00
Knut Wannheden
fb26959736 [jOOQ/jOOQ#9036] Add @Support to SelectSeekStep<N> types
Annotation was missing on SelectSeekStep<N> type methods.
2019-08-14 16:35:25 +02:00
Knut Wannheden
9a55140c2f [jOOQ/jOOQ#9035] TERADATA support for onDuplicateKeyUpdate()
TERADATA was missing in the `@Support` annotation of
`InsertOnDuplicateStep#onDuplicateKeyUpdate()`.
2019-08-14 16:34:10 +02:00
Lukas Eder
5828de119c [jOOQ/jOOQ#9028] Fix also ALTER SEQUENCE statement 2019-08-13 16:08:27 +02:00
Lukas Eder
b1d9fceddf [jOOQ/jOOQ#9030] Add AlterSequenceStep.restartWith(Field<? extends T>) overload 2019-08-13 16:06:47 +02:00
Lukas Eder
972c89c40b [jOOQ/jOOQ#9028] Translated sequence flags in CREATE SEQUENCE statement get turned into bind variables 2019-08-13 15:54:53 +02:00
Lukas Eder
bc897d026d [jOOQ/jOOQ#9022] Added Javadoc 2019-08-13 13:51:30 +02:00
Lukas Eder
e2a761e8d2 [jOOQ/jOOQ#8993] NullPointerException when JDBC driver returns null on getGeneratedKeys call using ZDAL5 driver on MySQL 2019-08-13 11:35:39 +02:00
Lukas Eder
621ba842ed [jOOQ/jOOQ#9011] Fix parameter order 2019-08-13 10:57:14 +02:00
Lukas Eder
13523c6b8e [jOOQ/jOOQ#8985] Added jOOQ-extensions to build.xml 2019-08-12 12:02:43 +02:00
Knut Wannheden
a103670197 [jOOQ/jOOQ#8596] Add MySQL support for onConflictOnConstraint()
Add `MYSQL` to `@Support` annotation on
`InsertOnDuplicateStep#onConflictOnConstraint()`, since this is
consistent with `InsertQuery#onConflictOnConstraint()` and supported for
the `doNothing()` step.
2019-08-09 16:21:39 +02:00
Knut Wannheden
928124a5cf [jOOQ/jOOQ#8912] Add reference to trueCondition() and falseCondition()
The Javadoc deprecation notice for methods deprecated with
jOOQ/jOOQ#4763 now references the `DSL` methods `noCondition()`,
`trueCondition()`, and `falseCondition()`.
2019-08-09 14:51:40 +02:00
Knut Wannheden
2fcd73b7e4 [jOOQ/jOOQ#9018] Update to 2.12.9 Scala compiler 2019-08-08 16:57:54 +02:00
Knut Wannheden
6c15996371 [jOOQ/jOOQ#9011] Support CURRENT_TIMESTAMP(<precision>)
`DSL#currentTimestamp()` and `DSL#now()` have been overloaded with a
method declaring a `Field<Integer>` parameter, representing the
precision for the timestamp function. Many dialects support this.

Also the parser can now parse expressions like `NOW(6)`.
2019-08-08 10:42:02 +02:00
Knut Wannheden
1ec32db4bc [jOOQ/jOOQ#9009] Fix AbstractMeta constructor
Caches are now initialized lazily.
2019-08-06 18:38:54 +02:00
Knut Wannheden
7da5918be7 [jOOQ/jOOQ#9009] Consistent caching in AbstractMeta
`AbstractMeta` now implements caching for all methods defined by the
`Meta` interface.
2019-08-06 18:37:34 +02:00
Knut Wannheden
116cd25994 [jOOQ/jOOQ#8986] Fix DDLDatabaseInitializer for RenderNameCase.UPPER
DDLDatabaseInitializer could previously cause a StackOverflowError when
using RenderNameCase.UPPER or RenderNameCase.LOWER. This is now fixed.
2019-08-06 13:43:29 +02:00
Knut Wannheden
a4a7f0bfeb [jOOQ/jOOQ#8986] Fix regression in DDLDatabase
The "defaultNameCase" -> RenderNameCase mapping in DDLDatabase was
incorrect and caused problems.

Also explicitly declares a local variable as `final` for Java 6
compatibility.
2019-08-06 12:01:11 +02:00
Knut Wannheden
dc7ce900e9 [jOOQ/jOOQ#8986] Extracted DDLDatabaseInitializer
Extracted new class DDLDatabaseInitializer from DDLDatabase. This new
class is in package `org.jooq.extensions.ddl` of Maven module
`jOOQ-extensions`.

As a consequence also renamed the configuration data keys
"org.jooq.meta.extensions.ddl.ignore-storage-clauses" and
"org.jooq.meta.extensions.ddl.parse-for-ddldatabase" to
"org.jooq.extensions.ddl.ignore-storage-clauses" and
"org.jooq.extensions.ddl.parse-for-ddldatabase" respectively.
2019-08-06 11:05:11 +02:00
Knut Wannheden
6a28099723 [jOOQ/jOOQ#8939] Marking classes package protected 2019-08-06 10:03:44 +02:00
Knut Wannheden
46c07b6db1 [jOOQ/jOOQ#8985] Add new empty jOOQ-extensions module
jOOQ-extensions is a new Maven module (Maven artifact name is
`jooq-extensions`) and will contain any code with third-party
dependencies.
2019-08-05 16:17:08 +02:00
Knut Wannheden
2825bbdf2a [jOOQ/jOOQ#9001] DefaultRecordMapper now uses RecordMapperProvider
Having the `DefaultRecordMapper` internally also use
`Configuration#recordMapperProvider()` is important when the user needs
control over how nested POJOs get mapped.
2019-07-31 14:54:31 +02:00
Knut Wannheden
acc47ecb37 [jOOQ/jOOQ#8754] Remove more SQL templating
- Got rid of a few more SQL templating cases
- Removed some unnecessary nullSafe() calls
- Use nullSafeDataType() where appropriate
- Fix regression in OracleDSL#matches(Field, String, int)
2019-07-31 09:03:41 +02:00
Knut Wannheden
0dce3122d8 [jOOQ/jOOQ#5806] H2 has standard TIMESTAMP WITH TIME ZONE literals
Removed H2 specific code for rendering of TIMESTAMP WITH TIME ZONE
literals, as the SQL standard notation now also works.
2019-07-30 17:30:47 +02:00
Knut Wannheden
2207a68dc8 Make initial schema setup of jOOQ-javafx-example rerunnable 2019-07-30 17:29:58 +02:00
Knut Wannheden
9c5980a7df [jOOQ/jOOQ#8964] Fix bulk INSERT of DECIMAL with scale values
SQL Server has a bug when it comes to bulk inserting DECIMAL with scale
values (see https://github.com/microsoft/mssql-jdbc/issues/1021 for
details). As a workaround jOOQ will in this scenario explicitly cast the
first column value in the bulk set.
2019-07-30 13:06:21 +02:00
Lukas Eder
4d6bbc902b [jOOQ/jOOQ#8987] Improve MockResult Javadoc 2019-07-26 15:47:44 +02:00
Lukas Eder
854375dbcf [jOOQ/jOOQ#7789] Revert change
The jOOQ 3.12 Open Source Edition will continue to support Java 8. The only things we gain from the JDK 11 dependency is:

- Updated logic for reflection when mapping into proxied default methods (that stuff has changed completely in JDK 9). This is a regression, which we can live with. The workaround is to write a custom
- Explicit dependency on the JDK 9  API, for which we provide a Java 8 compatible alternative via reactive streams anyway.
- JDBC 4.3 compatibility (mostly sharding). We currently don't use that yet.

We're not even using  internally, outside of a few integration tests. So, we'll postpone the JDK 11 *requirement* (while supporting it nonetheless) to a later release, e.g. 3.13. We'll observe market share shifts. Currently Java 11's market share is a bit of a disappointment, so making it a requirement might be premature.
2019-07-26 15:18:18 +02:00
Lukas Eder
df4b94d765 [jOOQ/jOOQ#7242] Declare JSON type before JSONB type as a default 2019-07-26 14:41:00 +02:00
Knut Wannheden
4dfc457f7f [jOOQ/jOOQ#8984] Address potential NumberFormatException 2019-07-26 07:35:22 +02:00
Lukas Eder
4fdc37527d [jOOQ/jOOQ#8939] Added missing files 2019-07-25 17:26:44 +02:00
Lukas Eder
95168c1e76 [jOOQ/jOOQ#8939] Handle __ prefix in file names 2019-07-25 17:26:33 +02:00