|
|
@@ -12,6 +12,7 @@ import (
|
|
|
"git.wecise.com/wecise/odb-go/odb/mql/parser"
|
|
|
"git.wecise.com/wecise/odb-go/odb/mql/qstru"
|
|
|
"gitee.com/wecisecode/util/cast"
|
|
|
+ "gitee.com/wecisecode/util/merrs"
|
|
|
"gitee.com/wecisecode/util/mfmt"
|
|
|
"gitee.com/wecisecode/util/set/strset"
|
|
|
"gitee.com/wecisecode/util/sortedmap"
|
|
|
@@ -72,6 +73,11 @@ type ActionExprs struct {
|
|
|
}
|
|
|
|
|
|
func getActionExprs(mqlstr string, staticactions map[int]*Action) (actionexprs *ActionExprs, err error) {
|
|
|
+ defer func() {
|
|
|
+ if err != nil {
|
|
|
+ err = merrs.New(err, merrs.Map{"mql": mqlstr})
|
|
|
+ }
|
|
|
+ }()
|
|
|
actionexprs = &ActionExprs{
|
|
|
LinkedMap: sortedmap.NewLinkedMap(),
|
|
|
onerrorOption: &OnErrorOption{
|