Commit Graph

7696 Commits

Author SHA1 Message Date
Lukas Eder
81358a4e06 [jOOQ/jOOQ#8991] DSL.field(Name) fields should support schema mapping 2019-09-27 16:00:33 +02:00
Lukas Eder
77802eeb7b [jOOQ/jOOQ#5714] Change <javaTimeTypes/> default value to true 2019-09-27 14:55:37 +02:00
Lukas Eder
b7d25254f6 [jOOQ/jOOQ#7004] ALTER SEQUENCE IF EXISTS works with RESTART 2019-09-27 13:47:59 +02:00
Lukas Eder
df7cfcdde1 [jOOQ/jOOQ#7004] ALTER SEQUENCE IF EXISTS cannot be emulated yet in
MariaDB
2019-09-27 13:44:14 +02:00
Lukas Eder
1552fe8f1f [jOOQ/jOOQ#7004] ALTER SEQUENCE IF EXISTS cannot be emulated yet in MariaDB 2019-09-27 12:56:48 +02:00
Lukas Eder
ca5b5d9ddb [jOOQ/jOOQ#9294] Add support for MariaDB FOR UPDATE .. WAIT n, NOWAIT 2019-09-27 12:33:11 +02:00
Lukas Eder
c89266804c [jOOQ/jOOQ#7004] Support '=' in SEQUENCE DDL for MariaDB 2019-09-27 12:32:57 +02:00
Lukas Eder
e2caebd56a [jOOQ/jOOQ#7004] Add DDL support for sequences in MariaDB 2019-09-27 12:07:23 +02:00
Lukas Eder
54aa775f2f [jOOQ/jOOQ#7004] Add support for nextval and currval 2019-09-27 11:44:45 +02:00
Lukas Eder
8a642ecd80 [jOOQ/jOOQ#7004] Added code generation support for MariaDB sequences 2019-09-27 11:32:31 +02:00
Lukas Eder
565252e9f5 [jOOQ/jOOQ#9291] Sequences are generated as tables in MariaDB 2019-09-27 11:16:44 +02:00
Knut Wannheden
482089b478 [jOOQ/jOOQ#8580] Teradata supports LIKE ... ESCAPE clause 2019-09-27 10:42:54 +02:00
Knut Wannheden
b7c1291282 [jOOQ/jOOQ#9196] Only change Field#add(Field) for non-numeric fields
`a.plus(b).plus(c)` will only for numeric fields be rendered as `(a + b
+ c)` and for non-numeric fields as `((a + b) + c)`. This thus again
restores the original behavior for numeric fields.
2019-09-27 10:36:12 +02:00
Lukas Eder
21fb32d58a [jOOQ/jOOQ#9289] Add Javadoc to Configuration.dsl() explaining that it is just convenience 2019-09-27 10:02:38 +02:00
Lukas Eder
a7cd78e488 [jOOQ/jOOQ#8555] in-memory enum types members are not sanitized 2019-09-26 16:34:01 +02:00
Lukas Eder
85195604c9 [jOOQ/jOOQ#9285] Add a link from the dialect family to the latest dialect version in each SQLDialect 2019-09-26 14:52:06 +02:00
Lukas Eder
6e5da0552c [jOOQ/jOOQ#9283] DefaultBinding should return null on null JSON values,
instead of JSON[B].valueOf(null)
2019-09-26 13:53:02 +02:00
Lukas Eder
9a2173a6db [jOOQ/jOOQ#9265] Add JSON.data() and JSONB.data() 2019-09-26 13:32:34 +02:00
Lukas Eder
7004aa3cf5 [jOOQ/jOOQ#9266] Consistently document all commercial SQLDialects 2019-09-26 13:24:23 +02:00
Lukas Eder
f1568d475a [jOOQ/jOOQ#9276] Consistently use same line terminators in generator
Also for the import list the Java / Scala generators now use the
configured line terminator rather than a hardcoded  terminator.
2019-09-26 10:42:28 +02:00
Lukas Eder
b2fa9936b8 [jOOQ/jOOQ#9277] Improve error message when AttributeConverters cannot be loaded due to NoClassDefFoundError 2019-09-26 10:15:39 +02:00
Lukas Eder
b238b1e0e5 [jOOQ/jOOQ#9274] AttributeConverterExtractor should receive custom Hibernate configuration properties 2019-09-26 10:03:39 +02:00
Knut Wannheden
0fc3367c20 Update root .gitignore file to exclude .data directory 2019-09-25 15:27:58 +02:00
Lukas Eder
5351dc5447 Revert "[jOOQ/jOOR#57] [jOOQ/jOOQ#9157]" 2019-09-24 18:17:37 +02:00
Knut Wannheden
fc1e45cd10 [jOOQ/jOOQ#9263] Also fix Field#isTrue() and #isFalse()
`Field#isTrue()` and `Field#isFalse()` now also work correctly for
`Boolean`-typed fields with a custom `Converter`.
2019-09-24 16:44:03 +02:00
Knut Wannheden
ced4f41703 [jOOQ/jOOQ#9263] Revert change in ConditionAsField 2019-09-24 16:34:43 +02:00
Knut Wannheden
292605a12f [jOOQ/jOOQ#9263] Support Field<Boolean> with non-standard Converter
When a Boolean-typed field's `Converter` is not the default, then
`DSL#condition(Field<Boolean>)` will now render the SQL by comparing the
field to `true` (as converted by the field's converter). The same
applies to `DSL#not(Field<Boolean>)`.
2019-09-24 16:09:51 +02:00
Lukas Eder
3085035a25 [jOOQ/jOOR#57] [jOOQ/jOOQ#9157]
Prevent 'Illegal reflective access operation' warning in jOOQ Open Source Edition
2019-09-24 15:33:59 +02:00
Lukas Eder
0ea7876c8c [jOOQ/jOOQ#8870] Cannot build with 2.13 yet
- 2.13.0 has a compiler bug with JDK 13
- 2.13.1 has a compiler regession with the Maven plugin
2019-09-24 14:48:29 +02:00
Lukas Eder
281f3c4202 [jOOQ/jOOQ#8870] Cannot build with 2.13 yet
- 2.13.0 has a compiler bug with JDK 13
- 2.13.1 has a compiler regession with the Maven plugin
2019-09-24 14:29:19 +02:00
Lukas Eder
8a483d095f [jOOQ/jOOQ#8870] Support Scala 2.13 2019-09-24 12:49:53 +02:00
Lukas Eder
747aa416fc [jOOQ/jOOQ#9250] LEFT [ ANTI | SEMI ] JOIN ... USING not implemented correctly 2019-09-23 10:16:39 +02:00
Lukas Eder
5ea82ca90c
Merge pull request #9255 from sullis/travis-ci-maven-3.6.2
Travis:  use Maven 3.6.2
2019-09-23 09:29:46 +02:00
Sean C. Sullivan
ee10307f41 Travis: use Maven 3.6.2 2019-09-22 13:23:21 -07:00
Knut Wannheden
a890eeeb12 [jOOQ/jOOQ#9251] Fix ORDER BY ... FETCH NEXT ... WITH TIES for H2
For queries with a `FETCH NEXT ... WITH TIES` clause the `ORDER BY`
clause isn't rendered in the OSS edition.
2019-09-20 08:54:55 +02:00
Knut Wannheden
a755ec70a4 [jOOQ/jOOQ#9248] Fix rendering of sequence methods in H2
`NEXTVAL()` is now rendered as `NEXT VALUE FOR <sequence>` and
`CURRVAL()` as `<sequence>.CURRVAL`.
2019-09-20 07:31:46 +02:00
Lukas Eder
df81c9cd04 [jOOQ/jOOQ#9244] Add support for DROP TEMPORARY TABLE IF EXISTS 2019-09-19 14:12:17 +02:00
Lukas Eder
2149fef761 [jOOQ/jOOQ#9019] Fixed DSL support annotations 2019-09-19 13:47:25 +02:00
Lukas Eder
1651ecb6a5 [jOOQ/jOOQ#9019] Render DROP TEMPORARY TABLE in MySQL 2019-09-19 12:19:26 +02:00
Knut Wannheden
e2901b626f [jOOQ/jOOQ#8528] Make code Java 6 compatible again... 2019-09-18 16:11:23 +02:00
Knut Wannheden
2d0a638597 [jOOQ/jOOQ#8528] Support CREATE TABLE inline index specifications
The parser already supports this, so it is just a matter of exposing the
indexes through the `Meta` API (`Table#getIndexes()`).
2019-09-18 15:44:08 +02:00
Knut Wannheden
78ae663c92 [jOOQ/jOOQ#8528] Support more CREATE TABLE clauses
- COMMENT clause
- Basic support for [ CONSTRAINT ... ] [ PRIMARY KEY | UNIQUE ] clause
2019-09-18 14:47:59 +02:00
Knut Wannheden
9b9622f2bc [jOOQ/jOOQ#9242] Fix implementation of AbstractKey#equals(Object)
Since keys can be unnamed, the implementation must also compare using
the `fields` instance field.
2019-09-18 14:44:53 +02:00
Knut Wannheden
f128109e46 [jOOQ/jOOQ#8528] Make code Java 6 compatible again... 2019-09-18 13:44:52 +02:00
Lukas Eder
8b1e281ea7 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-09-18 12:50:27 +02:00
Lukas Eder
101791df32 [jOOQ/jOOQ#9224] Fixed new regression 2019-09-18 12:50:11 +02:00
Knut Wannheden
36941b75b0 [jOOQ/jOOQ#8528] Add basic support for PRIMARY KEY constraints 2019-09-18 12:48:57 +02:00
Lukas Eder
c7247311d0 [jOOQ/jOOQ#9241] Change <varargSetters/> to default to false 2019-09-18 12:34:34 +02:00
Knut Wannheden
25458d13b8 [jOOQ/jOOQ#9240] Compare to AbstractName.NO_NAME using equals() 2019-09-18 12:10:34 +02:00
Lukas Eder
036919ec31 [jOOQ/jOOQ#9224] Regression for "= ANY(?::int[])"
DSL.any(T...) no longer produces array bind variable in PostgreSQL, when used with natively supported quantified comparison operators like =, !=, etc.

This commit fixes the issue and refactors some of the internals to prevent some casting
2019-09-18 11:36:08 +02:00