My Project
|
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"
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...)
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()
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 |
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,... )