~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/database.h

Merged Nathan from lp:~nlws/drizzle/fix-string-c-ptr-overrun

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
 
#ifndef DRIZZLED_FUNCTIONS_STR_DATABASE_H
21
 
#define DRIZZLED_FUNCTIONS_STR_DATABASE_H
22
 
 
23
 
#include <drizzled/functions/str/strfunc.h> 
24
 
#include <drizzled/functions/str/sysconst.h>
25
 
 
26
 
class Item_func_database :public Item_func_sysconst
 
20
#ifndef DRIZZLED_FUNCTION_STR_DATABASE_H
 
21
#define DRIZZLED_FUNCTION_STR_DATABASE_H
 
22
 
 
23
#include <drizzled/function/str/strfunc.h>
 
24
 
 
25
class Item_func_database :public Item_str_func
27
26
{
28
27
public:
29
 
  Item_func_database() :Item_func_sysconst() {}
 
28
  Item_func_database() :Item_str_func() {}
30
29
  String *val_str(String *);
31
30
  void fix_length_and_dec()
32
31
  {
37
36
  const char *fully_qualified_func_name() const { return "database()"; }
38
37
};
39
38
 
40
 
#endif /* DRIZZLED_FUNCTIONS_STR_DATABASE_H */
 
39
#endif /* DRIZZLED_FUNCTION_STR_DATABASE_H */