~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Monty Taylor
  • Date: 2010-12-27 18:39:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101227183911-atgh0kcubflay0b9
Added back INNOBASE_SKIP_WARNINGS for solaris. Also dealt with unused params.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#pragma once
22
 
 
23
 
#include <drizzled/base.h>
24
 
#include <drizzled/definitions.h>
25
 
#include <drizzled/lex_string.h>
26
 
#include <drizzled/thr_lock.h>
27
 
 
28
 
namespace drizzled {
 
21
/* The old structures from unireg */
 
22
 
 
23
#ifndef DRIZZLED_STRUCTS_H
 
24
#define DRIZZLED_STRUCTS_H
 
25
 
 
26
#include "drizzled/base.h"
 
27
#include "drizzled/definitions.h"
 
28
#include "drizzled/lex_string.h"
 
29
#include "drizzled/thr_lock.h"
 
30
 
 
31
namespace drizzled
 
32
{
 
33
 
 
34
namespace internal
 
35
{
 
36
typedef struct st_io_cache IO_CACHE;
 
37
}
 
38
 
 
39
class Table;
 
40
class Field;
29
41
 
30
42
class KeyPartInfo 
31
43
{       /* Info about a key part */
77
89
  */
78
90
  ulong *rec_per_key;
79
91
  Table *table;
80
 
  lex_string_t comment;
 
92
  LEX_STRING comment;
81
93
};
82
94
 
83
95
 
 
96
class JoinTable;
 
97
 
84
98
class RegInfo 
85
99
{
86
100
public:         /* Extra info about reg */
100
114
  }
101
115
};
102
116
 
 
117
class Session;
 
118
class Cursor;
 
119
namespace optimizer { class SqlSelect; }
 
120
 
103
121
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
104
122
 
105
123
} /* namespace drizzled */
109
127
#define STATUS_GARBAGE          1
110
128
#define STATUS_NOT_FOUND        2       /* No record in database when needed */
111
129
#define STATUS_NO_PARENT        4       /* Parent record wasn't found */
 
130
#define STATUS_NOT_READ         8       /* Record isn't read */
 
131
#define STATUS_UPDATED          16      /* Record is updated by formula */
112
132
#define STATUS_NULL_ROW         32      /* table->null_row is set */
 
133
#define STATUS_DELETED          64
113
134
 
 
135
#endif /* DRIZZLED_STRUCTS_H */