Commit Graph

7266 Commits

Author SHA1 Message Date
Knut Wannheden
de263dc9b8 [#8547] Add missing SQLITE_3_x cases to switches
Add missing cases for SQLITE_3_25 and SQLITE_3_28 in dialect switches.
2019-05-28 15:17:10 +02:00
Knut Wannheden
2e6a9514c3 [#8703] Add DSL#log(Field, Field)
Adds an overload DSL#log(Field, Field) which is also used by the parser,
as the base can for multiple dialects both be a float literal or an
arbitrary expression.
2019-05-28 15:05:01 +02:00
Lukas Eder
89a1751918 [jOOQ/jOOQ#6920] Update API with Vertica Support annotations 2019-05-28 14:55:29 +02:00
Lukas Eder
1a849a9232 [jOOQ/jOOQ#6920] Update API with Vertica Support annotations 2019-05-28 14:55:05 +02:00
Lukas Eder
130db06e3c [jOOQ/jOOQ#8704] Add support for MERGE in Vertica 2019-05-28 14:53:58 +02:00
Knut Wannheden
1cd7aa47fb [#8696] Added "fall through" comments to make code better readable 2019-05-28 12:59:38 +02:00
Knut Wannheden
a986cd0380 [#8696] Use SQL Server 2012's LOG() function with base parameter
SQL Server 2012's LOG() function accepts an optional second parameter to
specify the "base" to use. Use this rather than emulate that function.
2019-05-28 12:39:21 +02:00
Knut Wannheden
0b8f7cc111 [#8699] In Trim add case for SQLITE_3_25 and SQLITE_3_28
The switch over Configuration#dialect() was missing cases for
SQLITE_3_25 and SQLITE_3_28.
2019-05-28 12:17:21 +02:00
Knut Wannheden
2ef879d6bc [#8699] In Trim add case for SQLITE_3_25 and SQLITE_3_28
The switch over Configuration#dialect() was missing cases for
SQLITE_3_25 and SQLITE_3_28.
2019-05-28 12:15:34 +02:00
Knut Wannheden
893ce190e3 [#8698] In Sign switch over Configuration#family()
The switch over Sign#dialect() was wrong (typo).
2019-05-28 12:09:09 +02:00
Knut Wannheden
9a7e111fb9 [#8697] Removed MYSQL case from switch in MD5
Since the case was the default ayway it (along with some others) could
be removed.
2019-05-28 12:02:34 +02:00
Lukas Eder
5da1c032e4 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-05-28 11:53:47 +02:00
Knut Wannheden
ed0634f0cb [#8695] Use Configuration#family() convenience method
Replace expressions like `configuration.dialect().family()` with
`configuration.family()`.
2019-05-28 11:41:04 +02:00
Knut Wannheden
e1b64b4987 [#8694] Floor must switch over Configuration#family() 2019-05-28 11:30:59 +02:00
Lukas Eder
5598a94899 [#8685] Regenerated example and test code 2019-05-28 10:30:55 +02:00
Lukas Eder
e8dab8a763 [#7921] Prevent NPE from unattached queries 2019-05-28 10:28:49 +02:00
Knut Wannheden
28d5cfa220 Upgrade to properties-maven-plugin 1.0.0
Most pom.xml files (with the exception of jOOQ-test) used version
1.0-alpha-2 of properties-maven-plugin. Now all use 1.0.0.
2019-05-28 09:45:16 +02:00
Lukas Eder
e16465c56b [jOOQ/jOOQ#8693] Add support for generation of comments on HSQLDB schema objects 2019-05-27 13:16:13 +02:00
Lukas Eder
7b82eff279 [#8691] Serialization fails when table contains SQLDataType.INSTANT
columns or when using Converter.ofNullable() converters
2019-05-27 12:45:40 +02:00
Lukas Eder
c60d7b5467 [#7921] Support the feature for all dialects 2019-05-27 11:57:59 +02:00
Lukas Eder
09d3a4d26e [#8685] Avoid generating unnecessary {@inheritDoc} 2019-05-27 10:48:21 +02:00
Lukas Eder
cccc232aae [jOOQ/jOOQ#8657] Add DDLExportConfiguration.createSchemaIfNotExists and createTableIfNotExists flags 2019-05-27 10:33:16 +02:00
Lukas Eder
4921fdf6bc [#7921] Add support for Asterisk.except(Field...) and QualifiedAsterisk.except(Field...) 2019-05-27 09:44:36 +02:00
Lukas Eder
fea421868c [#8689] Generate LN function in H2, instead of LOG 2019-05-27 09:43:00 +02:00
Knut Wannheden
9c18aa464e [#8452] Support RAND() and RANDOM() in parser 2019-05-24 10:49:57 +02:00
Knut Wannheden
2dafae0c85 [#8682] Corrected parsing of LOG() function
The SQL parser had reversed the "base" and "value" parameters when
parsing the LOG() function.
2019-05-24 10:30:02 +02:00
Knut Wannheden
293ccc7e2c [#8452] Implement parsing of SYS_CONNECT_BY_PATH
The parser can now parse Oracle's SYS_CONNECT_BY_PATH function used in
hierarchical queries.
2019-05-24 08:25:58 +02:00
Knut Wannheden
18a9017b21 [#8675] CONNECT_BY_ROOT is now correctly parsed as an unary operator
Parsing CONNECT_BY_ROOT as a regular term lead to various smaller
glitches when used in expressions with other operators (of different
precedences). Parsing it as an unary operator and its operand as a term
fixes this problem.
2019-05-24 08:25:01 +02:00
Knut Wannheden
5f21af8d6d [#8675] Implement parsing of CONNECT BY operators and pseudo columns
The parser now properly parses Oracle's CONNECT_BY_ROOT,
CONNECT_BY_ISLEAF, and CONNECT_BY_ISCYCLE syntax.
2019-05-23 16:36:14 +02:00
Knut Wannheden
860a9b079e [#8646] Refactor AbstractDMLQuery#prepare()
Refactor AbstractDMLQuery#prepare() by extracting into prepare0() to
make sure that Tools#setFetchSize() will always get called.
2019-05-23 16:35:40 +02:00
Knut Wannheden
6f13d24232 [#8646] Call Statement#setFetchSize(int) where applicable
Calling Statement#setFetchSize(int) can also make sense in other places
than AbstractResultQuery. Specifically it is now also called in
AbstractDMLQuery and AbstractRoutine.

In each case the fetch size will be determined using
Settings#getFetchSize(), except for AbstractResultQuery where the value
supplied via ResultQuery#fetchSize(int) takes precedence.
2019-05-22 11:01:20 +02:00
lukaseder
dd9b3e9f3e [#8616] Fix off-by-one error... 2019-05-21 16:58:17 +02:00
lukaseder
b83f9cc009 [#8616] Add Settings.parseSearchPath 2019-05-21 16:34:36 +02:00
Knut Wannheden
444c2f0034 [#8542] Add MySQL 8.0 support for LATERAL 2019-05-21 16:09:58 +02:00
Knut Wannheden
85a1d1f31e [#2059] Remove some MemSQL related code 2019-05-21 14:56:49 +02:00
Knut Wannheden
bc4d121aa9 [#2059] Fix problem with code comment in Function.java 2019-05-21 14:46:31 +02:00
Knut Wannheden
35fc136643 [#2059] Add MemSQL support
Implement support for new dialect SQLDialect#MEMSQL. Excluded from the
support are stored procedures, MemSQL specific DDL keywords, MemSQL
specific DML (like REPLACE), and for the time being also the PIVOT
clause (see #8643).

Approved-by: Lukas Eder
2019-05-21 14:38:06 +02:00
Lukas Eder
17df39efbc [jOOQ/jOOQ#8656] Add org.jooq.DDLExportConfiguration 2019-05-21 12:58:18 +02:00
Lukas Eder
fce9626b13 [jOOQ/jOOQ#8615] Missing NOTICE file from commons-lang 2019-05-21 12:23:17 +02:00
Lukas Eder
cdf8ea7381 [jOOQ/jOOQ#8660] Add support for synthetic ALTER TABLE .. DROP PRIMARY KEY <name> syntax 2019-05-21 11:20:05 +02:00
Lukas Eder
b62b8bf0a2 [#6709] Support custom Hibernate properties in JPADatabase 2019-05-20 12:48:04 +02:00
Lukas Eder
27203a8e52 Added jOOQ-pro dependency 2019-05-20 12:33:14 +02:00
Lukas Eder
80bb688a75 [#8654] Emulate MySQL's ALTER TABLE .. DROP PRIMARY KEY in PostgreSQL 2019-05-20 11:16:09 +02:00
Lukas Eder
5c17db88e8 [#8201] Add support for EXECUTE for use in procedural blocks 2019-05-20 11:02:35 +02:00
Lukas Eder
159a2bbb26 [#8650] Add support for MySQL's ALTER TABLE .. DROP PRIMARY KEY syntax 2019-05-20 10:25:34 +02:00
Lukas Eder
ebce61b0fc [#8649] Add support for MySQL's ALTER TABLE .. DROP FOREIGN KEY syntax 2019-05-18 16:47:48 +02:00
Lukas Eder
a452eba624
Merge pull request #8645 from mrehkopf/plpgsql_fix
Sakila/PostgreSQL: Replace nonexisting IF with CASE
2019-05-17 14:52:01 +02:00
Maximilian Rehkopf
2a9a29743f Sakila/PostgreSQL: Replace nonexisting IF with CASE 2019-05-17 13:56:30 +02:00
Lukas Eder
3767310b65 Removed accidentally added files 2019-05-17 09:24:27 +02:00
Lukas Eder
8d61fa4235 [#8637] Support annotation mismatch between overloaded methods 2019-05-16 11:11:01 +02:00