diff --git a/pkg/sql/parser/sql.y b/pkg/sql/parser/sql.y index 1e7e4975897e..3d9956fae740 100644 --- a/pkg/sql/parser/sql.y +++ b/pkg/sql/parser/sql.y @@ -3347,7 +3347,7 @@ show_grants_stmt: // %Help: SHOW INDEXES - list indexes // %Category: DDL -// %Text: SHOW INDEXES FROM +// %Text: SHOW INDEXES FROM { | DATABASE } // %SeeAlso: WEBDOCS/show-index.html show_indexes_stmt: SHOW INDEX FROM table_name @@ -3355,15 +3355,27 @@ show_indexes_stmt: $$.val = &tree.ShowIndexes{Table: $4.unresolvedObjectName()} } | SHOW INDEX error // SHOW HELP: SHOW INDEXES +| SHOW INDEX FROM DATABASE database_name + { + return unimplementedWithIssue(sqllex, 37270) + } | SHOW INDEXES FROM table_name { $$.val = &tree.ShowIndexes{Table: $4.unresolvedObjectName()} } +| SHOW INDEXES FROM DATABASE database_name + { + return unimplementedWithIssue(sqllex, 37270) + } | SHOW INDEXES error // SHOW HELP: SHOW INDEXES | SHOW KEYS FROM table_name { $$.val = &tree.ShowIndexes{Table: $4.unresolvedObjectName()} } +| SHOW KEYS FROM DATABASE database_name + { + return unimplementedWithIssue(sqllex, 37270) + } | SHOW KEYS error // SHOW HELP: SHOW INDEXES // %Help: SHOW CONSTRAINTS - list constraints