~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.h

  • Committer: Monty Taylor
  • Date: 2008-10-29 14:15:34 UTC
  • mto: (520.4.26 devel)
  • mto: This revision was merged to the branch mainline in revision 570.
  • Revision ID: monty@inaugust.com-20081029141534-jyfurnz6dcwa7opc
Moved thr_lock.h out of common_includes.

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_HANDLER_H
 
21
#define DRIZZLED_HANDLER_H
20
22
 
21
23
/* Definitions for parameters to do with handler-routines */
22
24
 
23
 
 
24
25
#include <storage/myisam/keycache.h>
 
26
#include <mysys/thr_lock.h>
 
27
 
 
28
/* Bits to show what an alter table will do */
 
29
#include <drizzled/sql_bitmap.h>
 
30
 
 
31
#define HA_MAX_ALTER_FLAGS 40
 
32
typedef Bitmap<HA_MAX_ALTER_FLAGS> HA_ALTER_FLAGS;
25
33
 
26
34
#ifndef NO_HASH
27
35
#define NO_HASH                         /* Not yet implemented */
44
52
#define HA_ADMIN_NEEDS_ALTER    -11
45
53
#define HA_ADMIN_NEEDS_CHECK    -12
46
54
 
47
 
/* Bits to show what an alter table will do */
48
 
#include <drizzled/sql_bitmap.h>
49
 
 
50
 
#define HA_MAX_ALTER_FLAGS 40
51
 
typedef Bitmap<HA_MAX_ALTER_FLAGS> HA_ALTER_FLAGS;
52
55
 
53
56
#define HA_ADD_INDEX                  (0)
54
57
#define HA_DROP_INDEX                 (1)
2273
2276
*/
2274
2277
#define trans_need_2pc(session, all)                   ((total_ha_2pc > 1) && \
2275
2278
        !((all ? &session->transaction.all : &session->transaction.stmt)->no_2pc))
 
2279
 
 
2280
#endif /* DRIZZLED_HANDLER_H */