Skip to content

Commit

Permalink
Merge pull request cockroachdb#16921 from elca-kairos-py/current_schema
Browse files Browse the repository at this point in the history
sql/parser: Added current_schema keyword support.
  • Loading branch information
jordanlewis authored Jul 8, 2017
2 parents 6ba72ad + a696032 commit 3824cc1
Show file tree
Hide file tree
Showing 5 changed files with 4,390 additions and 4,373 deletions.
1 change: 1 addition & 0 deletions pkg/sql/parser/keywords.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/sql/parser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ func TestParse2(t *testing.T) {
{`SELECT a FROM t1 RIGHT OUTER JOIN t2 ON a = b`,
`SELECT a FROM t1 RIGHT JOIN t2 ON a = b`},
// Some functions are nearly keywords.
{`SELECT CURRENT_SCHEMA`,
`SELECT current_schema()`},
{`SELECT CURRENT_TIMESTAMP`,
`SELECT current_timestamp()`},
{`SELECT CURRENT_DATE`,
Expand Down
1 change: 1 addition & 0 deletions pkg/sql/parser/reserved_keywords.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3824cc1

Please sign in to comment.