~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/substr_functions/substr_functions.cc

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

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
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *  Copyright (C) 2010 Stewart Smith
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
22
 
 
 
21
#include <config.h>
 
22
 
 
23
#include <algorithm>
 
24
 
 
25
#include <drizzled/charset.h>
 
26
#include <drizzled/function/str/strfunc.h>
23
27
#include <drizzled/plugin/function.h>
24
 
#include <algorithm>
25
28
 
26
29
using namespace std;
27
30
using namespace drizzled;
28
31
 
29
 
#include <drizzled/function/str/strfunc.h>
30
 
 
31
32
class SubstrFunction :public Item_str_func
32
33
{
33
34
  String tmp_value;
278
279
  "SUBSTR and SUBSTR",
279
280
  PLUGIN_LICENSE_GPL,
280
281
  initialize, /* Plugin Init */
281
 
  NULL,   /* system variables */
 
282
  NULL,   /* depends */
282
283
  NULL    /* config options */
283
284
}
284
285
DRIZZLE_DECLARE_PLUGIN_END;