Commit Graph

8316 Commits

Author SHA1 Message Date
Lukas Eder
e6eae64c32 [jOOQ/jOOQ#9926] [jOOQ/jOOQ#9928] Emulate SQL Server FOR JSON
This emulates the INCLUDE_NULL_VALUES clause.
2020-03-09 11:00:18 +01:00
Lukas Eder
0758ae2142 [jOOQ/jOOQ#9928] Add support for JSON_OBJECT <JSON constructor null clause> 2020-03-09 10:59:17 +01:00
Lukas Eder
420048f9f8 [jOOQ/jOOQ#9926] Emulate SQL Server FOR JSON in other dialects (WIP) 2020-03-09 10:39:55 +01:00
Lukas Eder
764e07cd35 [jOOQ/jOOQ#8950] Added H2 support for JSON_OBJECT 2020-03-09 10:39:08 +01:00
Lukas Eder
fa2812dbc6 [jOOQ/jOOQ#9923] Use new SQL Server FOR JSON API also in JSONObject 2020-03-06 17:26:21 +01:00
Lukas Eder
95c89b9c83 [jOOQ/jOOQ#9923] Add support for FOR JSON 2020-03-06 16:06:09 +01:00
Lukas Eder
87e9576b8a [jOOQ/jOOQ#9923] Add support for FOR JSON 2020-03-06 15:43:27 +01:00
Lukas Eder
345586e8db [jOOQ/jOOQ#8945] [jOOQ/jOOQ#9923] Add support for FOR XML
This includes support for the new org.jooq.XML type
2020-03-06 15:16:40 +01:00
Lukas Eder
d70e534bf3 [jOOQ/jOOQ#9775] Parse NOT NULL ENABLE syntax 2020-03-05 14:47:39 +01:00
Lukas Eder
a92b633f76 [jOOQ/jOOQ#9916] NullPointerException in XMLDatabase when new <enforced> element is missing 2020-03-05 13:38:19 +01:00
Lukas Eder
67029b61d2 [jOOQ/jOOQ#9911] Deprecate Comparator.supportsQuantifier() and supportsSubselect() 2020-03-02 12:03:49 +01:00
Lukas Eder
1f98e38508 [jOOQ/jOOQ#9898] Implement native support for LIKE ANY et al in
PostgreSQL
2020-03-02 12:01:21 +01:00
Lukas Eder
c0490c5f4b [jOOQ/jOOQ#9903] Changing getJavaClassName() for Mode.ENUM in DefaultGeneratorStrategy generates invalid code 2020-03-02 11:18:49 +01:00
Lukas Eder
fe1883101d [jOOQ/jOOQ#9907] NullPointerException in ByteArrayClassLoader, when it is asked to load an external class 2020-03-02 11:07:08 +01:00
Lukas Eder
e87b2eaa21 [jOOQ/jOOQ#6456] Generate comments also on POJOs 2020-02-28 16:11:29 +01:00
Knut Wannheden
c56c8c28d1 [jOOQ/jOOQ#6456] POJO setter/getter Javadoc generation 2020-02-28 15:03:54 +01:00
Lukas Eder
d16878f817 [jOOQ/jOOQ#8805] DB2 implements a different default in the absence of FOR 2020-02-28 14:49:12 +01:00
Knut Wannheden
91ca536f8d [jOOQ/jOOQ#5218] MySQL 8: Render FOR SHARE instead of LOCK IN SHARE MODE
Rendering `FOR SHARE` instead of `LOCK IN SHARE MODE` has the advantage
that this allows specifying the `OF`, `NOWAIT`, and `SKIP LOCKED`
clauses.
2020-02-28 12:41:07 +01:00
Lukas Eder
7d034fdc0e [jOOQ/jOOQ#9900] Add TransactionalRunnable.of(TransactionalRunnable...) to compose nested transactions 2020-02-28 12:35:52 +01:00
Knut Wannheden
7365e753ae [jOOQ/jOOQ#5218] Support flags for all lock modes
The DSL API supports all of PostgreSQL's lock modes (`UPDATE`, `NO KEY
UPDATE`, `SHARE`, and `KEY SHARE`) and now also supports the `OF`
clauses and `WAIT`, `NOWAIT`, and `SKIP LOCKED` clauses for all lock
modes. Previously the DSL API did not support these clauses for the
`SHARE` mode and for all other modes the rendered SQL would always end
up using the `UPDATE` lock mode.

Whether a particular lock mode and clause combination is supported,
depends on the SQL dialect.

On the `SelectQuery` API the methods
`setForUpdate[Of|Wait|NoWait|SkipLocked]()` have all been marked as
deprecated in favor of the new methods
`setForLockMode[Of|Wait|NoWait|SkipLocked]()`.
2020-02-28 12:21:45 +01:00
Knut Wannheden
692e7470e2 [jOOQ/jOOQ#9882] Add Refaster templatesfor SQLDialect#supports() 2020-02-28 07:25:41 +01:00
Knut Wannheden
e366ffa1f1 [jOOQ/jOOQ#9897] Remove COCKROACHDB from stddevSamp() and varSamp()
Also, once implemented, the implementation will likely follow PostgreSQL
and the SQL standard. Thus `Term.java` was already adapted accordingly.
2020-02-27 14:49:37 +01:00
Knut Wannheden
f2163fce03 [jOOQ/jOOQ#9896] DB2: Fix rendering of stddevSamp() and varSamp() 2020-02-27 14:26:35 +01:00
Knut Wannheden
dc2554caed [jOOQ/jOOQ#9894] DB2: Support more standard aggregate functions 2020-02-27 14:21:17 +01:00
Lukas Eder
cf5ecafa7b [jOOQ/jOOQ#8805] Fix parser behaviour for OVERLAY() in DB2 2020-02-27 12:53:53 +01:00
Lukas Eder
b95cc5fde8 [jOOQ/jOOQ#9889] Add support for native ILIKE in H2 2020-02-27 12:42:00 +01:00
Lukas Eder
7301ef7764 [jOOQ/jOOQ#9888] Support parsing some PostgreSQL specific operators 2020-02-27 12:28:47 +01:00
Knut Wannheden
cdae95bdd2 [jOOQ/jOOQ#8592] Emulate CUME_DIST() for DB2 9 and 10 2020-02-27 11:24:39 +01:00
Knut Wannheden
556ff3e36b [jOOQ/jOOQ#8592] Emulate PERCENT_RANK() for DB2 9 and 10 2020-02-27 10:33:19 +01:00
Knut Wannheden
a402ec5023 [jOOQ/jOOQ#8841] Redshift: Support native ILIKE operator 2020-02-26 15:32:10 +01:00
Knut Wannheden
8a006f67d5 [jOOQ/jOOQ#9882] Deprecate SQLDialect#supports(Collection<SQLDialect>) 2020-02-26 15:21:30 +01:00
Lukas Eder
1c9f7f5a66 [jOOQ/jOOQ#9866] Liquibase imports should use ClassLoaderResourceAccessor 2020-02-25 12:49:50 +01:00
Lukas Eder
db1d75b288
Merge pull request #9875 from Fadelis/feature/liquibase-changelog-table-names
[#9873] LiquibaseDatabase should use actual changeLog table names
2020-02-25 11:27:42 +01:00
Lukas Eder
b393fdd738 [jOOQ/jOOQ#9872] Minor improvement 2020-02-25 11:17:46 +01:00
Lukas Eder
89f36f2f3b Cosmetic changes 2020-02-25 11:16:18 +01:00
Lukas Eder
2d0409df23 [jOOQ/jOOQ#9872] LiquibaseDatabase should use configured changeLogParameters.contexts when updating 2020-02-25 11:16:10 +01:00
Lukas Eder
eaeb60ec73
Merge pull request #9874 from Fadelis/feature/liquibase-contexts
[#9872] LiquibaseDatabase should use provided contexts on update
2020-02-25 11:11:05 +01:00
Fadelis
fbdc70e0a0 [#9873] LiquibaseDatabase use correct changeLog table names as they might be overridden 2020-02-25 10:58:02 +01:00
Fadelis
fdb4bbd79d [#9872] LiquibaseDatabase should use provided contexts on update 2020-02-25 10:57:36 +01:00
Lukas Eder
c15f770d42 [jOOQ/jOOQ#9833] Add missing @Support annotation to DSLContext#fetch*()
methods
2020-02-24 13:14:39 +01:00
Lukas Eder
630c7736eb [jOOQ/jOOQ#8805] Support OVERLAY() function 2020-02-24 12:53:21 +01:00
Lukas Eder
b1598ccbd9 [jOOQ/jOOQ#9865] Fix a few REDSHIFT support annotations and DDL statements 2020-02-24 11:47:19 +01:00
Lukas Eder
e3d75812ca [jOOQ/jOOQ#9861] Add covariant overrides Record[N].with(Field, T) for
fluent setting of values on a Record
2020-02-21 14:13:40 +01:00
Knut Wannheden
f35493dc23 Cleanup: Remove some unwanted trailing spaces 2020-02-21 11:17:49 +01:00
Knut Wannheden
f84b15e04d Cleanup: Simplify preprocessor's handling of whitespaces 2020-02-21 10:50:18 +01:00
Lukas Eder
27d422384a [jOOQ/jOOQ#7421] [jOOQ/jOOQ#9832] Revert removal of FROM DUAL in MySQL
Newer versions of MariaDB and MySQL can do without FROM clause, so our "FROM dual" clause is no longer needed. There are some use cases in the jOOQ Open Source Edition (e.g. code generator), where wrong SQL is thus generated on MySQL 5.7. Thus, we'll postpone this improvement until we have a better solution.
2020-02-21 10:48:32 +01:00
Lukas Eder
4a63527e41 [jOOQ/jOOQ#9849] Compilation error in generated code for check constraints containing bad escape sequences 2020-02-21 10:39:39 +01:00
Lukas Eder
8fafdb2286 [jOOQ/jOOQ#9856] Parser cannot handle double quotes in string literals 2020-02-21 10:15:42 +01:00
Lukas Eder
40133a09af Whitespace change 2020-02-21 09:23:51 +01:00
Lukas Eder
a0cbf450ba [jOOQ/jOOQ#4695] Fix regression 2020-02-21 09:23:32 +01:00