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
lukaseder
97cab67e4a
[ #8535 ] Generate @UniqueConstraint annotation instead of @Column(unique = true)
...
The current distinction is confusing, and if redundant uniqueness information is present, then Hibernate ignores the @UniqueConstraint name. Hence, we will only generate the @UniqueConstraint annotation
2019-04-17 11:26:59 +02:00
lukaseder
5156f503b4
[ #7490 ] Upgrade jOOQ-meta-extensions dependency to Hibernate 5.4
2019-04-17 09:38:27 +02:00
lukaseder
be6200e1ba
[ #8522 ] Added integration test for chained function calls
2019-04-16 16:55:15 +02:00
Knut Wannheden
56fe33475d
[ #8529 ] Clean up Javadoc for INSERT ... ON CONFLICT
...
Improves the DSL Javadoc for INSERT ... ON [ CONFLICT | DUPLICATE KEY ]
2019-04-16 16:22:16 +02:00
lukaseder
97f8700abf
[ #8531 ] Wrong Context.subqueryLevel() when emulating derived column lists
...
If a QueryPart generates a subquery explicitly, then it has to mark it as such.
2019-04-16 16:08:40 +02:00
Knut Wannheden
adcb72fcfb
[ #7545 ] Add <includeExpression> and <excludeExpression> to <forcedType>
...
Add <includeExpression> and <excludeExpression> as well as
<includeTypes> and <excludeTypes> to <forcedType>. The generator will
warn about usage conflicting with the legacy <expression>,
<expressions>, and <types> elements.
2019-04-16 15:34:24 +02:00
Knut Wannheden
840f5a2aed
[ #8527 ] Fix MiniJAXB#append() when called using enums
...
The JAXB generated models also define Java enums, which should thus also
be supported by MiniJAXB#append().
2019-04-16 12:55:45 +02:00
Knut Wannheden
652e2b1a96
[ #8515 ] Fix type hierarchy of InsertOnConflictConditionStep
...
InsertOnConflictConditionStep now extends InsertReturningStep rather
than InsertFinalStep and is now also the type returned by the methods
declared in InsertOnConflictWhereStep.
2019-04-16 12:49:47 +02:00
Knut Wannheden
14a0f6ddc8
[ #3607 ] [ #8522 ] Support PL/SQL BOOLEAN types in SQL functions
2019-04-16 12:49:37 +02:00
lukaseder
927708b15a
[ #3607 ] [ #8522 ] Support PL/SQL BOOLEAN types in SQL functions
...
[#8522 ] Emulate the PL/SQL BOOLEAN type in SQL functions in Oracle 12c
[#3607 ] Allow for emitting common table expression declarations to RenderContext
2019-04-16 12:04:53 +02:00
lukaseder
1673a1b971
[ #6234 ] The encoded newline characters must be decoded
2019-04-13 18:37:54 +02:00
lukaseder
ab3f0ed371
[ #8512 ] JPADatabase may not be able to properly detect AttributeConverter
...
Some implementation of this database may have already configured a forced type programmatically, so we must not set the list but append it.
2019-04-11 16:54:56 +02:00
lukaseder
381adbc492
[ #8512 ] JPADatabase may not be able to properly detect AttributeConverter
2019-04-11 16:26:07 +02:00
Knut Wannheden
a5d4c00b7a
[ #6971 ] Regenerated code from jooq-codegen-3.12.0.xsd
2019-04-10 16:25:51 +02:00