Commit Graph

8783 Commits

Author SHA1 Message Date
Lukas Eder
a8d77ff363 [jOOQ/jOOQ#8948] Map JSON / JSONB to CLOB/BLOB in HSQLDB 2020-06-25 11:21:20 +02:00
Lukas Eder
48c4ee5ed2 [jOOQ/jOOQ#10321] Add support for JSON / JSONB types in H2 2020-06-25 11:04:22 +02:00
Lukas Eder
605dc4c94e [jOOQ/jOOQ#9246] ALTER TABLE .. ADD UNIQUE INDEX syntax cannot be parsed 2020-06-24 17:26:41 +02:00
Lukas Eder
683d043322 Long source code workaround allocates substrings twice #10318 2020-06-24 16:08:12 +02:00
Lukas Eder
bd26c80cd3 [jOOQ/jOOQ#10315] Fix Derby regression 2020-06-24 12:20:45 +02:00
Lukas Eder
477fa58a44 [jOOQ/jOOQ#10317] Deprecate Context.formatIndentLockStart() and formatIndentLockEnd() 2020-06-24 12:14:04 +02:00
Lukas Eder
7aa5bbf6a8 [jOOQ/jOOQ#10315] Bad formatting of single WHEN CASE expression 2020-06-24 11:46:04 +02:00
Lukas Eder
39ba2ec9cf [jOOQ/jOOQ#10311] Javadoc of SQLDataType.INTERVAL is incorrect 2020-06-24 10:50:42 +02:00
Lukas Eder
8043e3577d [jOOQ/jOOQ#10313] SQLDialect.supportedBy() sets should be used with
contains(dialect), not contains(family)
2020-06-24 10:22:40 +02:00
Lukas Eder
aa2afc3b23 [jOOQ/jOOQ#10313] SQLDialect.supportedBy() sets should be used with
contains(dialect()), not contains(family())
2020-06-24 10:12:28 +02:00
Lukas Eder
cf84aa6757 [jOOQ/jOOQ#10128] Check dialect(), not family() 2020-06-24 09:35:51 +02:00
Lukas Eder
ca3fcb8570 This doesn't work 2020-06-23 11:55:44 +02:00
Lukas Eder
474657a44b [jOOQ/jOOQ#10128] Add support for Postgres 12 materialized CTEs 2020-06-23 11:50:29 +02:00
Lukas Eder
f0414c4be8 [jOOQ/jOOQ#9554] not(unique(c)) / notUnique(c) and not(exists(c)) / notExists(c) should generate the same SQL 2020-06-22 17:03:21 +02:00
Lukas Eder
43048f1338 [jOOQ/jOOQ#10301] Columns are aliased by default to their own name, when using SQL Server parse dialect 2020-06-22 16:14:25 +02:00
Lukas Eder
788188c512 [jOOQ/jOOQ#10175] Added parser support for array_get(a, i) and a[i] 2020-06-22 12:50:26 +02:00
Lukas Eder
39db60b9b9 [jOOQ/jOOQ#10175] Add support for ARRAY_GET
This includes [jOOQ/jOOQ#10300] Add DataType.getArrayComponentType() and getArrayComponentDataType()
2020-06-22 12:33:23 +02:00
Lukas Eder
aad8d49ead [jOOQ/jOOQ#10175] Add support for CARDINALITY() function 2020-06-22 11:44:21 +02:00
Lukas Eder
6ef02d4576 [jOOQ/jOOQ#10299] Improve ParserImpl code reuse for single arg functions 2020-06-22 11:44:07 +02:00
Lukas Eder
a4d9601e0b Merge branch 'main' of https://github.com/jOOQ/jOOQ into main 2020-06-22 11:03:20 +02:00
Lukas Eder
5b881d717c [jOOQ/jOOQ#10175] Add support for CARDINALITY() function 2020-06-22 11:03:00 +02:00
Lukas Eder
6f4cf42ce0
Merge pull request #10296 from rweisleder/master-to-main-cleanup
Reflect branch renaming from master to main in CONTRIBUTING.md
2020-06-19 15:34:50 +02:00
Roland Weisleder
a049f3df37 Reflect branch renaming from master to main in CONTRIBUTING.md 2020-06-19 15:09:19 +02:00
Lukas Eder
0f2cadebb4 [jOOQ/jOOQ#6244] Add NotNull to Internal methods 2020-06-19 14:15:59 +02:00
Lukas Eder
1cc5a24967 [jOOQ/jOOQ#10291] Add support for CITEXT and VARCHAR_IGNORECASE types in parser 2020-06-19 14:06:30 +02:00
Lukas Eder
92285a998b [jOOQ/jOOQ#10295] Configuration.transactionProvider() is null after deserialisation 2020-06-19 13:06:20 +02:00
Lukas Eder
34d479cd96 [jOOQ/jOOQ#6244] Add nullability annotations to jOOQ API
- Name::first and Name::last are nullable
2020-06-19 12:11:40 +02:00
Lukas Eder
2f4997c435 [jOOQ/jOOQ#6244] Add nullability annotations to jOOQ API
- DataType.getSQLDataType() is nullable
2020-06-19 12:08:31 +02:00
Lukas Eder
824e689f19 [jOOQ/jOOQ#6244] Add nullability annotations to jOOQ API
- Generic type variable returning methods don't need to be annotated
- Annotated some SPIs
- Annotated Result, Cursor, and many other types
- Enhance AnnotationTest to validate jOOQ API without Support annotation
- Add InstrumentationTests to assert correctness of jOOQ-test-agent
- Don't expect annotations on XJC generated code
- Exclude default methods for now (Byte Buddy bug?)
- [jOOQ/jOOQ#10294] Remove methods from RenderContext and BindContext
2020-06-19 11:53:35 +02:00
Lukas Eder
0161a45ebe [jOOQ/jOOQ#6244] Add nullability annotations to jOOQ API (WIP)
This includes a partial implementation of [jOOQ/jOOQ#10292] Add org.jooq.Qualified
2020-06-18 15:19:44 +02:00
Lukas Eder
4aef6db5ef [jOOQ/jOOQ#6248] [jOOQ/jOOQ#10288] Add <pojosAsKotlinDataClasses/> to
the code generator to generate data classes
2020-06-17 12:34:59 +02:00
Lukas Eder
7712891962 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10191] Add <pojosAsScalaCaseClasses/> to the
code generator to generate case classes
2020-06-17 11:35:31 +02:00
Lukas Eder
f1c63cfc07 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10287] [jOOQ/jOOQ#10288]
Don't turn on <pojos/> by default in Scala/Kotlin
2020-06-16 19:38:46 +02:00
Lukas Eder
374d1af273 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10287] [jOOQ/jOOQ#10288]
Added configuration for Java records / Scala case classes / Kotlin data classes in code generator.
2020-06-16 17:43:00 +02:00
Lukas Eder
7570825334 [jOOQ/jOOQ#9404] Stop calling deprecated internal API 2020-06-16 17:04:26 +02:00
Lukas Eder
88dea0a908 [jOOQ/jOOQ#6736] Fixed formatting 2020-06-16 16:49:57 +02:00
Lukas Eder
06b94e5fa1 [jOOQ/jOOQ#6736] Added parser support 2020-06-16 16:35:49 +02:00
Lukas Eder
b9a1c6ead0 [jOOQ/jOOQ#6736] Add support for PostgreSQL ON CONFLICT .. WHERE <index_predicate> 2020-06-16 16:26:01 +02:00
Lukas Eder
681f14b2e8 [jOOQ/jOOQ#7172] [jOOQ/jOOQ#10274] Fix also SchemaImpl::equals
Just like TableImpl::equals, SchemaImpl::equals must not use getQualifiedName() yet, but call getCatalog() for it to work correctly with generated code.
2020-06-16 15:15:12 +02:00
Lukas Eder
9a60e71852 [jOOQ/jOOQ#7172] [jOOQ/jOOQ#10274] Fix regression
The previous fix for TableImpl::equals was incorrect when the schema is qualified with a catalog
2020-06-16 15:03:06 +02:00
Lukas Eder
2592960afe [jOOQ/jOOQ#10280] The method name is Meta.snapshot() 2020-06-16 12:23:52 +02:00
Lukas Eder
5f0de09cbc [jOOQ/jOOQ#10284] Add UDT.getPackage() in the OSS edition API 2020-06-16 11:53:23 +02:00
Lukas Eder
159b451f20 [jOOQ/jOOQ#10279] Support identity in DetachedTable 2020-06-16 11:33:16 +02:00
Lukas Eder
06a665e4ba [jOOQ/jOOQ#10279] DetachedMeta fixes
- Copy check constraints in DetachedTable
- Use Name in constraints
- Copy sequence flags
- Copy enforced flag
- Create common AbstractMeta::lookupTable utility
- Support FKs referencing UKs
- TranslatingMetaProvderTest shouldn't read external files
- Reuse AbstractInterpreterTest logic in TranslatingMetaProviderTest
- [jOOQ/jOOQ#10281] AbstractKey.equals doesn't work for MetaPrimaryKey
- DetachedMeta.primaryKey must share identity with one of the UKs
- Copy TableOptions in DetachedMeta
2020-06-16 11:20:25 +02:00
Lukas Eder
18b394b47e [jOOQ/jOOQ#9404] AbstractKey and subtypes should accept Name instead of
string in constructors
2020-06-15 17:12:46 +02:00
Lukas Eder
580ea3e837 [jOOQ/jOOQ#10280] Add Meta.detach() to create an in-memory copy of a Meta implementation 2020-06-15 17:12:36 +02:00
Lukas Eder
88aa871b8e [jOOQ/jOOQ#10204] No effectively final in Java 6 2020-06-12 16:29:04 +02:00
Lukas Eder
9034db7e16 [jOOQ/jOOQ#7172] [jOOQ/jOOQ#10274] Cannot use getQualifiedName() yet
here
2020-06-12 16:27:23 +02:00
Lukas Eder
c9a5c03ae1 [jOOQ/jOOQ#10204] FilteredTable::getIdentity must lazy init keys 2020-06-12 16:10:59 +02:00
Lukas Eder
9dce966193 [jOOQ/jOOQ#10204] Refactor CatalogMetaImpl
- CatalogMetaImpl should use FilteredMeta
- SchemaMetaImpl and TableMetaImpl are no longer necessary
- [jOOQ/jOOQ#10274] [jOOQ/jOOQ#7172] Some equals methods were adapted
- Fixed check constraints and identities
- Create copies of PK and UK using Internal API
- Support FKs referencing UKs
- [jOOQ/jOOQ#10276] Don't export FKs pointing outside of a schema subset
2020-06-12 15:51:11 +02:00