~stewart/drizzle/use-catalog-for-path

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
#include <drizzled/visibility.h>
38
38
 
39
 
namespace drizzled
40
 
{
 
39
namespace drizzled {
41
40
 
42
41
#define HA_MAX_ALTER_FLAGS 40
43
42
 
44
43
typedef std::bitset<HA_MAX_ALTER_FLAGS> HA_ALTER_FLAGS;
45
44
 
46
 
class AlterInfo;
47
 
class CreateField;
48
 
class ForeignKeyInfo;
49
 
class Item;
50
 
class Item_ident;
51
 
class LEX;
52
 
class Select_Lex;
53
 
class Select_Lex_Unit;
54
 
class String;
55
 
class Table;
56
 
class TableList;
57
 
class TableShare;
58
 
class select_result;
59
 
class sys_var_str;
60
 
struct Order;
61
 
 
62
45
typedef List<Item> List_item;
63
46
extern KEY_CREATE_INFO default_key_create_info;
64
47
 
65
 
/* Forward declaration for condition pushdown to storage engine */
66
 
typedef class Item COND;
67
 
 
68
 
typedef struct system_status_var system_status_var;
69
 
 
70
 
namespace optimizer { class CostVector; }
71
 
namespace plugin { class StorageEngine; }
72
 
 
73
48
/*
74
49
  bitmap with first N+1 bits set
75
50
  (keypart_map for a key prefix of [0..N] keyparts)
76
51
*/
77
 
template<class T>
78
 
inline key_part_map make_keypart_map(T a)
 
52
inline key_part_map make_keypart_map(int a)
79
53
{
80
54
  return (((key_part_map)2 << a) - 1);
81
55
}
84
58
  bitmap with first N bits set
85
59
  (keypart_map for a key prefix of [0..N-1] keyparts)
86
60
*/
87
 
template<class T>
88
 
inline key_part_map make_prev_keypart_map(T a)
 
61
inline key_part_map make_prev_keypart_map(int a)
89
62
{
90
63
  return (((key_part_map)1 << a) - 1);
91
64
}
638
611
/* basic stuff */
639
612
void ha_init_errors(void);
640
613
 
641
 
class SortField;
642
614
SortField *make_unireg_sortorder(Order *order, uint32_t *length,
643
615
                                 SortField *sortorder);
644
616
int setup_order(Session *session, Item **ref_pointer_array, TableList *tables,