Skip to content

Commit 9b72c7e

Browse files
author
James Cor
committed
fixing comments
1 parent bd61442 commit 9b72c7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sql/procedures/parse.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ func ConvertStmt(ops *[]*InterpreterOperation, stack *InterpreterStack, stmt ast
227227
if s.Else == nil {
228228
// throw an error if when there is no else block
229229
// this is just an empty case statement that will always hit the else
230-
// todo: alternatively, use an error opcode
231230
errOp := &InterpreterOperation{
232231
OpCode: OpCode_Exception,
233232
Error: mysql.NewSQLError(1339, "20000", "Case not found for CASE statement"),
@@ -362,8 +361,7 @@ func ConvertStmt(ops *[]*InterpreterOperation, stack *InterpreterStack, stmt ast
362361
return nil
363362
}
364363

365-
// Parse parses the given CREATE FUNCTION string (which must be the entire string, not just the body) into a Block
366-
// containing the contents of the body.
364+
// Parse takes the ast.Statement and converts it series of OpCodes.
367365
func Parse(stmt ast.Statement) ([]*InterpreterOperation, error) {
368366
ops := make([]*InterpreterOperation, 0, 64)
369367
stack := NewInterpreterStack()

0 commit comments

Comments
 (0)