Commit Graph

7205 Commits

Author SHA1 Message Date
lukaseder
00dbe54d69 [#7163] WIP 2019-05-10 16:43:43 +02:00
lukaseder
4aa834c8d0 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-05-09 21:09:30 +02:00
Knut Wannheden
971378a3b0 [#8579] Implement parsing of UNIQUE predicate 2019-05-09 11:17:41 +02:00
Knut Wannheden
7d818d2f3f [#8294] Interactive mode is the default 2019-05-09 11:17:26 +02:00
Knut Wannheden
7a7350e508 [#8606] Bad SQL generated when writing multi row insert query with
unknown column names (plain SQL table)
2019-05-09 11:17:00 +02:00
lukaseder
9f4754bac5 [#8606] Bad SQL generated when writing multi row insert query with unknown column names (plain SQL table) 2019-05-07 18:04:14 +02:00
lukaseder
aa5e566d88 [#8294] Interactive mode is the default 2019-05-07 18:04:04 +02:00
lukaseder
d87e6f1b93 Added missing Support annotations 2019-05-07 17:22:56 +02:00
lukaseder
0611a6713d [#8606] Bad SQL generated when writing multi row insert query with unknown column names (plain SQL table) 2019-05-07 17:22:37 +02:00
lukaseder
651fbc5973 [#8604] Add support for DB2 multi ALTER TABLE ADD / DROP statements 2019-05-06 13:13:51 +02:00
lukaseder
b3b7090495 [#8603] DB2 CREATE TABLE IF EXISTS emulation should ignore SQLState 42710, not 42704 2019-05-06 13:03:53 +02:00
lukaseder
034c2db718 [#8602] Add support for DB2 translate 2019-05-06 12:55:56 +02:00
Knut Wannheden
8ede6ac357 [#8593] The row_number emulation is only needed in the pro editions 2019-05-03 16:10:13 +02:00
Knut Wannheden
b61f2d0c9b [#8593] DB2 ranking functions require an ORDER BY clause 2019-05-03 16:01:07 +02:00
Knut Wannheden
554b8fcd1e [#8596] Support more DML for MySQL
Added some missing @Support annotations.
2019-05-03 15:48:55 +02:00
Knut Wannheden
58cb9e5692 [#8595] Support more MySQL DDL
CREATE SCHEMA, CREATE OR REPLACE VIEW, and DROP SCHEMA.
2019-05-03 15:48:37 +02:00
lukaseder
cad39d4e62 [#8593] DB2 ranking functions require an ORDER BY clause 2019-05-02 13:39:10 +02:00
Knut Wannheden
a7a0a02d3c [#8591] Extract DSL#unnest() into private unnest0()
This refatoring is done in order to avoid @Support annotated methods
(with incompatible sets of dialects) calling each other.
2019-05-02 11:59:55 +02:00
Knut Wannheden
3d94a4885e [#8590] Support for SQLite EXPLAIN 2019-05-02 11:33:32 +02:00
Knut Wannheden
696d953036 [#8588] Add SQLite support for partial indexes
Adds SQLite to the @Support annotations of CreateIndexWhereStep.
2019-05-02 11:33:13 +02:00
Knut Wannheden
58e3b64d85 [#8584] Use fetch(String, Object...) in SQLiteDatabase#loadPrimaryKeys()
Protect against the case of table names containing quotes.
2019-05-01 13:35:54 +02:00
Knut Wannheden
06a6c783ab [#8581] Explicitly specify column types for PRAGMA TABLE_INFO
Using SQLite driver version 3.27.2 the jOOQ code generator no longer
generates the default value for VARCHAR typed columns, due to how the
driver determines the column type. Thus the PRAGMA TABLE_INFO query now
specifies the column types up-front.
2019-05-01 13:35:26 +02:00
Knut Wannheden
82f18d0129 [#8582] Support AURORA_MYSQL in MySQLDSL
Add AURORA_MYSQL to @Support annotations of MySQLDSL.
2019-05-01 13:34:47 +02:00
lukaseder
cc4d7cd837 [#8573] Outdated Javadoc on ExecuteType.DDL 2019-04-29 10:52:55 +02:00
lukaseder
6ad62ad5b7 [#7518] [#8572] Add parser support for RATIO_TO_REPORT 2019-04-29 10:24:24 +02:00
lukaseder
0e50536a3e [#8570] Wrong Javadoc on Record.setValue() 2019-04-29 09:47:50 +02:00
Knut Wannheden
50ac9e746c [#1699] Support UNIQUE constraint
Add DSL#unique(Select) which represents the standard SQL "UNIQUE"
constraint. Since no of the supported dialects natively support UNIQUE,
the constraint is always emulated as a NOT EXISTS predicate (and NOT
UNIQUE is emulated as a corresponding EXISTS predicate). See the
following example:

  NOT EXISTS (
    SELECT NULL
    FROM (SELECT 1 a, 2 b UNION ALL SELECT 1 a, 2 b) t
    WHERE (a, b) IS NOT NULL
    GROUP BY a, b
    HAVING count(*) > 1
  )
2019-04-24 11:51:58 +02:00
Knut Wannheden
323b8cc36b Added Knut to ABOUT.txt 2019-04-24 11:51:29 +02:00
lukaseder
affcc1c1d6 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-04-24 10:34:58 +02:00
lukaseder
fc8f74ed87 [#7851] DSL.coerce() should use argument field's qualified name 2019-04-24 10:34:54 +02:00
Lukas Eder
a3f14da0e8
Merge pull request #7851 from dhs3000/patch-1
In Coerce use the qualified name so that fields can be compared again
2019-04-23 16:00:29 +02:00
lukaseder
65ce24294c [#8561] Wrong cast generated for Informix and others when casting a LocalDateTime value 2019-04-23 15:34:12 +02:00
lukaseder
60d856075e [#8560] Add support for calling stored functions with defaulted parameters from SQL in Oracle 2019-04-23 14:31:11 +02:00
Knut Wannheden
726897cf1d [#8513] Fix potential NPE source in getConfiguredForcedType()
Fixes a potential NPE source in
AbstractDatabase#getConfiguredForcedType().
2019-04-23 14:15:32 +02:00
Knut Wannheden
8f616025c2 [#8511] Updated DefaultRenderContext#SQLITE_KEYWORDS to SQLite 3.28
Updated DefaultRenderContext#SQLITE_KEYWORDS to include all keywords in
SQLite 3.28. See https://www.sqlite.org/lang_keywords.html.
2019-04-23 14:06:25 +02:00
lukaseder
d67d04b19a [#8557] StackOverflowError when using same query instance on both sides of a set operation
In jOOQ 3.x, the DSL API is mostly mutable. For set operations, this means that a query x cannot appear on both sides of the set operation, e.g. x.union(x) is not possible.
2019-04-23 10:31:07 +02:00
lukaseder
9323e819c3 [#8548] Missing H2 support on WindowExcludeStep.excludeNoOthers() 2019-04-23 09:39:11 +02:00
lukaseder
fa9422521f [#8548] Add support for SQLite window function extensions from version 3.28 2019-04-18 18:01:12 +02:00
lukaseder
6860388843 [#8552] Add SQLDialect.supports(Collection<SQLDialect>) 2019-04-18 17:46:08 +02:00
lukaseder
c7beac5ae3 [#8547] Add SQLDialect.SQLITE_3_28 and SQLDialect.SQLITE_3_25 2019-04-18 16:26:06 +02:00
lukaseder
a7215a91ba [#8551] Support old SQLDialects only in commercial distributions 2019-04-18 16:11:37 +02:00
lukaseder
1116644cde [#8550] Improve formatting of generated table-level JPA annotations 2019-04-18 11:23:35 +02:00
lukaseder
65d779065f [#8536] Missing constraint name in generated @UniqueConstraint annotation 2019-04-18 10:56:38 +02:00
lukaseder
b7e6923f34 [#8502] Missing annotation 2019-04-18 10:56:29 +02:00
Knut Wannheden
e24d186330 [#8433] INSERT ... ON CONFLICT clause for SQLite
As of version 3.24.0 SQLite natively supports INSERT's ON CONFLICT
clause, which can thus also be used by jOOQ.

Note: SQLite doesn't support combining DEFAULT VALUES with ON CONFLICT.
And since SQLite does not support the DEFAULT keyword in INSERT the
DEFAULT VALUES clause cannot be emulated.
2019-04-18 10:48:37 +02:00
Knut Wannheden
861c4422c7 Regenerate JAXB code
Specify <noFileHeader> option to maven-jaxb2-plugin and also normalize
line terminators to UNIX style.
2019-04-18 10:22:24 +02:00
lukaseder
b65a945c91 [#8539] Add alias DSL.default_() for DSL.defaultValue() 2019-04-17 14:27:43 +02:00
lukaseder
66249dcfb7 [#7545] Fixed regression caused by unnecessary application of Filters 2019-04-17 14:18:09 +02:00
lukaseder
c5903425ee [#8537] Parsing CREATE SEQUENCE always leads to quoted sequence names 2019-04-17 13:38:03 +02:00
lukaseder
348909d9e2 Regenerated example code 2019-04-17 11:27:10 +02:00