Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Sep 3, 2024
1 parent a9d27c9 commit 5f5d698
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion go/vt/sqlparser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func markBindVariable(yylex yyLexer, bvar string) {
%type <statement> prepare_statement execute_statement deallocate_statement
%type <statement> stream_statement vstream_statement insert_statement update_statement delete_statement set_statement set_transaction_statement
%type <statement> create_statement alter_statement rename_statement drop_statement truncate_statement flush_statement do_statement
%type <selStmt> select_statement select_stmt_with_into query_expression_parens query_expression query_expression_body query_primary
%type <selStmt> select_statement select_stmt_with_into query_expression_parens query_expression query_expression_body query_primary values_statement
%type <with> with_clause_opt with_clause
%type <cte> common_table_expr
%type <ctes> with_list
Expand Down Expand Up @@ -905,6 +905,12 @@ select_stmt_with_into:
$$ = $1
}

values_statement:
VALUES tuple_list
{
$$ = &ValuesStatement{Rows: $2}
}

stream_statement:
STREAM comment_opt select_expression FROM table_name
{
Expand All @@ -928,6 +934,11 @@ query_primary:
{
$$ = NewSelect(Comments($2), $4/*SelectExprs*/, $3/*options*/, nil, $5/*from*/, NewWhere(WhereClause, $6), $7, NewWhere(HavingClause, $8), $9)
}
|
values_statement
{
$$ = $1
}

insert_statement:
insert_or_replace comment_opt ignore_opt into_table_name opt_partition_clause insert_data on_dup_opt
Expand Down

0 comments on commit 5f5d698

Please sign in to comment.