~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/func.cc

Remove PLUGIN and MODULES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
 
20
#include "config.h"
21
21
 
22
22
#include <drizzled/sql_string.h>
23
23
#include <drizzled/sql_list.h>
33
33
#include <limits>
34
34
#include <algorithm>
35
35
 
 
36
using namespace drizzled;
36
37
using namespace std;
37
38
 
38
39
void Item_func::set_arguments(List<Item> &list)
40
41
  allowed_arg_cols= 1;
41
42
  arg_count=list.elements;
42
43
  args= tmp_arg;                                // If 2 arguments
43
 
  if (arg_count <= 2 || (args=(Item**) sql_alloc(sizeof(Item*)*arg_count)))
 
44
  if (arg_count <= 2 || (args=(Item**) memory::sql_alloc(sizeof(Item*)*arg_count)))
44
45
  {
45
46
    List_iterator_fast<Item> li(list);
46
47
    Item *item;