Commit Graph

10834 Commits

Author SHA1 Message Date
Lukas Eder
5a818e4f61 [jOOQ/jOOQ#7284] Implement a few new patterns:
- transformPatternsNormaliseAssociativeOps (WIP)
- transformPatternsNormaliseFieldCompareValue
- transformPatternsOrEqToIn (WIP)
2022-01-18 17:26:04 +01:00
Lukas Eder
f0d19f39d8 [jOOQ/jOOQ#7284] WHERE FALSE can be overridden by GROUPING SETS 2022-01-18 14:09:11 +01:00
Lukas Eder
764f227093 [jOOQ/jOOQ#7284] Remove empty scalar subqueries 2022-01-18 12:57:24 +01:00
Lukas Eder
302c420fa2 [jOOQ/jOOQ#12888] Fix regression 2022-01-18 11:56:54 +01:00
Lukas Eder
5392267100 [jOOQ/jOOQ#12890] Parser fails to parse SET SCHEMA 'string-literal' 2022-01-18 11:35:38 +01:00
Lukas Eder
251a21f1dc [jOOQ/jOOQ#7284] Remove trivial WHERE, HAVING, QUALIFY clauses 2022-01-18 11:21:44 +01:00
Lukas Eder
db45ea6f1e [jOOQ/jOOQ#12888] Parser should treat AS optional in CREATE TABLE AS SELECT 2022-01-18 10:52:25 +01:00
Lukas Eder
9bb9eff764 [jOOQ/jOOQ#12887] Support parsing WEEK_OF_YEAR date part 2022-01-18 10:22:46 +01:00
Lukas Eder
01e9658b50 [jOOQ/jOOQ#12884] Add reminder to remove explicit upgrade again 2022-01-18 09:27:30 +01:00
Lukas Eder
c5c2bed8c8 [jOOQ/jOOQ#12884] Upgrade jOOQ-checker's error_prone_core's transitive protobuf dependency to mitigate CVE-2021-22569 2022-01-18 09:17:57 +01:00
Lukas Eder
016f0b9d1d [jOOQ/jOOQ#7284] More NULL related transformations 2022-01-17 20:52:42 +01:00
Lukas Eder
305f04a454 [jOOQ/jOOQ#12883] Add DSL.nullCondition(), a condition that correctly represents the NULL / UNKNOWN predicate value
This includes:

- [jOOQ/jOOQ#7284] Improvements to trivial predicate transformations wrt to NULL predicates
2022-01-17 20:31:29 +01:00
Lukas Eder
903ec5cea8 [jOOQ/jOOQ#7284] This record backport doesn't seem to work 2022-01-17 11:23:22 +01:00
Lukas Eder
efcf5676d4 [jOOQ/jOOQ#12875] Annotate all blocking execution methods with org.jetbrains.annotations.Blocking 2022-01-17 10:11:02 +01:00
Lukas Eder
b9b9b2c801 [jOOQ/jOOQ#12877] Improve blocking call error message when trying to run Query.execute(), etc. with R2DBC 2022-01-17 09:28:50 +01:00
Lukas Eder
c5e2950a86 [jOOQ/jOOQ#12874] Upgrade org.jetbrains:annotations dependency to 23.0.0 2022-01-17 09:02:30 +01:00
Lukas Eder
94b18e1688 [jOOQ/jOOQ#7284] Some trivial predicate transform patterns
- Add a pattern for always TRUE or FALSE EXISTS predicates
- Add Select.() and () and related accessors

TODOs:
- The patterns aren't correct yet if:
  - There are INTERSECT or EXCEPT set operations
  - There is a SEEK clause
  - There are FOR XML or FOR JSON clauses (?)
- A case matching queries with aggregate functions wasn't possible yet, the relevant QOM API must still be designed.
2022-01-14 22:49:14 +01:00
Lukas Eder
f880ae15d5 [jOOQ/jOOQ#7284] Some trivial predicate transform patterns 2022-01-14 20:34:24 +01:00
Lukas Eder
2951b113a8 [jOOQ/jOOQ#7284] Some trivial predicate transform patterns 2022-01-14 18:37:09 +01:00
Lukas Eder
40a709e6cc [jOOQ/jOOQ#12525] Nesting of converters causes unexpected Exception 2022-01-14 14:36:21 +01:00
Lukas Eder
ac65a07db2 [jOOQ/jOOQ#12864] OSS Edition H2 INSERT .. RETURNING no longer works if
columns are qualified with a schema
2022-01-14 13:22:52 +01:00
Lukas Eder
8b49c63267 [jOOQ/jOOQ#12862] Upgrade all relevant R2DBC dependencies to
0.9.0.RELEASE
2022-01-13 17:29:59 +01:00
Lukas Eder
a0844da81c https://github.com/r2dbc/r2dbc-h2/issues/203 has been released 2022-01-13 17:16:42 +01:00
Lukas Eder
208e5888c0 [jOOQ/jOOQ#12854] jOOQ Open Source Edition code generation doesn't work PostgreSQL 11 or less because of ERROR: column pg_attribute.attgenerated does not exist 2022-01-13 12:05:55 +01:00
Lukas Eder
3f1a065b0e [jOOQ/jOOQ#12858] Computed column related support annotations claim 2022-01-13 12:05:25 +01:00
Lukas Eder
8ad939c79f
Merge pull request #12855 from jOOQ/dependabot/maven/org.springframework-spring-core-5.3.14
Bump spring-core from 5.3.13 to 5.3.14
2022-01-13 11:32:04 +01:00
Lukas Eder
9a34079717 [jOOQ/jOOQ#12481] ParsingConnection's PreparedStatement.getMetaData
should be able to produce ResultSetMetaData prior to execution
2022-01-13 11:17:25 +01:00
dependabot[bot]
3f3207bfd9
Bump spring-core from 5.3.13 to 5.3.14
Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 5.3.13 to 5.3.14.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.13...v5.3.14)

---
updated-dependencies:
- dependency-name: org.springframework:spring-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 23:32:08 +00:00
Lukas Eder
51be4f7b57 [jOOQ/jOOQ#12852] Parser can't handle TRIM (FROM <value>) syntax 2022-01-12 18:04:53 +01:00
Lukas Eder
9f20a54274 [jOOQ/jOOQ#12848] Support parsing HSQLDB's inline FOREIGN KEY syntax 2022-01-12 17:11:18 +01:00
Lukas Eder
b8ab96b296 [jOOQ/jOOQ#12846] Support parsing alternative H2 and HSQLDB DROP
CONSTRAINT c IF EXISTS clause
2022-01-12 16:29:49 +01:00
Lukas Eder
cf6ba56dda [jOOQ/jOOQ#12820] Support both LONG VARBINARY and LONGVARBINARY 2022-01-12 14:50:36 +01:00
Lukas Eder
57f97cf71f [jOOQ/jOOQ#12843] Missing YugabyteDB dialect 2022-01-12 13:20:10 +01:00
Lukas Eder
56a3789a92 [jOOQ/jOOQ#12843] Support parsing LOG(n) without explicit base, based on input dialect 2022-01-12 13:15:43 +01:00
Lukas Eder
a14383381b [jOOQ/jOOQ#12838] Support parsing DATABASE() as synonym for
CURRENT_CATALOG() or CURRENT_DATABASE()
2022-01-11 16:37:17 +01:00
Lukas Eder
96bcd0770f [jOOQ/jOOQ#12836] Parser should support VALUES constructor in FROM clause without parentheses 2022-01-11 16:22:27 +01:00
Lukas Eder
485103a3ff [jOOQ/jOOQ#12834] Support parsing empty column lists in INSERT statements 2022-01-11 16:00:38 +01:00
Lukas Eder
b53ad7f1f7 [jOOQ/jOOQ#12830] Imports are generated... 2022-01-11 15:35:39 +01:00
Lukas Eder
cb4e4314aa [jOOQ/jOOQ#12832] Improve parser error message when encountering unterminated quoted identifier 2022-01-11 15:32:12 +01:00
Lukas Eder
1194d090a4 [jOOQ/jOOQ#12830] Support DROP TABLE .. CASCADE in Oracle 2022-01-11 15:18:46 +01:00
Lukas Eder
021bcb4913 [jOOQ/jOOQ#12829] Support parsing H2's undocumented DROP TABLE .. CASCADE CONSTRAINTS syntax 2022-01-11 15:06:36 +01:00
Lukas Eder
1d610b5f12 [jOOQ/jOOQ#12824] Parser cannot handle 1. decimal syntax in SELECT
This includes:

- [jOOQ/jOOQ#12825] Parser shouldn't parse Teradata cast syntax based on Settings.parseAppendMissingTableReferences, but only based on the parseDialect()
2022-01-11 12:57:23 +01:00
Lukas Eder
5db6b68ade [jOOQ/jOOQ#12820] Parser doesn't support Derby's FOR BIT DATA data type
modifier
2022-01-11 11:48:13 +01:00
Lukas Eder
14acb9f023 [jOOQ/jOOQ#12818] Regression: ofo() copies AbstractAggregateFunction.withinGroupOrderBy, not GroupConcat.orderBy 2022-01-11 11:08:45 +01:00
Lukas Eder
8f6244092d [jOOQ/jOOQ#12801] GroupConcat renders string_agg separator argument within wrong parentheses 2022-01-11 10:32:20 +01:00
Lukas Eder
9869baf120 [jOOQ/jOOQ#7284] Replace common patterns in query object model
- NOT truth value
- NOT comparison
2022-01-10 21:10:23 +01:00
Lukas Eder
74aec2ac91 [jOOQ/jOOQ#7284] Replace common patterns in query object model
- NOT NOT DISTINCT
- Idempotent function repetitions
  - UPPER
  - LOWER
  - LTRIM
  - RTRIM
  - TRIM
2022-01-10 18:20:16 +01:00
Lukas Eder
b402ffca75 [jOOQ/jOOQ#11966] Support parsing unary ~ operator 2022-01-10 17:42:12 +01:00
Lukas Eder
db42d102a4 [jOOQ/jOOQ#7284] Replace common patterns in query object model
- Added global Settings.transformPatterns flag
- TRIM
- NOT NOT
- NEG NEG
- BITNOT BITNOT
2022-01-10 17:30:05 +01:00
Lukas Eder
bb5f6d1dab [jOOQ/jOOQ#7284] Upgraded to jooq-runtime-3.17.0.xsd 2022-01-10 16:09:58 +01:00