Commit Graph

7513 Commits

Author SHA1 Message Date
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
Lukas Eder
5b1b37fe35 Added Mustafa Yücel to contributors 2019-07-25 17:22:32 +02:00
Lukas Eder
990bfa4663 [jOOQ/jOOQ#8939] Various fixes
- Fixed a bug when FlywayFileComparator compares non-flyway files
- Added a unit test
- Added examples to jOOQ-examples module as submodules
- Split flyway migration in one more migration file
- Check in generated sources
2019-07-25 15:51:37 +02:00
Lukas Eder
38ed342821 [jOOQ/jOOQ#8982] Add a SingleConnectionDataSource 2019-07-25 15:28:05 +02:00
Lukas Eder
df390cf919
Merge pull request #8976 from yuecelm/feature/8939
[jOOQ/jOOQ#8939] Support Flyway file ordering in DDLDatabase
2019-07-25 14:43:51 +02:00
Lukas Eder
f5004522d6
Merge pull request #8978 from kaandok/patch-1
Make generatePojoMultiConstructor in JavaGenerator protected
2019-07-25 11:08:23 +02:00
Kaan Ozdokmeci
e8e230ae2c make generatePojoMultiConstructor protected inline with it's javadoc 2019-07-23 19:47:08 +03:00
Mustafa Yücel
8767b8014d [jOOQ/jOOQ#8939] Support Flyway file ordering in DDLDatabase 2019-07-23 13:56:51 +02:00
Lukas Eder
7a3374f28d [jOOQ/jOOQ#8975] Log warning when user uses <inputSchema/> on a database
that does not support schemas
2019-07-23 13:23:18 +02:00
Lukas Eder
4e9a29dbd6 [jOOQ/jOOQ#8972] jOOQ-meta should query dictionary views for column
existence rather than the column itself
2019-07-23 12:35:09 +02:00
Lukas Eder
83a6711412 [jOOQ/jOOQ#8972] jOOQ-meta should query dictionary views for column existence rather than the column itself (WIP) 2019-07-22 11:27:01 +02:00
Lukas Eder
24f703eeb3 [jOOQ/jOOQ#8294] Give user feedback in interactive mode 2019-07-17 16:36:02 +02:00
Lukas Eder
ee6ce710c7 [jOOQ/jOOQ#8961] Parser doesn't support bind variables in LIMIT clauses 2019-07-17 16:26:28 +02:00
Lukas Eder
f2ad98e7f7 [jOOQ/jOOQ#8578] DefaultRecordMapper cannot map into generic type variable in Kotlin 2019-07-17 15:49:22 +02:00
Lukas Eder
d7a387276a [jOOQ/jOOQ#8959] Add Settings.mapConstructorParameterNamesInKotlin 2019-07-17 15:00:10 +02:00
Lukas Eder
9511fed888 [jOOQ/jOOQ#8957] Parser.parseStatements() fails to parse empty block 2019-07-17 14:12:35 +02:00
Lukas Eder
59bd5fdcff [jOOQ/jOOQ#32] Add a few Kotlin unit tests 2019-07-17 11:37:56 +02:00
Lukas Eder
8e6583cd5c [jOOQ/jOOQ#8004] Fix this also for java.lang.Boolean 2019-07-17 11:37:24 +02:00
Lukas Eder
d7bb057de4 [jOOQ/jOOQ#8004] avoid hiding the member field 'type' 2019-07-16 17:22:44 +02:00
Lukas Eder
6a04733226
Merge pull request #8114 from amir20001/master
[#8004] Handle edgecase for Kotlin boolean type
2019-07-16 17:16:16 +02:00
Lukas Eder
b440183fb1 [jOOQ/jOOQ#8944] Reuse some parser logic 2019-07-16 17:01:24 +02:00
Lukas Eder
63739c0c29 [jOOQ/jOOQ#8944] Fixed support dialect versions 2019-07-16 16:37:16 +02:00
Lukas Eder
22b7841596 [jOOQ/jOOQ#8944] Added support for the JSON predicate 2019-07-16 16:30:02 +02:00
Lukas Eder
562ec8a06e [jOOQ/jOOQ#8932] Use diamond operator in jOOQ code
These method calls use fully qualified constructor calls, which is why they had been overlooked.
2019-07-16 16:29:52 +02:00
Lukas Eder
cb866cb926 [jOOQ/jOOQ#8944] Added support for the JSON predicate 2019-07-16 15:42:04 +02:00
Lukas Eder
ee94ae341d [jOOQ/jOOQ#8944] Add support for the JSON object constructor 2019-07-16 15:01:12 +02:00
Lukas Eder
c751499831 [jOOQ/jOOQ#8944] Add support for the JSON array constructor. 2019-07-16 14:01:04 +02:00
Lukas Eder
b8e58b2605 [jOOQ/jOOQ#7242] Regenerated Oracle schema 2019-07-16 12:56:17 +02:00
Lukas Eder
c37d555233 [jOOQ/jOOQ#7242] Add support for MySQL 2019-07-15 13:02:08 +02:00
Lukas Eder
3560efe0d4 [#7242] Add support for JSON / JSONB types in PostgreSQL 2019-07-15 12:42:18 +02:00
Lukas Eder
c435401163 [jOOQ/jOOQ#8943] Add org.jooq.JSONB 2019-07-15 11:54:19 +02:00
Lukas Eder
29da62058e [jOOQ/jOOQ#8943] Add org.jooq.JSON 2019-07-15 11:14:28 +02:00
Lukas Eder
18998166bf [jOOQ/jOOQ#2026] Another internal class 2019-07-15 10:39:37 +02:00
Lukas Eder
aaedefc9eb [jOOQ/jOOQ#7811] Array types cannot change nullability when generating DDL 2019-07-11 16:24:09 +02:00
Lukas Eder
2dc8720fcd [jOOQ/jOOQ#7597] Do generate a check constraint for non-stored enums 2019-07-11 15:41:01 +02:00