Skip to content

Commit

Permalink
[#7171] Support parsing INSERT table (without INTO)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed May 16, 2018
1 parent 166e2f1 commit 4caa9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -198,7 +198,7 @@ selectStatement = select

insertStatement =
[ with ]
( 'INSERT' | 'INS' ) 'INTO' tableName
( 'INSERT' | 'INS' ) [ 'INTO' ] tableName
[ '(' identifiers ')' ]
(
values
Expand Down
2 changes: 1 addition & 1 deletion jOOQ/src/main/java/org/jooq/impl/ParserImpl.java
Expand Up @@ -1430,7 +1430,7 @@ private static final Insert<?> parseInsert(ParserContext ctx, WithImpl with) {
if (!parseKeywordIf(ctx, "INS"))
parseKeyword(ctx, "INSERT");

parseKeyword(ctx, "INTO");
parseKeywordIf(ctx, "INTO");
Table<?> tableName = parseTableName(ctx);
InsertSetStep<?> s1 = (with == null ? ctx.dsl.insertInto(tableName) : with.insertInto(tableName));
Field<?>[] fields = null;
Expand Down

0 comments on commit 4caa9fd

Please sign in to comment.