Skip to content

Commit

Permalink
sql: reference cockroachdb#32562 for SET LOCAL
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Nov 28, 2018
1 parent 681b33a commit 52eabf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/sql/parser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2588,7 +2588,7 @@ func TestUnimplementedSyntax(t *testing.T) {
{`DISCARD TEMPORARY`, 0, `discard temp`},

{`SET CONSTRAINTS foo`, 0, `set constraints`},
{`SET LOCAL foo = bar`, 0, `set local`},
{`SET LOCAL foo = bar`, 32562, ``},
{`SET foo FROM CURRENT`, 0, `set from current`},

{`CREATE TEMP TABLE a(b INT)`, 5807, ``},
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/parser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ nonpreparable_set_stmt:
set_transaction_stmt // EXTEND WITH HELP: SET TRANSACTION
| set_exprs_internal { /* SKIP DOC */ }
| SET CONSTRAINTS error { return unimplemented(sqllex, "set constraints") }
| SET LOCAL error { return unimplemented(sqllex, "set local") }
| SET LOCAL error { return unimplementedWithIssue(sqllex, 32562) }
// SET SESSION / SET CLUSTER SETTING
preparable_set_stmt:
Expand Down

0 comments on commit 52eabf5

Please sign in to comment.