mirror of https://github.com/lqs/sqlingo
fix gofmt
This commit is contained in:
parent
9825791b01
commit
5e531e47da
|
|
@ -32,4 +32,4 @@ func Length(arg interface{}) NumberExpression {
|
|||
|
||||
func Sum(arg interface{}) NumberExpression {
|
||||
return function("SUM", arg)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
func TestOrder(t *testing.T) {
|
||||
e := expression{sql: "x"}
|
||||
assertValue(t, orderBy{by: e}, "x")
|
||||
assertValue(t, orderBy{by: e, desc:true}, "x DESC")
|
||||
assertValue(t, orderBy{by: e, desc: true}, "x DESC")
|
||||
assertError(t, orderBy{by: expression{builder: func(scope scope) (string, error) {
|
||||
return "", errors.New("error")
|
||||
}}})
|
||||
|
|
|
|||
Loading…
Reference in New Issue