Commit 812040e296e15d0637296dfec2baf1d38ccd3cb3

Authored by Marko Tikvić
1 parent a392b07b62
Exists in master and in 1 other branch v2

hmmm

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
... ... @@ -12,6 +12,7 @@ type ListOptions struct {
12 12 PageSize uint64 `json:"pageSize"`
13 13 Pivot bool `json:"pivot"`
14 14 Detail bool `json:"detail"`
  15 + Total bool `json:"total"`
15 16 }
16 17  
17 18 type ListFilter struct {
... ... @@ -463,12 +464,12 @@ func getListOptions(db *ora.Ses, objType string) (ListOptions, error) {
463 464 var stmt *ora.Stmt
464 465 query := `SELECT
465 466 GLOBAL_FILTER, LOCAL_FILTER, REMOTE_FILTER, PAGINATION,
466   - PAGE_SIZE, PIVOT, DETAIL
  467 + PAGE_SIZE, PIVOT, DETAIL, TOTAL
467 468 FROM LIST_CONFIG
468 469 WHERE OBJECT_TYPE = '` + objType + `'`
469 470  
470 471 stmt, err = db.Prep(query, ora.U32, ora.U32, ora.U32, ora.U32,
471   - ora.U64, ora.U64, ora.U32)
  472 + ora.U64, ora.U64, ora.U32, ora.U32)
472 473 if err != nil {
473 474 return ListOptions{}, err
474 475 }
... ... @@ -486,6 +487,7 @@ func getListOptions(db *ora.Ses, objType string) (ListOptions, error) {
486 487 resp.PageSize = rset.Row[4].(uint64)
487 488 resp.Pivot = rset.Row[5].(uint64) != 0
488 489 resp.Detail = rset.Row[6].(uint32) != 0
  490 + resp.Total = rset.Row[7].(uint32) != 0
489 491 }
490 492 if rset.Err != nil {
491 493 return ListOptions{}, rset.Err
... ...