Changeset: b0a3881c08b9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b0a3881c08b9
Modified Files:
sql/server/rel_optimize_proj.c
Branch: const_aggr_elim
Log Message:
add spaces to code for styling and readability
diffs (40 lines):
diff --git a/sql/server/rel_optimize_proj.c b/sql/server/rel_optimize_proj.c
--- a/sql/server/rel_optimize_proj.c
+++ b/sql/server/rel_optimize_proj.c
@@ -3025,11 +3025,11 @@ rel_project_select_exp(visitor *v, sql_r
static inline sql_rel *
rel_const_aggr_elimination(visitor *v, sql_rel *rel)
{
- sql_rel *g=rel->l;
+ sql_rel *g = rel->l;
if (rel->op == op_project && g) // 0
{
- list *exps=g->exps;
+ list *exps = g->exps;
if(g->op == op_groupby && !list_empty(exps) &&
!list_empty(g->r))
{
@@ -3042,7 +3042,7 @@ rel_const_aggr_elimination(visitor *v, s
!((sql_subfunc *)e->f)->func->s &&
strcmp(((sql_subfunc *)e->f)->func->base.name,
"avg") == 0)
{
- list *se=e->l;
+ list *se = e->l;
for(node *m = se->h; m; m = m->next)
{
@@ -3052,11 +3052,11 @@ rel_const_aggr_elimination(visitor *v, s
{
exp_setalias(w,e->alias.label,e->alias.rname,e->alias.name);
- n->data=w;
+ n->data = w;
// Alternative;
//list_append_before(g->exps,n,w);
- //m->data=NULL;
+ //m->data = NULL;
//list_remove_node(g->exps,NULL,n);
v->changes++;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]