Commit Graph

8444 Commits

Author SHA1 Message Date
Lukas Eder
cbd3239233 [jOOQ/jOOQ#9998] DSL.and(noCondition()) and DSL.or(noCondition()) generates a "1 = 1" or "1 = 0" predicate 2020-03-27 17:31:45 +01:00
Lukas Eder
6bfef10081 [jOOQ/jOOQ#10000] Add DSL.tau() to support τ, which is a better π 2020-03-27 17:00:46 +01:00
Lukas Eder
5108d7c192 [jOOQ/jOOQ#9999] Work around CockroachDB's wrong implementation of <row> IS NULL predicate 2020-03-27 16:19:54 +01:00
Lukas Eder
37927e01e0 [jOOQ/jOOQ#8950] Fixed OSS Edition JSON_EXISTS() support 2020-03-27 15:08:42 +01:00
Lukas Eder
f1003a76f4 [jOOQ/jOOQ#8950] Added JSON_EXISTS() support 2020-03-27 13:43:50 +01:00
Lukas Eder
4649185506 [jOOQ/jOOQ#8950] Added JSON_EXISTS() support 2020-03-27 13:26:53 +01:00
Lukas Eder
39a5f48cd6 [jOOQ/jOOQ#9995] Add SQLDialect.POSTGRES_12 2020-03-27 13:22:15 +01:00
Lukas Eder
1d55b8c409 [jOOQ/jOOQ#9995] Add SQLDialect.POSTGRES_12 2020-03-27 13:19:56 +01:00
Lukas Eder
cff26a8f50 [jOOQ/jOOQ#9995] Add SQLDialect.POSTGRES_12 2020-03-27 12:42:05 +01:00
Lukas Eder
cbbb48f9c3 [jOOQ/jOOQ#8950] Added support for Db2 2020-03-27 10:40:16 +01:00
Lukas Eder
2931f830a1 [jOOQ/jOOQ#9991] Offer an org.jooq.impl.AbstractBinding base implementation for the common case 2020-03-26 17:49:38 +01:00
Lukas Eder
c8646e4f70 [jOOQ/jOOQ#6598] fixed regression 2020-03-26 16:50:06 +01:00
Lukas Eder
b3d89c846b [jOOQ/jOOQ#9994] Add missing with(Collection<? extends CommonTableExpression<?>>) overloads 2020-03-26 16:24:57 +01:00
Lukas Eder
8fba879f62 [jOOQ/jOOQ#6598] Fixed also @ConstructorProperties mapping 2020-03-26 15:42:51 +01:00
Lukas Eder
622b07b1e0 [jOOQ/jOOQ#6598] Maintain old logic for backwards compatibility 2020-03-26 14:09:56 +01:00
Lukas Eder
9112a4ff20 [jOOQ/jOOQ#6598] Implementation for nested immutable POJOs 2020-03-26 11:19:36 +01:00
Lukas Eder
4d119f3442 [jOOQ/jOOQ#9925] Workaround only for Oracle 2020-03-25 21:28:00 +01:00
Lukas Eder
885c7d1f90 [jOOQ/jOOQ#9990] Add some convenience API to SQLDialect, delegating to JDBCUtils 2020-03-25 15:16:23 +01:00
Lukas Eder
2dac69b806 [jOOQ/jOOQ#9925] Added Oracle support 2020-03-25 14:20:49 +01:00
Lukas Eder
9ec5cc07bf [jOOQ/jOOQ#8950] Add support for JSON_VALUE() 2020-03-25 10:59:43 +01:00
Lukas Eder
5286a415d7 [jOOQ/jOOQ#9764] Removed excess whitespace from UPDATE statement 2020-03-24 16:28:10 +01:00
Lukas Eder
c4c31b6de9 [jOOQ/jOOQ#9985] Remove Tools.renderUnqualifiedName()
The new QueryPartListView and related types make this utility obsolete.
2020-03-24 16:00:19 +01:00
Lukas Eder
c6aae375d7 [jOOQ/jOOQ#9985] Improve formatting of MergeImpl::toSQLH2Merge 2020-03-24 12:41:12 +01:00
Lukas Eder
eb1e7dc6f3 [jOOQ/jOOQ#9985] Refactor AbstractRow::accept 2020-03-24 12:21:37 +01:00
Lukas Eder
c678df4402 [jOOQ/jOOQ#9985] Refactor Alias::toSQLDerivedColumnList 2020-03-24 12:18:44 +01:00
Lukas Eder
8e22487f23 [jOOQ/jOOQ#9985] Refactor GrantImpl and RevokeImpl's privileges rendering 2020-03-24 12:08:10 +01:00
Lukas Eder
006615ab2b [jOOQ/jOOQ#9985] Refactor InsertQueryImpl::toSQLInsert's DEFAULT VALUES emulation 2020-03-24 11:52:28 +01:00
Lukas Eder
8aa94df0e7 [jOOQ/jOOQ#9986] Add an internal QueryPartListView class 2020-03-24 11:31:36 +01:00
Lukas Eder
7e8b31c389 [jOOQ/jOOQ#9985] Refactored Tools.fieldNames and Tools.tableNames 2020-03-24 11:21:29 +01:00
Lukas Eder
e8ee1bf94d [jOOQ/jOOQ#9764] Rework formatting of SQL
One big formatting problem is in QueryPartList. 1) it adds unnecessary
whitespace at the end of lines, because it hardcodes a ", " separator.
That is easy to fix. Also, it needs to decide whether at the beginning
of a list, an extra separator is required. That's something that a
container QueryPart needs to decide for the QueryPartList, whereas the
QueryPartList gets to decide if that separator is a newline or
whitespace.

A few other formatting issues are fixed with this one, including:

- [jOOQ/jOOQ#1962] Formatting of SQL rendered by window functions
- [jOOQ/jOOQ#3479] Awkward formatting of "short" functions
- [jOOQ/jOOQ#5488] Excess newline in formatted SELECT w/out FROM clause
- [jOOQ/jOOQ#9764] This issue
2020-03-24 11:00:38 +01:00
Lukas Eder
787878ed80 [jOOQ/jOOQ#9985] FieldMapsForInsert::toSQLReferenceKeys should use QueryPartList 2020-03-24 10:59:32 +01:00
Lukas Eder
58c0072866 [jOOQ/jOOQ#9925] Add support for XMLTABLE() 2020-03-23 15:23:09 +01:00
Lukas Eder
b62f3c2f3e [jOOQ/jOOQ#9925] Add support for XMLQUERY() 2020-03-23 11:52:43 +01:00
Lukas Eder
138405a049 Whitespace change 2020-03-23 11:50:52 +01:00
Lukas Eder
35f253b269 [jOOQ/jOOQ#9925] Add support for XMLQUERY() 2020-03-20 15:56:20 +01:00
Lukas Eder
d71359ff89 [jOOQ/jOOQ#9925] Add support for XMLDOCUMENT() 2020-03-20 15:11:40 +01:00
Lukas Eder
1079b1eeb1 [jOOQ/jOOQ#9980] Wrong Javadoc link in DSL.value() methods 2020-03-20 14:56:35 +01:00
Lukas Eder
738e417753 [jOOQ/jOOQ#9925] Added DB2 support 2020-03-20 14:49:52 +01:00
Lukas Eder
ef00f07057 [jOOQ/jOOQ#9979] Add DSL.val(), value(), and inline() overloads for JSON, JSONB, and XML types 2020-03-20 14:49:47 +01:00
Lukas Eder
5201a73d9c [jOOQ/jOOQ#9925] Added DB2 support 2020-03-20 14:38:22 +01:00
Lukas Eder
bd53d19855 [jOOQ/jOOQ#9925] Add support for XMLPARSE() 2020-03-20 12:24:56 +01:00
Lukas Eder
dd54a05d17 [jOOQ/jOOQ#9925] Add parser support for IS [ NOT ] DOCUMENT 2020-03-20 11:38:15 +01:00
Lukas Eder
a6a04e5c84 [jOOQ/jOOQ#9925] Add support for XMLEXISTS() 2020-03-20 11:35:12 +01:00
Lukas Eder
236deb450b [jOOQ/jOOQ#9925] Add support for XMLEXISTS() 2020-03-20 11:16:13 +01:00
Lukas Eder
b6b6007563 [jOOQ/jOOQ#9925] Added support for IS [ NOT ] DOCUMENT 2020-03-20 10:36:04 +01:00
Lukas Eder
bb20a2b4e0 [jOOQ/jOOQ#9930] Avoid the duplicate distinct attribute 2020-03-20 10:23:25 +01:00
Lukas Eder
d246fc2b19 [jOOQ/jOOQ#9977] Add more thread safety documentation around DSLContext
and Configuration
2020-03-20 10:07:37 +01:00
Lukas Eder
5aee77f86c [jOOQ/jOOQ#9975] Internal enum was hiding Boolean.TRUE, etc. imports 2020-03-19 20:35:01 +01:00
Lukas Eder
1d329bf6aa [jOOQ/jOOQ#9975] Use a more generics friendly super type for casts
SelectImpl has 23 type variables, so a rawtype reference seems unavoidable. But we don't need to use SelectImpl here. The super type AbstractDelegatingQuery<?> with a single type variable can be used just the same.
2020-03-19 20:31:18 +01:00
Lukas Eder
3aa69e298b [jOOQ/jOOQ#9975] Removed redundant super interface 2020-03-19 20:27:32 +01:00