Commit Graph

9112 Commits

Author SHA1 Message Date
Lukas Eder
fbfa2e82ee [jOOQ/jOOQ#10692] Don't batch X .. RETURNING statements 2020-09-28 11:52:20 +02:00
Lukas Eder
2811d8e18b [jOOQ/jOOQ#10648] Don't log this info if we're already using schema version providers 2020-09-25 17:23:09 +02:00
Lukas Eder
81e3d91e80 [jOOQ/jOOQ#10653] Make the JavaGenerator::INITIALISER_SIZE configurable through <maxMembersPerInitialiser/> 2020-09-25 16:17:25 +02:00
Lukas Eder
157bde3056 [jOOQ/jOOQ#10694] Some refactorings 2020-09-25 15:50:48 +02:00
Lukas Eder
f541eda04d [jOOQ/jOOQ#10654 Make the generation of the serialVersionUID configurable 2020-09-25 15:50:27 +02:00
Lukas Eder
c77c7abd4e [jOOQ/jOOQ#10694] Add DataType.asConvertedDataType(Class<U>, Function<-T, +U>, Function<-U, +T>) 2020-09-25 14:50:03 +02:00
Lukas Eder
6bc0793cde [jOOQ/jOOQ#10693] Add Settings.batchSize to transparently specify a maximum batch size for BatchedConnection 2020-09-25 14:22:54 +02:00
Lukas Eder
20e0972e5b [jOOQ/jOOQ#3419] Improved log message 2020-09-25 12:52:32 +02:00
Lukas Eder
bddb612cf2 [jOOQ/jOOQ#10689] Deprecate zero-args and one-arg Converters.of() methods 2020-09-25 11:19:15 +02:00
Lukas Eder
cb5ba5cdac [jOOQ/jOOQ#10688] Add Converter.forArrays() to turn a Converter<T, U> into a Converter<T[], U[]> 2020-09-25 11:16:58 +02:00
Lukas Eder
112fb55e8a [jOOQ/jOOQ#3419] Improved BatchedConnection
- Added DEBUG logging
- Fixed close() and execute() semantics in some cases
2020-09-25 10:04:53 +02:00
Lukas Eder
28c375fdd2 [jOOQ/jOOQ#8885] Cosmetic change 2020-09-25 09:16:00 +02:00
Lukas Eder
dc896f3282 [jOOQ/jOOQ#10655] Support empty INSERT .. VALUES() clause via DEFAULT VALUES 2020-09-25 09:00:23 +02:00
Lukas Eder
4a4e4bd0e6 [jOOQ/jOOQ#3419] Support annotation not needed here 2020-09-24 16:55:48 +02:00
Lukas Eder
81f4f490d5 [jOOQ/jOOQ#3419] Added a remark about update counts 2020-09-24 16:45:12 +02:00
Lukas Eder
0dc27d7102 [jOOQ/jOOQ#10686] ConnectionRunnable and ConnectionCallable should
accept throwing Throwable
2020-09-24 16:42:31 +02:00
Lukas Eder
f491e8c166 [jOOQ/jOOQ#3419] Added DSLContext.batched() 2020-09-24 16:35:29 +02:00
Lukas Eder
6b214b13c3 [jOOQ/jOOQ#7312] Java 6 fix 2020-09-24 14:09:52 +02:00
Lukas Eder
ddd49bfbf2 [jOOQ/jOOQ#7312] Don't mutate input expression tree in transformation! 2020-09-24 12:23:35 +02:00
Lukas Eder
55763c545d [jOOQ/jOOQ#9044] Add support for parsing single parameter numeric TRUNC() function 2020-09-24 11:00:48 +02:00
Lukas Eder
d94388f1c0 [jOOQ/jOOQ#9017] Added ParserCLI support 2020-09-24 10:52:38 +02:00
Lukas Eder
1976d6eb26 [jOOQ/jOOQ#10682] Add Collection overload for CatalogMetaProvider, SchemaMetaProvider, TableMetaProvider constructors 2020-09-24 10:52:25 +02:00
Lukas Eder
4dbb40e58e [jOOQ/jOOQ#9017] Combine several rownum filters and retain the lowest 2020-09-24 10:11:07 +02:00
Lukas Eder
87ab89ba7c [jOOQ/jOOQ#9017] Rename setting to transformRownum 2020-09-24 09:54:23 +02:00
Lukas Eder
c3f8c3028e [jOOQ/jOOQ#10679] Parser incorrectly parses IN predicate of degree > 1
with extra parentheses around SELECT subquery
2020-09-23 21:13:57 +02:00
Lukas Eder
3ec7707b7e [jOOQ/jOOQ#9017] Add Settings.transformRownumToLimit
- Don't copy pro attributes
2020-09-23 17:16:53 +02:00
Lukas Eder
54c18ca6ae [jOOQ/jOOQ#9017] Add Settings.transformRownumToLimit
- Implement ROWNUM = 1, ROWNUM <= 1, ROWNUM != 2 translating to LIMIT 1
- Implement trivial ROWNUM =, >=, <= ROWNUM
- Implement trivial ROWNUM != 0
- Implement impossible ROWNUM !=, >, < ROWNUM
- Implement impossible ROWNUM = 2, ROWNUM != 1, ROWNUM < 1, ROWNUM <= 0
- Implement AND
- Some other implementations
2020-09-23 17:02:40 +02:00
Lukas Eder
9816dd8c43 [jOOQ/jOOQ#10669] Parser should parse DATE - DATE to dateDiff() and TIMESTAMP - TIMESTAMP to timestampDiff() 2020-09-23 13:59:09 +02:00
Lukas Eder
98e116e985 [jOOQ/jOOQ#10675] Parser doesn't recognise Oracle ( + ) operator, if it contains whitespace 2020-09-23 11:53:38 +02:00
Lukas Eder
f5fb7b356b [jOOQ/jOOQ#10670] Error when parsing Oracle (+) operator with ParseUnknownFunctions.IGNORE 2020-09-23 11:30:10 +02:00
Lukas Eder
aa022873b5 [jOOQ/jOOQ#10665] Restore pretty rendering of associative operators
(a + b + c) instead of ((a + b) + c) or (a + (b + c))
2020-09-22 16:06:02 +02:00
Lukas Eder
2bd8037ebe [jOOQ/jOOQ#10644] Added ParserCLI support 2020-09-22 15:09:57 +02:00
Lukas Eder
38a43d999b [jOOQ/jOOQ#10644] Add Settings.transformUnneededArithmeticExpressions to
optimise arithmetic prior to SQL generation

- Support transformation of negations
2020-09-22 14:48:29 +02:00
Lukas Eder
e232a06e84 [jOOQ/jOOQ#10644] Add Settings.transformUnneededArithmeticExpressions to
optimise arithmetic prior to SQL generation

- Added INTERNAL implementation to functions
- Fixed recursive behaviour
- Implement this for unaryMinus() (negation)
2020-09-22 14:32:05 +02:00
Lukas Eder
f57d5d8af4 [jOOQ/jOOQ#10644] Add Settings.transformUnneededArithmeticExpressions to
optimise arithmetic prior to SQL generation

- Added commutative / associative flag to ExpressionOperator
- Transform identity operations
- Transform null operations
- Transform * 0 operations
- Transform inlined +, -, *, / operations
2020-09-22 11:30:09 +02:00
Lukas Eder
c8d9a5b991 [jOOQ/jOOQ#10665] Change org.jooq.impl.Expression implementation to be binary only
- This change temporarily removes the beautification of expressions of the type (a + b + c) and produces ((a + b) + c), instead
2020-09-22 10:39:40 +02:00
Lukas Eder
e3d0cc483d [jOOQ/jOOQ#10644] Add Settings.transformUnneededArithmeticExpressions to optimise arithmetic prior to SQL generation (WIP) 2020-09-22 10:28:35 +02:00
Lukas Eder
74c06bf825 [jOOQ/jOOQ#10660] H2 supports SYSTEM_RANGE 2020-09-21 22:40:34 +02:00
Lukas Eder
279a447536 [jOOQ/jOOQ#10663] Improve formatting of CONNECT BY emulation of GENERATE_SERIES 2020-09-21 11:57:32 +02:00
Lukas Eder
5b266002d0 [jOOQ/jOOQ#10659] Add Informix emulation for GENERATE_SERIES 2020-09-21 11:42:12 +02:00
Lukas Eder
f029fa79a6 [jOOQ/jOOQ#10662] Informix does not support SELECT NULL 2020-09-21 11:29:01 +02:00
Lukas Eder
8dbcd7190d [jOOQ/jOOQ#10660] Add WITH RECURSIVE emulations for GENERATE_SERIES, where available 2020-09-21 11:05:07 +02:00
Lukas Eder
d8b16a9c2d [jOOQ/jOOQ#10658] Add Sequence.nextvals(int):Select<Record1<T>> and DSLContext.nextvals(Sequence<T>, int):List<T> to fetch a number of sequence values in one go 2020-09-21 10:15:02 +02:00
Lukas Eder
e342269749 [jOOQ/jOOQ#10638] Even shorter 2020-09-20 11:53:14 +02:00
Lukas Eder
90344a14cd [jOOQ/jOOQ#10648] Log info when code generation run doesn't produce any difference 2020-09-18 11:29:13 +02:00
Lukas Eder
72de70ec98 [jOOQ/jOOQ#10638] Fix Java 6 compilation error
We don't need a type witness this time, since we can just use the varargs overload instead of the Collection one
2020-09-18 10:44:01 +02:00
Lukas Eder
9a13287b35 [jOOQ/jOOQ#10646] Document that import-on-demand cannot be used with org.jooq.Record 2020-09-18 09:43:49 +02:00
Lukas Eder
3a672ccdf7 [jOOQ/jOOQ#10638] Add parser support for arbitrary CONNECT BY .. START
WITH .. GROUP BY .. HAVING ordering
2020-09-18 08:46:08 +02:00
Lukas Eder
5cd9254af0 [jOOQ/jOOQ#9775] Support parsing single-argument TRUNC() function 2020-09-17 15:12:23 +02:00
Lukas Eder
adfe73eb68 [jOOQ/jOOQ#8381] [jOOQ/jOOQ#10641]
- Regenerated refaster files
2020-09-17 14:51:24 +02:00