mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Added GPL copyright text my_vle.h, rpl_utility.h, my_vle.c, base64-t.c, rpl_utility.cc: Changed copyright header formatting some plugin_example.c, daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header CMakeLists.txt: Added GPL copyright text client/CMakeLists.txt: Added GPL copyright text dbug/CMakeLists.txt: Added GPL copyright text extra/CMakeLists.txt: Added GPL copyright text extra/yassl/CMakeLists.txt: Added GPL copyright text extra/yassl/taocrypt/CMakeLists.txt: Added GPL copyright text libmysql/CMakeLists.txt: Added GPL copyright text libmysqld/CMakeLists.txt: Added GPL copyright text libmysqld/examples/CMakeLists.txt: Added GPL copyright text mysys/CMakeLists.txt: Added GPL copyright text regex/CMakeLists.txt: Added GPL copyright text server-tools/instance-manager/CMakeLists.txt: Added GPL copyright text sql/CMakeLists.txt: Added GPL copyright text storage/archive/CMakeLists.txt: Added GPL copyright text storage/blackhole/CMakeLists.txt: Added GPL copyright text storage/csv/CMakeLists.txt: Added GPL copyright text storage/example/CMakeLists.txt: Added GPL copyright text storage/federated/CMakeLists.txt: Added GPL copyright text storage/heap/CMakeLists.txt: Added GPL copyright text storage/innobase/CMakeLists.txt: Added GPL copyright text storage/myisam/CMakeLists.txt: Added GPL copyright text storage/myisammrg/CMakeLists.txt: Added GPL copyright text strings/CMakeLists.txt: Added GPL copyright text tests/CMakeLists.txt: Added GPL copyright text vio/CMakeLists.txt: Added GPL copyright text zlib/CMakeLists.txt: Added GPL copyright text include/my_vle.h: Changed copyright header formatting some mysys/my_vle.c: Changed copyright header formatting some plugin/daemon_example/daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header plugin/fulltext/plugin_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header plugin/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/authors.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/contributors.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/item_xmlfunc.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/partition_element.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/partition_info.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_injector.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_injector.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/sql_binlog.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/sql_servers.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/archive/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/blackhole/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/csv/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/example/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/federated/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header win/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_utility.cc: Changed copyright header formatting some sql/rpl_utility.h: Changed copyright header formatting some unittest/mysys/base64-t.c: Changed copyright header formatting some include/my_uctype.h: Added GPL copyright text plugin/daemon_example/Makefile.am: Added GPL copyright text plugin/fulltext/Makefile.am: Added GPL copyright text scripts/make_win_bin_dist: Added GPL copyright text server-tools/instance-manager/user_management_commands.cc: Added GPL copyright text sql/sql_builtin.cc.in: Added GPL copyright text sql/sql_show.h: Added GPL copyright text storage/archive/archive_test.c: Added GPL copyright text storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp: Added GPL copyright text storage/ndb/src/kernel/blocks/diskpage.cpp: Added GPL copyright text storage/ndb/src/kernel/vm/Rope.cpp: Added GPL copyright text storage/ndb/src/mgmsrv/ParamInfo.hpp: Added GPL copyright text strings/uctypedump.c: Added GPL copyright text unittest/Makefile.am: Added GPL copyright text unittest/examples/Makefile.am: Added GPL copyright text unittest/examples/core-t.c: Added GPL copyright text unittest/examples/no_plan-t.c: Added GPL copyright text unittest/examples/simple-t.c: Added GPL copyright text unittest/examples/skip-t.c: Added GPL copyright text unittest/examples/skip_all-t.c: Added GPL copyright text unittest/examples/todo-t.c: Added GPL copyright text unittest/mysys/Makefile.am: Added GPL copyright text unittest/mytap/Makefile.am: Added GPL copyright text unittest/mytap/t/Makefile.am: Added GPL copyright text unittest/mytap/t/basic-t.c: Added GPL copyright text unittest/unit.pl: Added GPL copyright text win/build-vs71.bat: Added GPL copyright text win/build-vs8.bat: Added GPL copyright text win/configure.js: Added GPL copyright text
		
			
				
	
	
		
			100 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			100 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
