Commit Graph

9843 Commits

Author SHA1 Message Date
Lukas Eder
f25596ff19 [jOOQ/jOOQ#5810] Fix splitter problems 2021-03-18 16:15:53 +01:00
Lukas Eder
a912917b3f [jOOQ/jOOQ#5810] Emulate QUALIFY
- Remove nest() methods from OSS edition
- Don't extract window functions from QUALIFY. Project QUALIFY instead
- Derived table projects * if columns are not ambiguous
- It aliases columns if they are (TODO: Unaliasing)
2021-03-18 16:09:34 +01:00
Lukas Eder
c43ec348d6 [jOOQ/jOOQ#5810] Log a warning if OSS edition tries to emulate QUALIFY 2021-03-18 12:17:10 +01:00
Lukas Eder
f4f42de123 [jOOQ/jOOQ#5810] Refactor copyTo() and nestTo() methods for better reuse 2021-03-18 12:01:02 +01:00
Lukas Eder
66d875a922 [jOOQ/jOOQ#5810] Emulate QUALIFY where not supported - WIP 2021-03-18 10:33:30 +01:00
Lukas Eder
4febe602d8 [jOOQ/jOOQ#5810] Emulate QUALIFY where not supported
This includes:
- [jOOQ/jOOQ#11663] Wrong order of WINDOW / QUALIFY clauses
2021-03-17 18:07:05 +01:00
Lukas Eder
71f26063df [jOOQ/jOOQ#10716] Fix known issues of Settings.transformRownum
This includes:
- [jOOQ/jOOQ#11661] ROWNUM with DISTINCT
2021-03-17 15:37:54 +01:00
Lukas Eder
a540ba8264 [jOOQ/jOOQ#11650] Get SQLDialect.VERTICA up to date
This includes:
- [jOOQ/jOOQ#11655] Emulate statistical window functions in Vertica
2021-03-16 16:59:10 +01:00
Lukas Eder
9224872be9 [jOOQ/jOOQ#11650] Get SQLDialect.VERTICA up to date
This includes:
- [jOOQ/jOOQ#11655] Emulate statistical window functions in Vertica
2021-03-16 16:28:06 +01:00
Lukas Eder
dfd5cca3d2 [jOOQ/jOOQ#10644] Make better use of internal operators 2021-03-16 15:54:33 +01:00
Lukas Eder
3e03273170 [jOOQ/jOOQ#11645] Added DDL support 2021-03-16 15:17:44 +01:00
Lukas Eder
bc5b3a4c25 [jOOQ/jOOQ#11268] [jOOQ/jOOQ#11650] Create dummy column if needed 2021-03-16 11:04:14 +01:00
Lukas Eder
7157c2e5ac [jOOQ/jOOQ#11651] Add parser support for VERTICA IDENTITY column type 2021-03-16 11:03:59 +01:00
Lukas Eder
fde3cb20ba [jOOQ/jOOQ#11649] Add parser support for Db2's LOCATE_IN_STRING function 2021-03-16 09:49:19 +01:00
Lukas Eder
f34e6cb805 [jOOQ/jOOQ#11648] Add Db2, Derby, H2 support for POSITION(in, search, startIndex) via LOCATE 2021-03-15 23:07:29 +01:00
Lukas Eder
809467c601 [jOOQ/jOOQ#11641] Fix Db2, Oracle emulations 2021-03-15 22:42:36 +01:00
Lukas Eder
7f6e94610f [jOOQ/jOOQ#11647] Add MySQL SUBSTRING_INDEX() support 2021-03-15 21:56:25 +01:00
Lukas Eder
ed1167c84f [jOOQ/jOOQ#11641] MySQL and MariaDB SPLIT_PART 2021-03-15 21:02:20 +01:00
Lukas Eder
5acd6374e1 [jOOQ/jOOQ#11643] Emulate CTE in scalar subquery using CTE in derived table, when only the latter is supported 2021-03-15 18:10:51 +01:00
Lukas Eder
72b5751ca1 [jOOQ/jOOQ#11641] Make sure generated switches have braces when needed 2021-03-15 17:30:38 +01:00
Lukas Eder
0e0cb694d4 [jOOQ/jOOQ#11641] More SPLIT_PART fixes and tests 2021-03-15 17:12:02 +01:00
Lukas Eder
7c2e851b14 [jOOQ/jOOQ#11641] Emulate SPLIT_PART (draft)
This includes:
- [jOOQ/jOOQ#11644] Invert Tools.visitSubquery() parentheses flag
2021-03-15 15:22:01 +01:00
Lukas Eder
15648f719a [jOOQ/jOOQ#11642] Emulate OVERLAY in H2 using INSERT 2021-03-15 10:09:33 +01:00
Lukas Eder
518020d0cb [jOOQ/jOOQ#11639] Support parsing DROP SEQUENCE .. RESTRICT 2021-03-12 20:37:56 +01:00
Lukas Eder
657a3e43ca [jOOQ/jOOQ#11638] Missing DERBY @Support on DSL.date(), DSL.time(), DSL.timestamp() methods 2021-03-12 20:32:03 +01:00
Lukas Eder
50b7ba5e76 [jOOQ/jOOQ#11341] intoXML() throws NPE exception
This includes:
- [jOOQ/jOOQ#11634] XMLFormat.quoteNested() is not being considered in Result.intoXML()
2021-03-12 17:23:04 +01:00
Lukas Eder
aa0bbc2641 [jOOQ/jOOQ#11631] Only Field<Object> can be a Condition 2021-03-12 16:05:42 +01:00
Lukas Eder
9a80696a0c [jOOQ/jOOQ#5757] Support batch in DSLContext.parsingConnection() 2021-03-12 15:57:15 +01:00
Lukas Eder
4ff9c51178 [jOOQ/jOOQ#11631] Boolean field expected when parsing NOT(?) 2021-03-12 15:02:44 +01:00
Lukas Eder
69202a227a [jOOQ/jOOQ#11632] Parser fails when parsing nested not unary operator
without parentheses
2021-03-12 14:57:42 +01:00
Lukas Eder
b506c4f174 [jOOQ/jOOQ#11630] Cannot parse empty blocks 2021-03-12 14:23:25 +01:00
Lukas Eder
3ac18dd184 [jOOQ/jOOQ#11629] Cannot parse MariaDB FOR LOOP syntax 2021-03-12 14:14:40 +01:00
Lukas Eder
fc07885dfe [jOOQ/jOOQ#11625] GeneratorStrategy references package-private AbstractGenerator.Language class 2021-03-12 13:06:21 +01:00
Lukas Eder
158facf3b1 [jOOQ/jOOQ#11512] Correct data type binding for setNull() calls
This includes:
- [jOOQ/jOOQ#11626] Add DefaultDataType.getDataType(SQLDialect, int) to lookup JDBC types
2021-03-12 11:21:04 +01:00
Lukas Eder
c71857c804 [jOOQ/jOOQ#11512] Implement ParsingStatement.clearParameters() 2021-03-12 11:04:36 +01:00
Lukas Eder
8191a0f156 [jOOQ/jOOQ#11512] ParsingConnection should infer bind variable type from
PreparedStatement calls

This includes:
- [jOOQ/jOOQ#11623] Refactor a few internal checked exception throwing
functional interfaces
2021-03-12 10:51:03 +01:00
Lukas Eder
984d308b07 [jOOQ/jOOQ#11512] ParsingConnection should infer bind variable type from
PreparedStatement calls

This includes:
- [jOOQ/jOOQ#11623] Refactor a few internal checked exception throwing
functional interfaces
2021-03-12 10:50:55 +01:00
Lukas Eder
e1082e9e1c [jOOQ/jOOQ#11621] Parser wrongly parses VERSIONS table alias as keyword 2021-03-12 08:53:35 +01:00
Lukas Eder
fe98033680 [jOOQ/jOOQ#11618] Deprecate JDBC41Connection, JDBC41Statement, JDBC41ResultSet 2021-03-11 15:02:21 +01:00
Lukas Eder
e4c09cbea1 [jOOQ/jOOQ#11616] Missing DB2 and Derby @Support on DROP SCHEMA .. RESTRICT 2021-03-11 14:38:08 +01:00
Lukas Eder
94aa89b9ed [jOOQ/jOOQ#11614] Fix also the implementation 2021-03-11 14:33:18 +01:00
Lukas Eder
451fd38901 [jOOQ/jOOQ#11614] Fix @Support on ALTER TABLE .. RENAME INDEX 2021-03-11 14:25:57 +01:00
Lukas Eder
52c770151d [jOOQ/jOOQ#11614] Fix @Support on ALTER TABLE .. RENAME INDEX 2021-03-11 14:24:00 +01:00
Lukas Eder
6e4f66c6a7 [jOOQ/jOOQ#11415] Support parsing the JDBC escape syntax { call ... } 2021-03-11 13:38:51 +01:00
Lukas Eder
b0d808444e [jOOQ/jOOQ#11415] Make CALL a Query not a Statement 2021-03-11 13:17:40 +01:00
Lukas Eder
a475f68fc9 [jOOQ/jOOQ#11605] Fix annotations 2021-03-10 15:30:08 +01:00
Lukas Eder
8981b1565a [jOOQ/jOOQ#11580] fetchParent() doesn't work properly with foreign key referencing just a part from a composed primary key 2021-03-10 15:29:57 +01:00
Lukas Eder
2cd7772438 [jOOQ/jOOQ#11605] DropTableStep.cascade() and restrict() have wrong
dialects in Support annotation
2021-03-10 13:43:43 +01:00
Lukas Eder
d176d7f659 [jOOQ/jOOQ#11606] DefaultRenderContext(RenderContext) constructor should only copy flags 2021-03-10 13:43:30 +01:00
Lukas Eder
87349820ad [jOOQ/jOOQ#11579] Refactored common logic 2021-03-10 12:12:51 +01:00