~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to sql/item_sum.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
 
1
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
2
2
   rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
3324
3324
    }
3325
3325
    DBUG_ASSERT(tree == 0);
3326
3326
  }
 
3327
  /*
 
3328
    As the ORDER structures pointed to by the elements of the
 
3329
    'order' array may be modified in find_order_in_list() called
 
3330
    from Item_func_group_concat::setup() to point to runtime
 
3331
    created objects, we need to reset them back to the original
 
3332
    arguments of the function.
 
3333
  */
 
3334
  ORDER **order_ptr= order;
 
3335
  for (uint i= 0; i < arg_count_order; i++)
 
3336
  {
 
3337
    (*order_ptr)->item= &args[arg_count_field + i];
 
3338
    order_ptr++;
 
3339
  }
3327
3340
  DBUG_VOID_RETURN;
3328
3341
}
3329
3342