Commit Graph

8913 Commits

Author SHA1 Message Date
Lukas Eder
964f6fcc1e [jOOQ/jOOQ#10444] PostgreSQL code generation is incorrect when two
tables share check constraint name
2020-07-28 15:48:01 +02:00
Lukas Eder
c3f404b046 [jOOQ/jOOQ#2230] H2 code generation support for interval types
This includes: [jOOQ/jOOQ#10451] Use H2 native interval arithmetic instead of DATEADD emulation
2020-07-28 14:56:00 +02:00
Lukas Eder
ca2f784d3d [jOOQ/jOOQ#9188] Cannot use DayToSecond intervals in H2, for
intervals bigger than 99 days
2020-07-28 14:47:57 +02:00
Lukas Eder
96b3970eb4 [jOOQ/jOOQ#6244] Make Jetbrains annotations dependency optional/provided 2020-07-28 12:18:19 +02:00
Lukas Eder
aafbf062c9 [jOOQ/jOOQ#10448] Firebird arithmetic exception, numeric overflow, or
string truncation; numeric value is out of range, when using
Field.add(DayToSecond) with large millisecond numbers
2020-07-28 11:22:52 +02:00
Lukas Eder
6540028c02 [jOOQ/jOOQ#10447] Refactor some internal duplicate logic 2020-07-28 10:50:04 +02:00
Lukas Eder
80c19adfa2 [jOOQ/jOOQ#10442] Wrong Javadoc on Settings.renderKeywordStyle 2020-07-28 10:19:33 +02:00
Lukas Eder
4da1c1a17a [jOOQ/jOOQ#10438] Factored out duplicate class 2020-07-28 09:55:34 +02:00
Lukas Eder
748ec93283 [jOOQ/jOOQ#10438] Support lazy conversion of built-in data types 2020-07-23 17:41:04 +02:00
Lukas Eder
af2f5bc935 [jOOQ/jOOQ#10438] Support lazy DataType lookups in DSL.val() and
DSL.inline()

This includes [jOOQ/jOOQ#9492] Deprecate static data type registry
lookups for user defined data types
2020-07-23 16:44:52 +02:00
Lukas Eder
84e8acc750 [jOOQ/jOOQ#10438] Lazy application of DataType to bind variables 2020-07-23 12:43:49 +02:00
Lukas Eder
65582520bd [jOOQ/jOOQ#10312] Converted datatype not using type from dialect after calling nullable 2020-07-23 12:43:32 +02:00
Lukas Eder
271d4ce311 [jOOQ/jOOQ#6244] More annotations 2020-07-23 12:41:34 +02:00
Lukas Eder
ff0aaa2088 [jOOQ/jOOQ#10432] Java 6 fix 2020-07-22 17:27:58 +02:00
Lukas Eder
9acb5772b4 [jOOQ/jOOQ#4941] Add LoaderListenerStep.onRowStart() for preprocessing input data 2020-07-22 16:26:32 +02:00
Lukas Eder
9e3a1dc5ec [jOOQ/jOOQ#10432] Add Settings.cachePreparedStatementsInLoader to keeping open PreparedStatements in Loader API 2020-07-22 15:34:19 +02:00
Lukas Eder
06f15008cc [jOOQ/jOOQ#10435] DSLContext.connection() and similar methods should not wrap RuntimeException in DataAccessException 2020-07-22 15:10:46 +02:00
Lukas Eder
6f4cb65f56 Cleanup 2020-07-22 14:05:53 +02:00
Lukas Eder
2da86fde7a [jOOQ/jOOQ#2752] Allow for skipping preparing statement.
If after ExecuteListener::prepareStart, ExecuteContext::statement is available, use that statement instead of preparing a new one.
2020-07-22 13:11:57 +02:00
Lukas Eder
b29e2aeefc [jOOQ/jOOQ#10425] ImmutablePOJOMapperWithParameterNames no longer injects default values for unmapped primitive arguments 2020-07-20 13:04:52 +02:00
Lukas Eder
46ad2c4fcb [jOOQ/jOOQ#10426] Use standard SQL for identity columns in H2 2020-07-20 12:21:11 +02:00
Lukas Eder
ade95b281d [jOOQ/jOOQ#10429] Make LoaderRowListener a FunctionalInterface 2020-07-20 10:36:31 +02:00
Lukas Eder
61f9818b3a [jOOQ/jOOQ#10399] Fixed CockroachDB serial column default expression 2020-07-17 17:12:33 +02:00
Lukas Eder
dd00091982 [jOOQ/jOOQ#8576] Regenerate jOOQ-meta code with
<instanceFields>true</instanceFields> - MariaDB
2020-07-17 16:54:29 +02:00
Lukas Eder
5fd997e999 [jOOQ/jOOQ#8576] More urgent deprecation warning 2020-07-17 16:51:53 +02:00
Lukas Eder
75564fb38d [jOOQ/jOOQ#8576] Regenerate jOOQ-meta code with
<instanceFields>true</instanceFields>
2020-07-17 16:33:11 +02:00
Lukas Eder
0bf32a4458 [jOOQ/jOOQ#10422] Let User and Role extend Named to give access to
quoted / unquoted and qualified / unqualified names
2020-07-17 15:14:14 +02:00
Lukas Eder
a4b54b2436 [jOOQ/jOOQ#10420] Add Context.methodIf(Arg, boolean) for an "internal if" implementation 2020-07-17 14:53:38 +02:00
Lukas Eder
d50e8bd3f6 [jOOQ/jOOQ#10365] DSL.currentTimestamp() should generate GETDATE() instead of CURRENT_BIGDATETIME() in Sybase ASE 12.5 2020-07-17 14:18:51 +02:00
Lukas Eder
9ffd882d2f [jOOQ/jOOQ#10418] GrantOnStep.on(String) and RevokeOnStep.on(String) should wrap String argument in Name 2020-07-17 12:57:28 +02:00
Lukas Eder
75579d6080 [jOOQ/jOOQ#10417] Sybase ASE cannot cast from numbers to TEXT directly 2020-07-17 11:43:23 +02:00
Lukas Eder
066d213a92 [jOOQ/jOOQ#10415] Wrong Support annotations on INTERSECT and EXCEPT for MySQL 2020-07-17 10:18:21 +02:00
Lukas Eder
8b5c0240ef [jOOQ/jOOQ#10406] WIP 2020-07-16 17:42:03 +02:00
Lukas Eder
8b22e47726 [jOOQ/jOOQ#10406] WIP 2020-07-16 14:49:47 +02:00
Lukas Eder
b16664d1ec [jOOQ/jOOQ#10408] Error in Sybase ASE INSERT .. DEFAULT VALUES emulation when used with identity column 2020-07-16 14:49:31 +02:00
Lukas Eder
5bf67a30c8 [jOOQ/jOOQ#10404] Add SQLDialect.ASE_12_5, ASE_15_5, ASE_15_7, ASE_16_0 dialects 2020-07-16 12:20:59 +02:00
Lukas Eder
fddd51b3fd [jOOQ/jOOQ#10399] Fixed Derby code generator 2020-07-16 10:34:15 +02:00
Lukas Eder
d68d6326fe [jOOQ/jOOQ#10402] Add when(Field<Boolean>) overloads to CASE expression API 2020-07-16 09:59:10 +02:00
Lukas Eder
b5b65b037c [jOOQ/jOOQ#10399] Fixed PostgreSQL code generator 2020-07-16 09:56:14 +02:00
Lukas Eder
f40a591bf4 [jOOQ/jOOQ#9212] Add support for MariaDB INSERT and DELETE RETURNING 2020-07-15 15:40:23 +02:00
Lukas Eder
11e9ec7eac Regenerated example code 2020-07-15 15:39:57 +02:00
Lukas Eder
719aae0a73 [jOOQ/jOOQ#10400] Use DataType.identity() information in the absence of Table.getIdentity() in INSERT .. RETURNING emulation 2020-07-15 13:12:56 +02:00
Lukas Eder
59088d30c8 [jOOQ/jOOQ#10399] DataType.defaultValue() and DataType.identity() shouldn't be mutually exclusive
This also fixes:

[jOOQ/jOOQ#10398] <syntheticIdentities/> doesn't set DataType.identity(true) in generated code
2020-07-15 12:39:04 +02:00
Lukas Eder
299f98616a [jOOQ/jOOQ#10397] Restore generating Table.getIdentity() overrides
But don't generate Identity constants, instead cast the super.getIdentity() result to a more narrow type.
2020-07-15 12:26:24 +02:00
Lukas Eder
12e20eb413 [jOOQ/jOOQ#10397] Default implementation of AbstractTable.getIdentity() should check Table.fields() for any Field with DataType.identity() 2020-07-15 11:58:36 +02:00
Lukas Eder
a1d3d20d0c [jOOQ/jOOQ#10386] Updated Javadoc to refer to new Settings 2020-07-14 16:19:37 +02:00
Lukas Eder
43d89b6bbe [jOOQ/jOOQ#10394] <comments/> and related flags implemented incorrectly
in JavaGenerator
2020-07-14 16:08:59 +02:00
Lukas Eder
604feeeeea [jOOQ/jOOQ#10390] <sources/> and <sourcesOnViews/> are not implemented in XMLGenerator 2020-07-14 15:36:03 +02:00
Lukas Eder
aa6957e4cc [jOOQ/jOOQ#10387] XMLGenerator should quote source code from views, check constraints, and default expressions in generated output 2020-07-14 14:16:30 +02:00
Lukas Eder
00f38ce5b1 [jOOQ/jOOQ#10391] Implement TableOptions equals() and hashCode() 2020-07-14 14:11:15 +02:00