Commit Graph

4545 Commits

Author SHA1 Message Date
Lukas Eder
45a1c8da55 [jOOQ/jOOQ#8528] Prevent indexes being renamed to existing names 2019-10-15 17:19:08 +02:00
Lukas Eder
3d69a63fe2 [jOOQ/jOOQ#8528] Interpret ALTER INDEX .. RENAME 2019-10-15 17:11:57 +02:00
Lukas Eder
ec3a19fcd6 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ADD FOREIGN KEY 2019-10-15 16:05:55 +02:00
Lukas Eder
7aa231fc29 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ADD UNIQUE 2019-10-15 15:53:49 +02:00
Lukas Eder
e6c869c108 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ADD PRIMARY KEY 2019-10-15 15:49:03 +02:00
Lukas Eder
bbf955313a [jOOQ/jOOQ#8528] Interpret additional clauses:
- CREATE TABLE .. FOREIGN KEY
- ALTER TABLE .. DROP CONSTRAINT
- ALTER TABLE .. DROP FOREIGN KEY
2019-10-15 15:29:41 +02:00
Lukas Eder
a2ae1fb187 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. DROP PRIMARY KEY 2019-10-15 14:12:46 +02:00
Lukas Eder
138bef05a9 [jOOQ/jOOQ#8528] Interpret DROP INDEX 2019-10-15 14:06:48 +02:00
Lukas Eder
e1c9518f7f [jOOQ/jOOQ#8528] Interpret CREATE INDEX 2019-10-15 12:37:55 +02:00
Lukas Eder
881bd66abc [jOOQ/jOOQ#9374] Missing change 2019-10-15 12:06:55 +02:00
Lukas Eder
14bf22b486 [jOOQ/jOOQ#9354] Work around MySQL bug 81010 2019-10-15 12:04:33 +02:00
Lukas Eder
368be86581 [jOOQ/jOOQ#9374] Support various H2 ALTER .. IF EXISTS statements 2019-10-15 11:55:11 +02:00
Lukas Eder
4d7d1a4dd8 [jOOQ/jOOQ#9372] Improve SEMI / ANTI JOIN documentation 2019-10-15 11:34:09 +02:00
Knut Wannheden
4acb3b85e4 [jOOQ/jOOQ#9371] H2: Correct rendering for DSL#currentTime() 2019-10-15 11:23:02 +02:00
Lukas Eder
d9f720d505 [jOOQ/jOOQ#9364] Add DDLFlag.INDEX to allow for exporting CREATE INDEX statements 2019-10-15 11:20:14 +02:00
Knut Wannheden
6130859eb5 [jOOQ/jOOQ#2967] Add DSL#round(Field, Field) overload
The `decimals` argument can now also be an expression or rendered as an
inlined value.
2019-10-15 07:22:27 +02:00
Knut Wannheden
ca1ff21592 [jOOQ/jOOQ#9365] H2 now has the standard two-argument LOG() function 2019-10-15 07:07:06 +02:00
Knut Wannheden
54d467fa34 [jOOQ/jOOQ#9343] Extract new Tools#asString(Name) helper function 2019-10-15 06:54:03 +02:00
Lukas Eder
51309a5a7e Extract parseFieldSysConnectByPathIf() 2019-10-14 10:52:41 +02:00
Lukas Eder
e01aeff6ec [jOOQ/jOOQ#9358] Add support for parsing the H2 SCHEMA() function 2019-10-14 09:23:39 +02:00
lukaseder
b652c0974d [jOOQ/jOOQ#9355] LoggingConnection does not log static statements 2019-10-11 22:23:35 +02:00
lukaseder
bae2b79674 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ALTER .. DROP DEFAULT 2019-10-11 21:26:38 +02:00
lukaseder
ec553758a9 [jOOQ/jOOQ#9354] WIP: Support for ALTER TABLE .. ALTER .. DROP DEFAULT 2019-10-11 21:21:54 +02:00
lukaseder
0286bb7e49 [jOOQ/jOOQ#9354] WIP: Support for ALTER TABLE .. ALTER .. DROP DEFAULT 2019-10-11 21:18:22 +02:00
lukaseder
ec506f6ecb [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ALTER .. SET DEFAULT 2019-10-11 21:01:56 +02:00
lukaseder
ccad3cdff9 [jOOQ/jOOQ#9353] Support parsing ALTER TABLE .. ALTER .. SET DEFAULT 2019-10-11 21:00:32 +02:00
lukaseder
f5239aa328 [jOOQ/jOOQ#8528] Interpret ALTER TABLE .. ALTER .. SET DATA TYPE 2019-10-11 20:49:40 +02:00
lukaseder
5c8fe53c1f [jOOQ/jOOQ#8528] More improvements 2019-10-11 20:36:27 +02:00
Knut Wannheden
39bb771e1b [jOOQ/jOOQ#9343] Fix UDTDataType#getQualifiedName()
`UDTDataType#getQualifiedName()` returned a wrong result for types
defined in the default schema (i.e. the schema with no name). In SQL the
type name was rendered as `".my_type"` rather than simply `"my_type"`.
2019-10-09 15:40:54 +02:00
Knut Wannheden
5c9fcf7748 [jOOQ/jOOQ#9344] Adjust @Support annotations in CreateSequenceFlagsStep
Most flags are supported by all dialects which have a `CREATE SEQUENCE`
statement.
2019-10-09 14:17:59 +02:00
lukaseder
3d396135c9 [jOOQ/jOOQ#9338] Parse ignore comments not parsed correctly if stop comment is last token of file, prior to a newline 2019-10-08 21:43:58 +02:00
Lukas Eder
7bffea79e0 [jOOQ/jOOQ#8528] Various DDL interpreter improvements 2019-10-03 17:59:37 +02:00
Lukas Eder
733050cbcf [jOOQ/jOOQ#9327] Add DDLFlag.SEQUENCE to allow for exporting CREATE
SEQUENCE statements from DSLContext.ddl()
2019-10-03 16:39:05 +02:00
Lukas Eder
77d4d00479 [jOOQ/jOOQ#8528] DDL interpretation improvements 2019-10-03 13:18:20 +02:00
Lukas Eder
5a8b0d34f4 [jOOQ/jOOQ#8528] DDL interpretation improvements 2019-10-03 12:23:39 +02:00
Lukas Eder
72a85ed9c3 [jOOQ/jOOQ#9324] Name.append(Name) should not produce a QualifiedName
when one of the parts is empty
2019-10-03 11:23:22 +02:00
Lukas Eder
0afabfd73c [jOOQ/jOOQ#8528] DDL interpretation improvements 2019-10-03 11:19:47 +02:00
Lukas Eder
a4e92c30fd [jOOQ/jOOQ#9325] Add Name.empty() to check if a name consists only of the empty string 2019-10-03 11:19:12 +02:00
Lukas Eder
b2a90be054 [jOOQ/jOOQ#8528] log.debug calls not needed 2019-10-02 15:31:58 +02:00
Lukas Eder
3c1d247c0d [jOOQ/jOOQ#9320] Add a new DataDefinitionException to be thrown by DDLInterpreter 2019-10-02 15:29:08 +02:00
Lukas Eder
39855c15e7 [jOOQ/jOOQ#7241] Add support for ALTER TABLE .. ADD .. [ FIRST | BEFORE | AFTER ] 2019-10-02 15:22:18 +02:00
Knut Wannheden
003290cbe1 [jOOQ/jOOQ#9312] Use SQLDialect.supported() in AbstractResultQuery 2019-10-02 15:02:16 +02:00
Lukas Eder
957d80a552 [jOOQ/jOOQ#9312] Added SQLDialect::predecessors everywhere 2019-10-02 11:39:00 +02:00
Knut Wannheden
04762fbd02 [jOOQ/jOOQ#9318] H2: Support WITH clause for MERGE statement 2019-10-02 11:31:59 +02:00
Lukas Eder
4cccc14c66 [jOOQ/jOOQ#9312] Use SQLDialect::supported everywhere 2019-10-02 11:20:23 +02:00
Knut Wannheden
c84100f378 [jOOQ/jOOQ#9317] Synchronize @Support on JoinType and Table methods 2019-10-02 10:59:06 +02:00
Knut Wannheden
70a50ada80 [jOOQ/jOOQ#9316] Also update @Support on Table#straightJoin() 2019-10-02 08:57:46 +02:00
Knut Wannheden
98799f78eb [jOOQ/jOOQ#9316] Also support STRAIGHT_JOIN for MariaDB and MemSQL 2019-10-02 08:53:20 +02:00
Lukas Eder
19702a79f1 [jOOQ/jOOQ#8528] Added a few schema DDL statements 2019-10-01 17:11:12 +02:00
Lukas Eder
c8ebffa817 [jOOQ/jOOQ#9315] Remove unnecessary generic type variable on CreateSchemaImpl 2019-10-01 16:29:21 +02:00