nacos config
This commit is contained in:
parent
1f126b3817
commit
4fc9926cb9
|
@ -133,7 +133,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
||||||
|
|
||||||
for _, mquery := range mquerys {
|
for _, mquery := range mquerys {
|
||||||
|
|
||||||
sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime dec limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond)
|
sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime DESC limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond)
|
||||||
|
|
||||||
raw := l.svcCtx.MysqlConn.Raw(sqlstr)
|
raw := l.svcCtx.MysqlConn.Raw(sqlstr)
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ func TestMain(t *testing.T) {
|
||||||
|
|
||||||
for _, mquery := range mquerys {
|
for _, mquery := range mquerys {
|
||||||
|
|
||||||
sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime asc limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond)
|
sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s order by ctime dec limit 1", mquery.EncodeQuery("metadata"), mquery.TableName, mquery.Cond)
|
||||||
|
|
||||||
raw := conn.Raw(sqlstr)
|
raw := conn.Raw(sqlstr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user