~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/func.h

Moved coercibility into a plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    allowed_arg_cols(1), arg_count(0)
71
71
  {
72
72
    with_sum_func= 0;
 
73
    collation.set(DERIVATION_SYSCONST);
73
74
  }
74
75
 
75
76
  Item_func(Item *a):
79
80
    args= tmp_arg;
80
81
    args[0]= a;
81
82
    with_sum_func= a->with_sum_func;
 
83
    collation.set(DERIVATION_SYSCONST);
82
84
  }
83
85
  
84
86
  Item_func(Item *a,Item *b):
88
90
    args= tmp_arg;
89
91
    args[0]= a; args[1]= b;
90
92
    with_sum_func= a->with_sum_func || b->with_sum_func;
 
93
    collation.set(DERIVATION_SYSCONST);
91
94
  }
92
95
  
93
96
  Item_func(Item *a,Item *b,Item *c):
101
104
      args[0]= a; args[1]= b; args[2]= c;
102
105
      with_sum_func= a->with_sum_func || b->with_sum_func || c->with_sum_func;
103
106
    }
 
107
    collation.set(DERIVATION_SYSCONST);
104
108
  }
105
109
  
106
110
  Item_func(Item *a,Item *b,Item *c,Item *d):
115
119
      with_sum_func= a->with_sum_func || b->with_sum_func ||
116
120
        c->with_sum_func || d->with_sum_func;
117
121
    }
 
122
    collation.set(DERIVATION_SYSCONST);
118
123
  }
119
124
  
120
125
  Item_func(Item *a,Item *b,Item *c,Item *d,Item* e):
128
133
      with_sum_func= a->with_sum_func || b->with_sum_func ||
129
134
        c->with_sum_func || d->with_sum_func || e->with_sum_func ;
130
135
    }
 
136
    collation.set(DERIVATION_SYSCONST);
131
137
  }
132
138
  
133
139
  Item_func(List<Item> &list);