~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.h

Merged vcol stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
/* Bits to show what an alter table will do */
52
52
#include <drizzled/sql_bitmap.h>
53
53
 
54
 
#define HA_MAX_ALTER_FLAGS 39
 
54
#define HA_MAX_ALTER_FLAGS 40
55
55
typedef Bitmap<HA_MAX_ALTER_FLAGS> HA_ALTER_FLAGS;
56
56
 
57
57
#define HA_ADD_INDEX                  (0)
88
88
#define HA_RENAME_TABLE               (36)
89
89
#define HA_ALTER_STORAGE_ENGINE       (37)
90
90
#define HA_RECREATE                   (38)
 
91
#define HA_ALTER_STORED_VCOL          (39)
91
92
/* Remember to increase HA_MAX_ALTER_FLAGS when adding more flags! */
92
93
 
93
94
/* Return values for check_if_supported_alter */
1804
1805
   if (this->check_if_incompatible_data(create_info, table_changes)
1805
1806
       == COMPATIBLE_DATA_NO)
1806
1807
     return(HA_ALTER_NOT_SUPPORTED);
 
1808
   else if ((*alter_flags & HA_ALTER_STORED_VCOL).is_set())
 
1809
     return(HA_ALTER_NOT_SUPPORTED);
1807
1810
   else
1808
1811
     return(HA_ALTER_SUPPORTED_WAIT_LOCK);
1809
1812
 }
1904
1907
  {
1905
1908
    return HA_ERR_WRONG_COMMAND;
1906
1909
  }
 
1910
  /*
 
1911
    This procedure defines if the storage engine supports virtual columns.
 
1912
    Default false means "not supported".
 
1913
  */
 
1914
  virtual bool check_if_supported_virtual_columns(void) 
 
1915
  { return false; }
1907
1916
 
1908
1917
protected:
1909
1918
  /* Service methods for use by storage engines. */