Commit Graph

11109 Commits

Author SHA1 Message Date
Lukas Eder
d2e6fda89c [jOOQ/jOOQ#13335] Fix new overloads
Some new aliasing overloads must not be overridden, but delegate to the version that has ubiquitous overrides: as(Name) and as(Name, Name...). Otherwise, there might be missing parentheses and other rendering errors in derived tables, etc.
2022-03-24 15:06:31 +01:00
Lukas Eder
ec55af2b81 [jOOQ/jOOQ#13335] Refactor internals 2022-03-24 14:51:23 +01:00
Lukas Eder
bce4e68e51 [jOOQ/jOOQ#13335] Add Table::as and TableLike::asTable overloads
accepting Collection<? extends X> for derived column lists
2022-03-24 14:48:21 +01:00
Lukas Eder
4561d1607c [jOOQ/jOOQ#9879] Support ON CONFLICT DO UPDATE native implementation 2022-03-24 14:14:10 +01:00
Lukas Eder
57359f0af1 [jOOQ/jOOQ#9879] Re-compute all columns on UPDATE for now
The previous implementation was wrong. It re-computed columns only if one of the computed columns was part of the SET clause (which they shouldn't be in the first place). So, the feature effectively didn't work for the common case.
2022-03-24 14:07:00 +01:00
Lukas Eder
f377b36786 [jOOQ/jOOQ#13334] Add native support for MySQL's derived column lists
starting from SQLDialect.MYSQL8_0_19
2022-03-24 12:07:24 +01:00
Lukas Eder
bf07b2e663 [jOOQ/jOOQ#10521] Push down derived column list aliases to derived table's SELECT clause instead of using UNION ALL emulation, if possible 2022-03-24 11:19:29 +01:00
Lukas Eder
2ffd6f4246 [jOOQ/jOOQ#10523] Emulate UPDATE .. SET row = (SELECT ...) for dialects
with no native support
2022-03-23 16:20:08 +01:00
Lukas Eder
0a1181b460 [jOOQ/jOOQ#9879] Support INSERT .. SELECT 2022-03-23 14:04:26 +01:00
Lukas Eder
193a4b57ec [jOOQ/jOOQ#13325] Fix VisitContext::clause behaviour 2022-03-23 13:14:44 +01:00
Lukas Eder
ba78e2b081 [jOOQ/jOOQ#13325] Fix formatting 2022-03-23 13:12:29 +01:00
Lukas Eder
c93aa4b840 [jOOQ/jOOQ#13325] Refactor internal FieldMapForUpdate to support the row assignments, too
This includes:

- [jOOQ/jOOQ#13329] Add a FieldOrRowOrSelect nominal union type
2022-03-23 12:37:06 +01:00
Lukas Eder
953501b380 [jOOQ/jOOQ#13324] Code generation output shouldn't print table mapping output, if it's the same as the input 2022-03-23 10:08:22 +01:00
Lukas Eder
02df3dced5 [jOOQ/jOOQ#9879] Add support for client side GENERATED ALWAYS AS - WIP 2022-03-23 10:03:44 +01:00
Lukas Eder
11dbdbb75e [jOOQ/jOOQ#13319] Generated records shouldn't have a @ConstructorProperties annotation on their POJO constructor 2022-03-22 08:56:25 +01:00
Lukas Eder
a8b4fa6231 [jOOQ/jOOQ#13315] Compilation error in generated UDTRecord's POJO constructor if the UDT contains arrays of table records 2022-03-21 16:33:39 +01:00
Lukas Eder
a1a4caf59f [jOOQ/jOOQ#10407] Add support for FIREBIRD 4 RETURNING * syntax 2022-03-21 14:03:09 +01:00
Lukas Eder
af4c3396ea [jOOQ/jOOQ#11424] Improve the alignment of GenerationTool INFO log 2022-03-21 12:38:38 +01:00
Lukas Eder
1104cc808b [jOOQ/jOOQ#11441] Inlining PostgreSQL CHAR(len)[] types produces
VARCHAR[] instead
2022-03-21 12:37:45 +01:00
Lukas Eder
91e0e8eb08 [jOOQ/jOOQ#13311] QOM API mutators on Select type don't copy OFFSET ..
LIMIT and a few other clauses
2022-03-21 11:35:43 +01:00
Lukas Eder
26413079ce [jOOQ/jOOQ#13307] Change () arguments in experimental QOM function types to () 2022-03-18 17:06:07 +01:00
Lukas Eder
3a4369e59b [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some negation transformations
2022-03-18 15:42:57 +01:00
Lukas Eder
f69ae22257 [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some LOG10 transformations
2022-03-18 14:57:14 +01:00
Lukas Eder
c703a89248 [jOOQ/jOOQ#13306] Separate QOM.Ln (natural logarithm) from QOM.Log (logarithm with base) 2022-03-18 14:44:19 +01:00
Lukas Eder
c718693d8f [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some ASINH and ACOSH transformations
2022-03-18 13:55:55 +01:00
Lukas Eder
d096b1c64c [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some SQUARE transformations
2022-03-18 13:35:25 +01:00
Lukas Eder
fd04bb9e47 [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some ATANH, ACOTH transformations
2022-03-18 13:31:06 +01:00
Lukas Eder
1b4dc05ef7 [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some LOG, LN, and EXP transformations
2022-03-18 11:17:44 +01:00
Lukas Eder
660a16ce30 [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some TAN, COT transformations
2022-03-18 09:37:53 +01:00
Lukas Eder
6e2603c7b1 [jOOQ/jOOQ#13302] H2TableDefinition with H2 2.0+ produces wrong code generation output when the run mode is Oracle 2022-03-18 09:35:48 +01:00
Lukas Eder
c3a739680b [jOOQ/jOQO#7284] Replace common patterns in query object model
- Some TANH, COTH transformations
2022-03-17 16:20:36 +01:00
Lukas Eder
e135d6e57b [jOOQ/jOQO#7284] Replace common patterns in query object model
- Added some transformPatternsArithmeticExpressions
- Added some transformPatternsHyperbolicFunctions
2022-03-17 14:48:07 +01:00
Lukas Eder
1eff19ed6d [jOOQ/jOOQ#13290] Result.formatHTML() is also affected 2022-03-16 17:21:12 +01:00
Lukas Eder
b88d393bd1 [jOOQ/jOOQ#7803] Support ArrayRecord.formatHTML() 2022-03-16 17:21:02 +01:00
Lukas Eder
3d8516117e [jOOQ/jOOQ#13290] Result.formatCSV() is also affected 2022-03-16 16:31:10 +01:00
Lukas Eder
33aea42499 [jOOQ/jOOQ#7803] Support ArrayRecord.formatXML() 2022-03-16 15:56:47 +01:00
Lukas Eder
b97bfe7d80 [jOOQ/jOOQ#13290] Result.formatXML() is also affected 2022-03-16 15:50:48 +01:00
Lukas Eder
62e252bf6d [jOOQ/jOOQ#7803] Support ArrayRecord.format() 2022-03-16 15:30:01 +01:00
Lukas Eder
0d81f3bbf8 [jOOQ/jOOQ#7803] Support ArrayRecord.formatJSON() 2022-03-16 15:11:20 +01:00
Lukas Eder
e64584ca65 [jOOQ/jOOQ#13290] NullPointerException in Result.formatJSON() when a Record is null 2022-03-16 15:08:16 +01:00
Lukas Eder
c0fb8c95c4 [jOOQ/jOOQ#13289] Added parser support 2022-03-16 14:00:52 +01:00
Lukas Eder
20e9d9dd9a [jOOQ/jOOQ#13289] Support XMLQUERY() and XMLEXISTS() also in SQL Server 2022-03-16 13:00:25 +01:00
Lukas Eder
b3f4dc01a2 [jOOQ/jOOQ#13288] Re-generate code 2022-03-16 12:14:53 +01:00
Lukas Eder
f316d6daf0 [jOOQ/jOOQ#13288] Emluate SQL/XML XMLCONCAT in T-SQL 2022-03-16 12:13:16 +01:00
Lukas Eder
01a36170a4 [jOOQ/jOOQ#13287] Emulate SQL/XML XMLCOMMENT in T-SQL 2022-03-16 11:46:05 +01:00
Lukas Eder
634e259128 [jOOQ/jOOQ#13286] Emulate SQL/XML XMLELEMENT and XMLATTRIBUTES in SQL Server using FOR XML EXPLICIT 2022-03-16 11:22:16 +01:00
Lukas Eder
6472ff2700 [jOOQ/jOOQ#13284] Add support for T-SQL FOR XML EXPLICIT clause 2022-03-16 10:49:39 +01:00
Lukas Eder
ab26605358 [jOOQ/jOOQ#13278] Some missing emulation dialects 2022-03-16 10:43:44 +01:00
Lukas Eder
69236af00f [jOOQ/jOOQ#13281] Improve DSLContext::newRecord Javadoc 2022-03-16 09:43:26 +01:00
Lukas Eder
cab7d7e014 [jOOQ/jOOQ#13040] AbstractRecord.from(String[], TableField[]) no longer
works as expected
2022-03-15 16:16:45 +01:00