Commit Graph

9087 Commits

Author SHA1 Message Date
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
Lukas Eder
0441f818ea [jOOQ/jOOQ#9775] Support parsing TABLE() as an alias for UNNEST() 2020-09-17 14:23:32 +02:00
Lukas Eder
61e765c62a [jOOQ/jOOQ#8381] [jOOQ/jOOQ#10641]
- Inverse native flag
2020-09-17 14:15:44 +02:00
Lukas Eder
d15c72149e [jOOQ/jOOQ#8381] [jOOQ/jOOQ#10641]
- Pull up OracleDSL.toChar() to DSL
- Support and emulate Oracle's TO_CHAR() function
2020-09-17 14:13:26 +02:00
Lukas Eder
b7fc8fc900 [jOOQ/jOOQ#10640] Remove unneeded private DSL constructors 2020-09-17 12:10:47 +02:00
Lukas Eder
ca8d516e60 [jOOQ/jOOQ#7312] Fix regression 2020-09-17 11:44:18 +02:00
Lukas Eder
94f110796f [jOOQ/jOOQ#7312] Auto-transform table lists to ansi join if needed
If (+) is encountered but not supported, automatically transform the table lists to ansi join.
2020-09-17 11:17:22 +02:00
Lukas Eder
afc4474785 [jOOQ/jOOQ#7312] Auto-transform table lists to ansi join if needed
If (+) is encountered but not supported, automatically transform the table lists to ansi join.
2020-09-17 11:17:09 +02:00
Lukas Eder
9995378892
Update bug_report.md 2020-09-17 09:12:03 +02:00
Lukas Eder
dbc4b6b402 [jOOQ/jOOQ#7312] Add Setting to transform table lists to ansi join 2020-09-16 17:03:55 +02:00
Lukas Eder
07c0b55561 [jOOQ/jOOQ#10635] AbstractQueryPart::equals might not work when one QueryPart has a different Configuration than the other 2020-09-15 17:25:17 +02:00
Lukas Eder
df5f0cdd14 [jOOQ/jOOQ#10632] [jOOQ/jOOQ#10633]
- Log all column and parameter types in DEBUG level in JavaGenerator
- Add DataTypeDefinition.getMatchNames()
2020-09-15 16:19:24 +02:00
Lukas Eder
a127ec65ef [jOOQ/jOOQ#10588] Fixed wrong XSD element name 2020-09-10 17:42:06 +02:00
Lukas Eder
e64a4279ff [jOOQ/jOOQ#10616] Add Settings.implicitJoinType to govern whether an INNER or LEFT JOIN is generated 2020-09-10 16:49:31 +02:00
Lukas Eder
4b8fcd9eff [jOOQ/jOOQ#10614] Avoid ClassCastException when comparing two column
values without natural order in Record::compareTo
2020-09-10 14:38:30 +02:00
Lukas Eder
373e725e9c [jOOQ/jOOQ#10588] Configuration should allow for explicit ordering of
key fields
2020-09-10 10:44:42 +02:00
Lukas Eder
2dbf3ab145 [jOOQ/jOOQ#10588] Apply synthetic keys to jOOQ-meta, use implicit joins
(WIP)
2020-09-09 17:57:44 +02:00
Lukas Eder
1b6e651765 [jOOQ/jOOQ#7507] Implicit Joins should produce inner joins when possible 2020-09-09 16:10:14 +02:00
Lukas Eder
b32d747387 Removed some redundant managed version numbers from pom.xml files 2020-09-09 15:59:03 +02:00
Lukas Eder
735a96f27c [jOOQ/jOOQ#10605] offset(0) is ignored 2020-09-09 11:41:24 +02:00
Lukas Eder
9fa6814779 [jOOQ/jOOQ#10588] Apply synthetic keys to jOOQ-meta, use implicit joins
(WIP)
2020-09-08 17:27:40 +02:00
Lukas Eder
a00eda2c02 [jOOQ/jOOQ#10603] Ambiguous match with complex implicit join graphs 2020-09-08 16:39:50 +02:00
Lukas Eder
2203d53b5b [jOOQ/jOOQ#10602] Missing NOT NULL constraint in generated DDL: MySQL 2020-09-08 14:38:26 +02:00
Lukas Eder
9442a0dcae [jOOQ/jOOQ#10588] Java 6 fix 2020-09-07 18:11:13 +02:00
Lukas Eder
fc90811118 [jOOQ/jOOQ#10594] Parse optional 2020-09-07 10:42:51 +02:00
Lukas Eder
09001aaccc [jOOQ/jOOQ#10592] Java 6 fix 2020-09-07 10:30:58 +02:00