Skip to content

Commit

Permalink
Added support for explain statements, fixed a short description
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Jul 17, 2019
1 parent 030aa1b commit efc0c8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions go/cmd/dolt/commands/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ Reasonably well supported functionality:
* ALTER TABLE / DROP TABLE statements
* UPDATE and DELETE statements
* Table and column aliases
* Column functions, e.g. CONCAT
* ORDER BY and LIMIT clauses
* GROUP BY
* Aggregate functions, e.g. SUM
Known limitations:
* Some expressions in SELECT statements
* GROUP BY or aggregate functions
* Subqueries
* Column functions, e.g. CONCAT
* Non-primary indexes
* Foreign keys
* Column constraints besides NOT NULL
Expand Down Expand Up @@ -275,7 +276,7 @@ func processQuery(query string, dEnv *env.DoltEnv, root *doltdb.RootValue) (*dol
switch s := sqlStatement.(type) {
case *sqlparser.Show:
return nil, sqlShow(root, s)
case *sqlparser.Select:
case *sqlparser.Select, *sqlparser.OtherRead:
sqlSch, rowIter, err := sqlNewEngine(query, root)
if err == nil {
err = prettyPrintResults(sqlSch, rowIter)
Expand Down
4 changes: 2 additions & 2 deletions go/cmd/dolt/commands/sqlserver/sqlserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const (
logLevelFlag = "loglevel"
)

var sqlServerShortDesc = "Starts a MySQL-compatible server."
var sqlServerLongDesc = `Starts a MySQL-compatible server which can be connected to by MySQL clients.
var sqlServerShortDesc = "Start a MySQL-compatible server."
var sqlServerLongDesc = `Start a MySQL-compatible server which can be connected to by MySQL clients.
Currently, only SELECT statements are operational, as support for other statements is
still being developed.
Expand Down

0 comments on commit efc0c8e

Please sign in to comment.