~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.h

  • Committer: Brian Aker
  • Date: 2008-10-13 16:50:30 UTC
  • mfrom: (509.1.4 codestyle)
  • Revision ID: brian@tangent.org-20081013165030-642le57opeglwfdw
Merge from Monty

Show diffs side-by-side

added added

removed removed

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