From 5c17db88e8ce070efff6669248d12bc9ab9861d0 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 20 May 2019 11:02:35 +0200 Subject: [PATCH] [#8201] Add support for EXECUTE for use in procedural blocks --- .../src/main/java/org/jooq/impl/Continue.java | 1 - jOOQ/src/main/java/org/jooq/impl/DSL.java | 12 +++ jOOQ/src/main/java/org/jooq/impl/Execute.java | 74 +++++++++++++++++++ .../src/main/java/org/jooq/impl/Keywords.java | 1 + 4 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 jOOQ/src/main/java/org/jooq/impl/Execute.java diff --git a/jOOQ/src/main/java/org/jooq/impl/Continue.java b/jOOQ/src/main/java/org/jooq/impl/Continue.java index e3950bfabe..c6c64ce0e1 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Continue.java +++ b/jOOQ/src/main/java/org/jooq/impl/Continue.java @@ -37,7 +37,6 @@ */ package org.jooq.impl; -// ... diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 14e0df967d..492b89c906 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -10147,6 +10147,18 @@ public class DSL { + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/Execute.java b/jOOQ/src/main/java/org/jooq/impl/Execute.java new file mode 100644 index 0000000000..788cafe59a --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/Execute.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + +import static org.jooq.impl.Keywords.K_EXECUTE; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/jOOQ/src/main/java/org/jooq/impl/Keywords.java b/jOOQ/src/main/java/org/jooq/impl/Keywords.java index dc21505949..f0a28846cf 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Keywords.java +++ b/jOOQ/src/main/java/org/jooq/impl/Keywords.java @@ -132,6 +132,7 @@ final class Keywords { static final Keyword K_EXCEPTION = keyword("exception"); static final Keyword K_EXCLUDE = keyword("exclude"); static final Keyword K_EXEC = keyword("exec"); + static final Keyword K_EXECUTE = keyword("execute"); static final Keyword K_EXECUTE_BLOCK = keyword("execute block"); static final Keyword K_EXECUTE_IMMEDIATE = keyword("execute immediate"); static final Keyword K_EXECUTE_STATEMENT = keyword("execute statement");