/* Copyright (C) 2006 MySQL AB
 | 
						|
 | 
						|
   This program is free software; you can redistribute it and/or modify
 | 
						|
   it under the terms of the GNU General Public License as published by
 | 
						|
   the Free Software Foundation; version 2 of the License.
 | 
						|
 | 
						|
   This program is distributed in the hope that it will be useful,
 | 
						|
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
   GNU General Public License for more details.
 | 
						|
 | 
						|
   You should have received a copy of the GNU General Public License
 | 
						|
   along with this program; if not, write to the Free Software
 | 
						|
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 | 
						|
 | 
						|
/**
 | 
						|
 * An enum and a struct to handle partitioning and subpartitioning.
 | 
						|
 */
 | 
						|
enum partition_type {
 | 
						|
  NOT_A_PARTITION= 0,
 | 
						|
  RANGE_PARTITION,
 | 
						|
  HASH_PARTITION,
 | 
						|
  LIST_PARTITION
 | 
						|
};
 | 
						|
 | 
						|
enum partition_state {
 | 
						|
  PART_NORMAL= 0,
 | 
						|
  PART_IS_DROPPED= 1,
 | 
						|
  PART_TO_BE_DROPPED= 2,
 | 
						|
  PART_TO_BE_ADDED= 3,
 | 
						|
  PART_TO_BE_REORGED= 4,
 | 
						|
  PART_REORGED_DROPPED= 5,
 | 
						|
  PART_CHANGED= 6,
 | 
						|
  PART_IS_CHANGED= 7,
 | 
						|
  PART_IS_ADDED= 8
 | 
						|
};
 | 
						|
 | 
						|
/*
 | 
						|
  This struct is used to contain the value of an element
 | 
						|
  in the VALUES IN struct. It needs to keep knowledge of
 | 
						|
  whether it is a signed/unsigned value and whether it is
 | 
						|
  NULL or not.
 | 
						|
*/
 | 
						|
 | 
						|
typedef struct p_elem_val
 | 
						|
{
 | 
						|
  longlong value;
 | 
						|
  bool null_value;
 | 
						|
  bool unsigned_flag;
 | 
						|
} part_elem_value;
 | 
						|
 | 
						|
struct st_ddl_log_memory_entry;
 | 
						|
 | 
						|
class partition_element :public Sql_alloc {
 | 
						|
public:
 | 
						|
  List<partition_element> subpartitions;
 | 
						|
  List<part_elem_value> list_val_list;
 | 
						|
  ha_rows part_max_rows;
 | 
						|
  ha_rows part_min_rows;
 | 
						|
  longlong range_value;
 | 
						|
  char *partition_name;
 | 
						|
  char *tablespace_name;
 | 
						|
  struct st_ddl_log_memory_entry *log_entry;
 | 
						|
  char* part_comment;
 | 
						|
  char* data_file_name;
 | 
						|
  char* index_file_name;
 | 
						|
  handlerton *engine_type;
 | 
						|
  enum partition_state part_state;
 | 
						|
  uint16 nodegroup_id;
 | 
						|
  bool has_null_value;
 | 
						|
  bool signed_flag;/* Indicate whether this partition uses signed constants */
 | 
						|
  bool max_value;  /* Indicate whether this partition uses MAXVALUE */
 | 
						|
 | 
						|
  partition_element()
 | 
						|
  : part_max_rows(0), part_min_rows(0), range_value(0),
 | 
						|
    partition_name(NULL), tablespace_name(NULL),
 | 
						|
    log_entry(NULL), part_comment(NULL),
 | 
						|
    data_file_name(NULL), index_file_name(NULL),
 | 
						|
    engine_type(NULL), part_state(PART_NORMAL),
 | 
						|
    nodegroup_id(UNDEF_NODEGROUP), has_null_value(FALSE),
 | 
						|
    signed_flag(FALSE), max_value(FALSE)
 | 
						|
  {
 | 
						|
  }
 | 
						|
  partition_element(partition_element *part_elem)
 | 
						|
  : part_max_rows(part_elem->part_max_rows),
 | 
						|
    part_min_rows(part_elem->part_min_rows),
 | 
						|
    partition_name(NULL),
 | 
						|
    tablespace_name(part_elem->tablespace_name),
 | 
						|
    range_value(0), part_comment(part_elem->part_comment),
 | 
						|
    data_file_name(part_elem->data_file_name),
 | 
						|
    index_file_name(part_elem->index_file_name),
 | 
						|
    engine_type(part_elem->engine_type),
 | 
						|
    part_state(part_elem->part_state),
 | 
						|
    nodegroup_id(part_elem->nodegroup_id),
 | 
						|
    has_null_value(FALSE)
 | 
						|
  {
 | 
						|
  }
 | 
						|
  ~partition_element() {}
 | 
						|
};
 |