~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/substr_functions/substr_functions.cc

  • Committer: Lee Bieber
  • Date: 2010-12-15 16:23:36 UTC
  • mfrom: (1995.1.2 build)
  • Revision ID: kalebral@gmail.com-20101215162336-juntyt4gw4vgohg4
Merge Andrew - fix bug 628912: Crash / segfault in drizzled::Item_func::arguments (this=0x35) at ./drizzled/function/func.h
Merge Andrew - 663919: next query after KILL QUERY will error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *  Copyright (C) 2010 Stewart Smith
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
20
20
 
21
21
#include "config.h"
22
22
 
 
23
#include <drizzled/plugin/function.h>
23
24
#include <algorithm>
24
25
 
25
 
#include <drizzled/charset_info.h>
26
 
#include <drizzled/function/str/strfunc.h>
27
 
#include <drizzled/plugin/function.h>
28
 
 
29
26
using namespace std;
30
27
using namespace drizzled;
31
28
 
 
29
#include <drizzled/function/str/strfunc.h>
 
30
 
32
31
class SubstrFunction :public Item_str_func
33
32
{
34
33
  String tmp_value;
279
278
  "SUBSTR and SUBSTR",
280
279
  PLUGIN_LICENSE_GPL,
281
280
  initialize, /* Plugin Init */
282
 
  NULL,   /* depends */
 
281
  NULL,   /* system variables */
283
282
  NULL    /* config options */
284
283
}
285
284
DRIZZLE_DECLARE_PLUGIN_END;