Skip to content

Commit

Permalink
Update builtin.md
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Dec 17, 2015
1 parent 7f3bb40 commit 15c473d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tidb/builtin.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 103,8 @@ false: 该函数不是聚合函数 (sum/avg/count 这种是聚合函数)

函数实现在 info.go 中,一些细节可以看下面的代码以及注释

<code>func builtinConnectionID(args []interface{}, data map[interface{}]interface{}) (v interface{}, err error) { //返回值必须是这两个
```go
func builtinConnectionID(args []interface{}, data map[interface{}]interface{}) (v interface{}, err error) { //返回值必须是这两个
c, ok := data[ExprEvalArgCtx]
if !ok {
return nil, errors.Errorf("Missing ExprEvalArgCtx when evalue builtin")
Expand All @@ -119,4 120,4 @@ false: 该函数不是聚合函数 (sum/avg/count 这种是聚合函数)
}
return id, nil
}
</code>
```

0 comments on commit 15c473d

Please sign in to comment.