Commit Graph

8061 Commits

Author SHA1 Message Date
Lukas Eder
38cc7d4733 [jOOQ/jOOQ#8528] Fix interpretation of DROP SCHEMA .. CASCADE
When there are inbound foreign keys into a schema that is being dropped with CASCADE, those foreign keys have to be deleted first
2019-12-10 12:18:32 +01:00
Lukas Eder
c9e2c764fb [jOOQ/jOOQ#9533] Fixed syntax error 2019-12-10 11:55:54 +01:00
Lukas Eder
3bfb0c9756 [jOOQ/jOOQ#9157] [jOOQ/jOOR#57] Try again
When running the Java 8 distribution's code of jOOR on Java 9,
CACHED_LOOKUP_CONSTRUCTOR is null because we're not allowed to access
that from JDK 9+. This means we can no longer use it in reflection
logic, e.g. when implementing in-memory compilation. We have to use the
Java 9+ logic via meta-reflection.
2019-12-10 11:29:45 +01:00
Lukas Eder
d8b63da46c [jOOQ/jOOQ#9157] [jOOQ/jOOR#57] Try again
When running the Java 8 distribution's code of jOOR on Java 9, CACHED_LOOKUP_CONSTRUCTOR is null because we're not allowed to access that from JDK 9+. This means we can no longer use it in reflection logic, e.g. when calling default methods. We have to use the Java 9+ logic via meta-reflection.
2019-12-10 11:05:00 +01:00
Lukas Eder
5f3f2e101c The example code shouldn't use var yet 2019-12-10 10:29:27 +01:00
Lukas Eder
131ed5fbfd [jOOQ/jOOQ#9648] ArrayIndexOutOfBoundsException if query has a single or double quote char in vendor specific comment 2019-12-10 09:57:55 +01:00
Lukas Eder
40ef8cda06 [jOOQ/jOOQ#9425] DDLDiffConfiguration.dropTableCascade() support
- Enhanced IN/OUT parameter that wraps the existing List<Query> and allows for passing around additional context information
- Prevent FKs from being dropped twice
2019-12-09 13:21:56 +01:00
Lukas Eder
f7e2229f53 [jOOQ/jOOQ#9382] Added DDL interpretation support 2019-12-09 12:20:52 +01:00
Lukas Eder
41263129d2 [#9382] Add support for Oracle's ALTER TABLE .. DROP UNIQUE (<columns>) syntax 2019-12-09 11:55:25 +01:00
Lukas Eder
a78679b0fa [jOOQ/jOOQ#9636] Add Settings.locale() as a default for renderLocale()
and other locales
2019-12-06 17:48:37 +01:00
Lukas Eder
007d25fb76 [jOOQ/jOOQ#8528] Cache interpreted objects for better bi-directionality 2019-12-06 17:48:12 +01:00
Lukas Eder
e8e2218673 [jOOQ/jOOQ#9636] Add Settings.locale() as a default for renderLocale() and other locales 2019-12-06 11:32:07 +01:00
Lukas Eder
d5ecab1e71 [jOOQ/jOOQ#9633] Add a new Settings.interpreterNameLookupCaseSensitivity
- Default is now ParseNameCase.UPPER_IF_UNQUOTED ([jOOQ/jOOQ#9238])
- Made ParseNameCase logic reusable for ParserImpl and DDLInterpreter
- DDLInterpreter MutableNamed model now uses inner classes to share
  Configuration instance access
- Case insensitive comparisons now use Settings.renderLocale()
  TODO: [jOOQ/jOOQ#9636]
2019-12-06 11:15:19 +01:00
Lukas Eder
b5b5bc4f6b [jOOQ/jOOQ#9633] Add a new Settings.interpreterNameLookupCaseSensitivity
(WIP, see new TODOs)
2019-12-05 20:49:29 +01:00
lukaseder
726e338f04 [jOOQ/jOOQ#8528] Removed normalization in DDL interpreter
This concept needs to be solved more globally by supporting new settings that govern case sensitivity of identifiers. The default is case insensitive.

Also, some refactorings that unify name lookups to prepare for this new feature
2019-12-05 18:10:22 +01:00
lukaseder
2f9325ea5f [jOOQ/jOOQ#9425] Diff support for ALTER .. SET DATA TYPE
See also [jOOQ/jOOQ#9632]
2019-12-05 16:04:03 +01:00
lukaseder
c4ed8e7dce [jOOQ/jOOQ#9425] Diff renaming of indexes 2019-12-05 15:27:45 +01:00
Knut Wannheden
aa963f3010 [jOOQ/jOOQ#9629] Add "sequenceFlags" option to code generator
The `<generate>` element now has a `<sequenceFlags>` element which can
be used to disable the sequence flags generation, which is enabled by
default.
2019-12-05 14:29:09 +01:00
Knut Wannheden
791ed71c5b [jOOQ/jOOQ#9603] Change names to conform with SQL standard
The names of the XML elements in `jooq-meta-3.13.0.xsd` corresponding to
sequence flags have been changed to conform with the SQL standard.

Additionally the type of the numeric sequence flags have been changed
from `Long` to `BigInteger` and consequently also in other APIs from
`Long` to `Number`.
2019-12-05 13:51:48 +01:00
lukaseder
c4d6155aeb [jOOQ/jOOQ#9506] Added more TODOs 2019-12-05 08:33:05 +01:00
Knut Wannheden
9940a56afa [jOOQ/jOOQ#9603] Support sequence flags in jooq-meta.xsd
Sequence flags are now also supported in the jooq-meta.xsd model and
everywhere where this is used.
2019-12-04 17:17:03 +01:00
Lukas Eder
f00cbabd5e [jOOQ/jOOQ#8545] More casting 2019-12-04 16:40:51 +01:00
Lukas Eder
80b3148739 [jOOQ/jOOQ#8545] Emulate ON CONFLICT .. ON CONSTRAINT 2019-12-04 16:30:57 +01:00
Lukas Eder
f0902e65e1 [jOOQ/jOOQ#8545] Some cast fixes 2019-12-04 16:03:58 +01:00
Lukas Eder
ef3f9df088 [jOOQ/jOOQ#8528] More cleaning up bi-directional associations 2019-12-04 15:38:46 +01:00
Lukas Eder
890cb5de20 [jOOQ/jOOQ#8528] Clean up cross schema references after drop schema cascade event. 2019-12-04 15:33:41 +01:00
Lukas Eder
55e45a9f14 [jOOQ/jOOQ#8528] Added some lifecycle for bi-directional associations 2019-12-04 15:22:15 +01:00
Lukas Eder
358871ed21 [jOOQ/jOOQ#8528] Added TODO 2019-12-04 14:04:28 +01:00
Lukas Eder
6f7f7f239e [jOOQ/jOOQ#9621] NullPointerException in DefaultRecordMapperProvider when setting a new instance to a Configuration 2019-12-04 13:08:35 +01:00
Lukas Eder
cd196d1712 [jOOQ/jOOQ#8545] Use Field.concat() to re-use internal casts 2019-12-04 12:24:28 +01:00
Lukas Eder
11d00de526 [jOOQ/jOOQ#8545] Added CockroachDB to SQLDialect.thirdParty() 2019-12-04 11:51:07 +01:00
Lukas Eder
8cc310d7fb [jOOQ/jOOQ#9620] No DiagnosticsListener.missingWasNullCall() when nullability is unknown 2019-12-04 11:40:47 +01:00
Lukas Eder
734bd40138 [jOOQ/jOOQ#9612] Document JSON and JSONB NULL semantics 2019-12-04 10:41:46 +01:00
Lukas Eder
a2f29a8612 [jOOQ/jOOQ#5317] Fix regression 2019-12-04 09:49:47 +01:00
Lukas Eder
ee98a3c377 [jOOQ/jOOQ#5317] Add support for ALTER TABLE .. ADD [ COLUMN ] .. [ { PRIMARY KEY | UNIQUE } ] [ REFERENCES | CHECK .. ] 2019-12-04 09:37:01 +01:00
Knut Wannheden
f0950e0779 [jOOQ/jOOQ#9442] Support sequence flags in MariaDBDatabase 2019-12-04 08:44:10 +01:00
Knut Wannheden
7497d0006c [jOOQ/jOOQ#9442] H2Database: Replace default flags with null
With jOOQ/jOOQ#9602 this behavior can be fine-tuned.
2019-12-04 08:41:17 +01:00
Lukas Eder
d0c8a84754 [jOOQ/jOOQ#9616] Support parsing ALTER TABLE .. ADD, .. ADD 2019-12-03 17:09:53 +01:00
Lukas Eder
d8b72f2ada [jOOQ/jOOQ#8528] Support FIRST / BEFORE / AFTER with multi column ADD 2019-12-03 16:53:25 +01:00
Lukas Eder
476d4e9bc5 [jOOQ/jOOQ#7639] There is no CHECK_CONSTRAINTS.TABLE_NAME column in
MySQL
2019-12-03 15:01:31 +01:00
Lukas Eder
15e9308729 [jOOQ/jOOQ#9613] Update Configuration Javadoc 2019-12-03 15:01:14 +01:00
Lukas Eder
cea7b280d2 [jOOQ/jOOQ#7639] Workaround for MariaDB bug 2019-12-03 12:04:01 +01:00
Lukas Eder
1a947a6b6a [jOOQ/jOOQ#9610] Add code generation support for Derby indexes 2019-12-03 10:33:32 +01:00
Lukas Eder
53f7cc0c79 [jOOQ/jOOQ#9601] Add <includeSystemIndexes/> 2019-12-03 09:39:00 +01:00
Lukas Eder
8e1cfbcb4b [jOOQ/jOOQ#7639] Forward compatible H2 check constraint generation code
See also [h2database/h2database#2286]
2019-12-02 11:00:42 +01:00
Lukas Eder
fb07821ced [jOOQ/jOOQ#7639] Added CHECK code generation support for Derby 2019-12-02 10:48:24 +01:00
Lukas Eder
f530abd831 [jOOQ/jOOQ#7639] Generate check constraints in Firebird 2019-11-28 17:17:36 +01:00
Lukas Eder
c7378bbc63 [jOOQ/jOOQ#9600] WIP 2019-11-28 14:04:25 +01:00
Knut Wannheden
7ced55d45f [jOOQ/jOOQ#9442] Cosmetics 2019-11-28 07:05:03 +01:00
Knut Wannheden
c09ddd9c8c [jOOQ/jOOQ#9442] Sequence flag generation for PostgreSQL
Note: Cache information is not available from PostgreSQL's
`INFORMATION_SCHEMA.SEQUENCES`.
2019-11-27 16:49:17 +01:00