|
MySQL 5.6.14 Source Code Document
|
Sum functions (COUNT, MIN...) More...
#include "sql_priv.h"#include "sql_select.h"#include "sql_tmp_table.h"#include "sql_resolver.h"#include "sql_optimizer.h"
Go to the source code of this file.
Functions | |
| int | group_concat_key_cmp_with_distinct (const void *arg, const void *key1, const void *key2) |
| int | group_concat_key_cmp_with_order (const void *arg, const void *key1, const void *key2) |
| int | dump_leaf_key (void *key_arg, element_count count __attribute__((unused)), void *item_arg) |
Sum functions (COUNT, MIN...)
Definition in file item_sum.cc.
| int dump_leaf_key | ( | void * | key_arg, |
| element_count count | __attribute__(unused), | ||
| void * | item_arg | ||
| ) |
Append data from current leaf to item->result.
To avoid duplicated warnings in Item_func_group_concat::val_str()
Definition at line 3017 of file item_sum.cc.
| int group_concat_key_cmp_with_distinct | ( | const void * | arg, |
| const void * | key1, | ||
| const void * | key2 | ||
| ) |
Compares the values for fields in expr list of GROUP_CONCAT.
GROUP_CONCAT([DISTINCT] expr [,expr ...] [ORDER BY {unsigned_integer | col_name | expr} [ASC | DESC] [,col_name ...]] [SEPARATOR str_val])
| -1 | : key1 < key2 |
| 0 | : key1 = key2 |
| 1 | : key1 > key2 |
Definition at line 2931 of file item_sum.cc.
| int group_concat_key_cmp_with_order | ( | const void * | arg, |
| const void * | key1, | ||
| const void * | key2 | ||
| ) |
function of sort for syntax: GROUP_CONCAT(expr,... ORDER BY col,... )
Definition at line 2970 of file item_sum.cc.