File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"github.com/dolthub/go-mysql-server/sql/types"
22
22
)
23
23
24
- // Oct function provides a string representation for the octal value of N, where N is a decimal number.
24
+ // Oct function provides a string representation for the octal value of N, where N is a decimal (base 10) number.
25
25
type Oct struct {
26
26
n sql.Expression
27
27
}
@@ -39,7 +39,7 @@ func (o *Oct) FunctionName() string {
39
39
40
40
// Description implements sql.FunctionExpression.
41
41
func (o * Oct ) Description () string {
42
- return "returns a string representation for octal value of N, where N is a decimal number."
42
+ return "returns a string representation for octal value of N, where N is a decimal (base 10) number."
43
43
}
44
44
45
45
// Type implements the Expression interface.
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ var BuiltIns = []sql.Function{
184
184
sql.Function1 {Name : "ntile" , Fn : window .NewNTile },
185
185
sql.FunctionN {Name : "now" , Fn : NewNow },
186
186
sql.Function2 {Name : "nullif" , Fn : NewNullIf },
187
+ sql.Function1 {Name : "oct" , Fn : NewOct },
187
188
sql.Function1 {Name : "octet_length" , Fn : NewLength },
188
189
sql.Function1 {Name : "ord" , Fn : NewOrd },
189
190
sql.Function0 {Name : "pi" , Fn : NewPi },
You can’t perform that action at this time.
0 commit comments