Commit Graph

8212 Commits

Author SHA1 Message Date
Lukas Eder
93dc41579f [jOOQ/jOOQ#9741] WIP 2020-02-04 10:40:26 +01:00
Lukas Eder
f12fa801da [jOOQ/jOOQ#9741] Avoid parser ambiguity with FOR UPDATE syntax 2020-02-03 13:16:59 +01:00
Lukas Eder
682985cf6f [jOOQ/jOOQ#9741] Avoid parser ambiguity with FOR UPDATE syntax 2020-02-03 13:13:26 +01:00
Lukas Eder
5fd307d694 [jOOQ/jOOQ#9741] Added more SQLSERVER2016 support 2020-02-03 13:06:57 +01:00
Lukas Eder
e86cdd1034 [jOOQ/jOOQ#8345] Add an org.jooq.Typed<T> marker interface 2020-02-03 13:04:06 +01:00
Lukas Eder
f93a7beae4 [jOOQ/jOOQ#9741] Added CONTAINED IN support 2020-02-03 12:44:29 +01:00
Lukas Eder
df5089e803 [jOOQ/jOOQ#9741] Added BETWEEN .. AND and FROM .. TO support 2020-02-03 12:24:35 +01:00
Lukas Eder
e8a620284e [jOOQ/jOOQ#9741] Added parser support 2020-02-03 11:42:08 +01:00
Lukas Eder
551a9774db [jOOQ/jOOQ#9741] Add org.jooq.Period for temporal validity 2020-02-03 11:29:47 +01:00
Lukas Eder
4037ac40c4 [jOOQ/jOOQ#9604] Make default OrderProvider case insensitive 2020-02-03 10:12:29 +01:00
Lukas Eder
178d36d16e [jOOQ/jOOQ#9781] Add DSLContext.set(Name, Param<?>) for arbitrary set commands 2020-02-03 09:43:38 +01:00
Lukas Eder
c3b81e6324 [#9782] Revert bad OSS Edition change 2020-02-03 09:28:26 +01:00
Lukas Eder
899f666209 [jOOQ/jOOQ#8105] Eager apply delay foreign keys if necessary
If the SET FOREIGN_KEY_CHECKS = 1 command is issued, we must apply delayed foreign keys eagerly.
2020-02-03 09:27:53 +01:00
Knut Wannheden
1bb9f81291 [jOOQ/jOOQ#9782] Add missing @Support to PivotForStep#for_() 2020-01-31 11:00:17 +01:00
Lukas Eder
311ff6a50b [jOOQ/jOOQ#8105] Disable foreign key checks and parse SET commands
- [jOOQ/jOOQ#9780] Add Settings.parseSetCommands
- [jOOQ/jOOQ#8105] Interpreter should have an option to disable foreign key checks
2020-01-30 17:44:46 +01:00
Lukas Eder
c0d825c03e [jOOQ/jOOQ#9508] Handle edge case 2020-01-30 17:09:27 +01:00
Lukas Eder
2eafa49254 [jOOQ/jOOQ#9508] Add Settings.interpreterDelayForeignKeyDeclarations 2020-01-30 16:57:50 +01:00
Lukas Eder
295efb7440 [jOOQ/jOOQ#9624] Add a DiffCLI command line tool 2020-01-30 15:36:38 +01:00
Lukas Eder
1037d3ed8d [jOOQ/jOOQ#9682] Fixed switch statements 2020-01-30 15:16:06 +01:00
Lukas Eder
bf92f59f46 [jOOQ/jOOQ#9779] Add native support for aggregate and window function FILTER clause in SQLite 3.30 2020-01-30 15:11:55 +01:00
Lukas Eder
29bcf7b208 [jOOQ/jOOQ#9778] Support NULLS [ FIRST | LAST ] in SQLite 3.30 2020-01-30 15:01:38 +01:00
Lukas Eder
68d2fa074a [jOOQ/jOOQ#9682] Add SQLDialect.SQLITE_3_30 2020-01-30 15:00:11 +01:00
Lukas Eder
dc9de88262 [jOOQ/jOOQ#9777] Add SQLDialect.supportedUntil() 2020-01-30 12:54:44 +01:00
Lukas Eder
cf59e643e5 [jOOQ/jOOQ#9776] Add support for MySQL 8.0.19 VALUES clause 2020-01-30 12:26:36 +01:00
Lukas Eder
8315870538 [jOOQ/jOOQ#9772] Add SQLDialect.MYSQL_8_0_19 2020-01-29 17:28:28 +01:00
Lukas Eder
515f98753c [jOOQ/jOOQ#7293] Generate OFFSET .. FETCH for Firebird 3.0 2020-01-29 16:48:59 +01:00
Lukas Eder
0c1c6f0748 [jOOQ/jOOQ#9502] Add Settings.renderOptionalAsKeywordForTableAliases and ...ForFieldAliases 2020-01-29 16:19:16 +01:00
Lukas Eder
38febbc695 [jOOQ/jOOQ#9511] Avoid quoted identifiers in jOOQ-meta queries 2020-01-28 17:55:00 +01:00
Lukas Eder
9fc2e2cd61 [jOOQ/jOOQ#3521] Implement JDBCDatabase.loadForeignKeys() 2020-01-28 17:27:56 +01:00
Lukas Eder
6662086f70 [jOOQ/jOOQ#8800] Fixed OSS edition build issues 2020-01-28 15:15:56 +01:00
Lukas Eder
10202dd890 [jOOQ/jOOQ#8800] Fixed OSS edition build issues 2020-01-28 15:15:23 +01:00
Lukas Eder
6033daafe0 [jOOQ/jOOQ#8800] Add Settings.transformAnsiJoinToTableLists to support pre-ANSI join syntax 2020-01-28 15:00:07 +01:00
Lukas Eder
4c5b8b0c7e [#9754] Commented out version of ordering by type signature 2020-01-28 11:20:42 +01:00
Lukas Eder
e01d695e51 [jOOQ/jOOQ#3676] Fixed formatting 2020-01-28 11:19:34 +01:00
Lukas Eder
3af4c5f6ec [jOOQ/jOOQ#9758] Generated constraint names should not be table prefixed
in meta data (PostgreSQL fix)
2020-01-24 14:14:54 +01:00
Lukas Eder
5691ad7cb2 [jOOQ/jOOQ#9758] Generated constraint names should not be table prefixed in meta data 2020-01-24 14:02:48 +01:00
Lukas Eder
a0cf98946f [jOOQ/jOOQ#9756] Regression in IGNORE NULLS clause for DB2 2020-01-24 11:29:58 +01:00
Knut Wannheden
88a8c2c2cb [jOOQ/jOOQ#6659] Support PostgreSQL IDENTITY columns
For PostgreSQL 10+ jOOQ will now render identity columns using the
standard `GENERATED BY DEFAULT AS IDENTITY` clause. For PostgreSQL 9 the
implementation continues to use the `SERIAL4` and `SERIAL8` types.
2020-01-24 10:51:07 +01:00
Knut Wannheden
23c3e740c9 [jOOQ/jOOQ#4793] Fix rendering of default schema 2020-01-24 10:49:58 +01:00
Lukas Eder
3ded80a981 [jOOQ/jOOQ#4454] Fixed DB2 regression 2020-01-24 10:35:12 +01:00
Knut Wannheden
da129e2bee [jOOQ/jOOQ#4793] Fix rendering of mapped catalog 2020-01-24 09:51:01 +01:00
Knut Wannheden
b5e76e076f [jOOQ/jOOQ#4793] Implement runtime catalog mapping
In addition to runtime schema and table mapping,
`Settings#renderMapping` now also supports mapping of catalogs. This is
represented by the new `RenderMapping#catalogs`, which in turn can
contain mapping definitions for schemata and tables.

For backwards compatibility and for applications where no catalog
mapping is required, the old `RenderMapping#schemata` remains. Users are
expected to use _either_ of 'RenderMapping#catalogs` or
`RenderMapping#schemata`, but not both.
2020-01-23 12:20:08 +01:00
Knut Wannheden
6ee58543fc [jOOQ/jOOQ#9200] Get rid of separate query to check for identity
Instead of running a separate query to check if the table has any
identity column this is now being done with a `COUNT(*) FILTER (WHERE
is_identity = 'YES') OVER ()` expression.
2020-01-23 09:53:12 +01:00
Knut Wannheden
8e613d14a9 [jOOQ/jOOQ#8953] Generate Internal#createQueue() call into Queues.java
The code generator will now generate a call to the new
`Internal#createQueue()` factory method instead of directly calling the
`QueueImpl` constructor.
2020-01-22 17:34:15 +01:00
Knut Wannheden
9e403efc7c [jOOQ/jOOQ#8953] No generic type parameter in generated createSequence()
In the generated `Sequences.java` files the generic type parameter in
the `Internal#createSequence()` calls can be omitted.
2020-01-22 17:25:29 +01:00
Knut Wannheden
c367663df7 [jOOQ/jOOQ#9200] Only use IS_IDENTITY if there are IDENTITY columns
The jOOQ code generator will now only map `COLUMNS.IS_IDENTITY` to
`ColumnDefinition#isIdentity()` if the table has a column for which
`COLUMNS.IS_IDENTITY` is `YES`. Otherwise it will continue to check if
the default value starts with `nextval`.
2020-01-22 16:02:36 +01:00
Knut Wannheden
450512c520 [jOOQ/jOOQ#8545] Fix rendering of CURRENT_TIME built-in
While `CURRENT_TIME` doesn't work in the CockroachDB release we
currently use in our integration testing, the necessary changes have
apparently already been integrated. This commit adjusts `CurrentTime`
accordingly so that it will work properly against releases which have
this built-in implemented.
2020-01-22 15:10:34 +01:00
Knut Wannheden
25772619df [jOOQ/jOOQ#3676] Try avoid rendering parenthesis for set operations
By default (`Settings#renderParenthesisAroundSetOperationQueries =
false`) jOOQ will attempt to avoid rendering parenthesis pairs around
the queries combined with set operators (e.g. `UNION` or `UNION ALL`).

In situations where this causes problems, i.e. when the parenthesis pair
is required, the setting can be set to `true` in which case the
parenthesis pair will always be rendered around each of the combined
queries.
2020-01-22 12:09:11 +01:00
Knut Wannheden
5064bd1d43 [jOOQ/jOOQ#9633] Fix case sensitivity for MariaDB 2020-01-22 11:15:07 +01:00
Knut Wannheden
91a5f9e3db [jOOQ/jOOQ#9200] Fix OSS edition incompatibility 2020-01-20 16:24:48 +01:00