~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Monty Taylor
  • Date: 2008-11-12 17:42:40 UTC
  • mto: This revision was merged to the branch mainline in revision 584.
  • Revision ID: monty@inaugust.com-20081112174240-l2vg9lnzbmjc3uyk
More header cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#ifndef DRIZZLE_SERVER_DEFINITIONS_H
27
27
#define DRIZZLE_SERVER_DEFINITIONS_H
28
28
 
29
 
#if defined(__cplusplus)
30
 
#include CSTDINT_H
31
 
#else
32
29
#include <stdint.h>
33
 
#endif
34
30
 
35
31
#ifndef NO_ALARM_LOOP
36
32
#define NO_ALARM_LOOP           /* lib5 and popen can't use alarm */
885
881
typedef int myf;
886
882
#define MYF(v)          (myf) (v)
887
883
 
 
884
/*
 
885
  When a command is added here, be sure it's also added in mysqld.cc
 
886
  in "struct show_var_st status_vars[]= {" ...
 
887
 
 
888
  If the command returns a result set or is not allowed in stored
 
889
  functions or triggers, please also make sure that
 
890
  sp_get_flags_for_command (sp_head.cc) returns proper flags for the
 
891
  added SQLCOM_.
 
892
*/
 
893
 
 
894
enum enum_sql_command {
 
895
  SQLCOM_SELECT, SQLCOM_CREATE_TABLE, SQLCOM_CREATE_INDEX, SQLCOM_ALTER_TABLE,
 
896
  SQLCOM_UPDATE, SQLCOM_INSERT, SQLCOM_INSERT_SELECT,
 
897
  SQLCOM_DELETE, SQLCOM_TRUNCATE, SQLCOM_DROP_TABLE, SQLCOM_DROP_INDEX,
 
898
  SQLCOM_SHOW_DATABASES, SQLCOM_SHOW_TABLES, SQLCOM_SHOW_FIELDS,
 
899
  SQLCOM_SHOW_KEYS, SQLCOM_SHOW_VARIABLES, SQLCOM_SHOW_STATUS,
 
900
  SQLCOM_SHOW_ENGINE_LOGS, SQLCOM_SHOW_ENGINE_STATUS, SQLCOM_SHOW_ENGINE_MUTEX,
 
901
  SQLCOM_SHOW_PROCESSLIST, SQLCOM_SHOW_MASTER_STAT, SQLCOM_SHOW_SLAVE_STAT,
 
902
  SQLCOM_SHOW_CREATE,
 
903
  SQLCOM_SHOW_CREATE_DB,
 
904
  SQLCOM_SHOW_TABLE_STATUS,
 
905
  SQLCOM_LOAD,SQLCOM_SET_OPTION,SQLCOM_LOCK_TABLES,SQLCOM_UNLOCK_TABLES,
 
906
  SQLCOM_CHANGE_DB, SQLCOM_CREATE_DB, SQLCOM_DROP_DB, SQLCOM_ALTER_DB,
 
907
  SQLCOM_REPAIR, SQLCOM_REPLACE, SQLCOM_REPLACE_SELECT,
 
908
  SQLCOM_OPTIMIZE, SQLCOM_CHECK,
 
909
  SQLCOM_ASSIGN_TO_KEYCACHE,
 
910
  SQLCOM_FLUSH, SQLCOM_KILL, SQLCOM_ANALYZE,
 
911
  SQLCOM_ROLLBACK, SQLCOM_ROLLBACK_TO_SAVEPOINT,
 
912
  SQLCOM_COMMIT, SQLCOM_SAVEPOINT, SQLCOM_RELEASE_SAVEPOINT,
 
913
  SQLCOM_SLAVE_START, SQLCOM_SLAVE_STOP,
 
914
  SQLCOM_BEGIN, SQLCOM_CHANGE_MASTER,
 
915
  SQLCOM_RENAME_TABLE,  
 
916
  SQLCOM_RESET, SQLCOM_PURGE, SQLCOM_PURGE_BEFORE, SQLCOM_SHOW_BINLOGS,
 
917
  SQLCOM_SHOW_OPEN_TABLES,
 
918
  SQLCOM_DELETE_MULTI, SQLCOM_UPDATE_MULTI,
 
919
  SQLCOM_SHOW_WARNS,
 
920
  SQLCOM_EMPTY_QUERY,
 
921
  SQLCOM_SHOW_ERRORS,
 
922
  SQLCOM_CHECKSUM,
 
923
  SQLCOM_BINLOG_BASE64_EVENT,
 
924
  SQLCOM_SHOW_PLUGINS,
 
925
  /*
 
926
    When a command is added here, be sure it's also added in mysqld.cc
 
927
    in "struct show_var_st status_vars[]= {" ...
 
928
  */
 
929
  /* This should be the last !!! */
 
930
  SQLCOM_END
 
931
};
 
932
 
 
933
enum enum_duplicates { DUP_ERROR, DUP_REPLACE, DUP_UPDATE };
 
934
 
 
935
enum release_type { RELEASE_NORMAL, RELEASE_WAIT_FOR_DROP };
 
936
 
888
937
#endif /* DRIZZLE_SERVER_DEFINITIONS_H */
 
938