[#8189] Add support for GOTO in procedural blocks

This commit is contained in:
lukaseder 2019-01-10 14:24:03 +01:00
parent d7801fdef1
commit 0484fcda81
4 changed files with 103 additions and 0 deletions

View File

@ -9909,6 +9909,16 @@ public class DSL {

View File

@ -0,0 +1,68 @@
/*
* 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;

View File

@ -149,6 +149,7 @@ final class Keywords {
static final Keyword K_FROM = keyword("from");
static final Keyword K_GENERATED_BY_DEFAULT_AS_IDENTITY = keyword("generated by default as identity");
static final Keyword K_GLOBAL_TEMPORARY = keyword("global temporary");
static final Keyword K_GOTO = keyword("goto");
static final Keyword K_GRANT = keyword("grant");
static final Keyword K_GRANT_OPTION_FOR = keyword("grant option for");
static final Keyword K_GROUP_BY = keyword("group by");

View File

@ -2262,6 +2262,15 @@ final class ParserImpl implements Parser {
@ -2306,6 +2315,16 @@ final class ParserImpl implements Parser {
;
break;
case 'g':
case 'G':
if (peekKeyword(ctx, "GOTO") && ctx.requireProEdition())
;
break;
@ -2497,6 +2516,11 @@ final class ParserImpl implements Parser {