~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Lee Bieber
  • Date: 2011-01-12 02:31:03 UTC
  • mfrom: (2068.7.5 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2076.
  • Revision ID: kalebral@gmail.com-20110112023103-nmz26cv1j32jc6n3
Merge Brian - fix bug 527084 - DROP TABLE: getTableDefiniton returns EEXIST but doDropTable returns ENOENT leads to SIGSEGV

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
/* This file is originally from the mysql distribution. Coded by monty */
24
24
 
25
25
#include <drizzled/common.h>
26
 
 
27
26
#include <cassert>
28
27
#include <cstdlib>
29
28
#include <cstring>
30
29
#include <string>
31
30
 
32
 
#include "drizzled/visibility.h"
33
 
 
34
31
#ifndef NOT_FIXED_DEC
35
32
#define NOT_FIXED_DEC                   (uint8_t)31
36
33
#endif
40
37
 
41
38
class String;
42
39
 
43
 
extern DRIZZLED_API String my_empty_string;
 
40
extern String my_empty_string;
44
41
extern const String my_null_string;
45
42
namespace memory { class Root; }
46
43
typedef struct charset_info_st CHARSET_INFO;
47
44
 
48
 
DRIZZLED_API std::string String_to_std_string(String const& s);
49
 
DRIZZLED_API String* set_String_from_std_string(String* s, std::string const& cs);
 
45
std::string String_to_std_string(String const& s);
 
46
String* set_String_from_std_string(String* s, std::string const& cs);
50
47
 
51
48
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
52
49
int stringcmp(const String *a,const String *b);
61
58
                                 const char **from_end_pos);
62
59
 
63
60
 
64
 
class DRIZZLED_API String
 
61
class String
65
62
{
66
63
  char *Ptr;
67
64
  size_t str_length,Alloced_length;