summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge dator6.(none):/home/mikael/mysql_clones/clean-mysql-5.1mikael@dator6.(none)2007-06-131-27/+17
|\ | | | | | | into dator6.(none):/home/mikael/mysql_clones/bug18198
| * BUG#18198mikael@dator3.(none)2007-04-201-0/+1
| | | | | | | | Added new test cases, fixed bugs in relation to those
| * Reapplied patch for bug18198mikron@mikael-ronstr-ms-dator.local2007-04-041-27/+16
| |
* | WL#3817: Simplify string / memory area types and make things more consistent ↵monty@mysql.com/narttu.mysql.fi2007-05-101-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (first part) The following type conversions was done: - Changed byte to uchar - Changed gptr to uchar* - Change my_string to char * - Change my_size_t to size_t - Change size_s to size_t Removed declaration of byte, gptr, my_string, my_size_t and size_s. Following function parameter changes was done: - All string functions in mysys/strings was changed to use size_t instead of uint for string lengths. - All read()/write() functions changed to use size_t (including vio). - All protocoll functions changed to use size_t instead of uint - Functions that used a pointer to a string length was changed to use size_t* - Changed malloc(), free() and related functions from using gptr to use void * as this requires fewer casts in the code and is more in line with how the standard functions work. - Added extra length argument to dirname_part() to return the length of the created string. - Changed (at least) following functions to take uchar* as argument: - db_dump() - my_net_write() - net_write_command() - net_store_data() - DBUG_DUMP() - decimal2bin() & bin2decimal() - Changed my_compress() and my_uncompress() to use size_t. Changed one argument to my_uncompress() from a pointer to a value as we only return one value (makes function easier to use). - Changed type of 'pack_data' argument to packfrm() to avoid casts. - Changed in readfrm() and writefrom(), ha_discover and handler::discover() the type for argument 'frmdata' to uchar** to avoid casts. - Changed most Field functions to use uchar* instead of char* (reduced a lot of casts). - Changed field->val_xxx(xxx, new_ptr) to take const pointers. Other changes: - Removed a lot of not needed casts - Added a few new cast required by other changes - Added some cast to my_multi_malloc() arguments for safety (as string lengths needs to be uint, not size_t). - Fixed all calls to hash-get-key functions to use size_t*. (Needed to be done explicitely as this conflict was often hided by casting the function to hash_get_key). - Changed some buffers to memory regions to uchar* to avoid casts. - Changed some string lengths from uint to size_t. - Changed field->ptr to be uchar* instead of char*. This allowed us to get rid of a lot of casts. - Some changes from true -> TRUE, false -> FALSE, unsigned char -> uchar - Include zlib.h in some files as we needed declaration of crc32() - Changed MY_FILE_ERROR to be (size_t) -1. - Changed many variables to hold the result of my_read() / my_write() to be size_t. This was needed to properly detect errors (which are returned as (size_t) -1). - Removed some very old VMS code - Changed packfrm()/unpackfrm() to not be depending on uint size (portability fix) - Removed windows specific code to restore cursor position as this causes slowdown on windows and we should not mix read() and pread() calls anyway as this is not thread safe. Updated function comment to reflect this. Changed function that depended on original behavior of my_pwrite() to itself restore the cursor position (one such case). - Added some missing checking of return value of malloc(). - Changed definition of MOD_PAD_CHAR_TO_FULL_LENGTH to avoid 'long' overflow. - Changed type of table_def::m_size from my_size_t to ulong to reflect that m_size is the number of elements in the array, not a string/memory length. - Moved THD::max_row_length() to table.cc (as it's not depending on THD). Inlined max_row_length_blob() into this function. - More function comments - Fixed some compiler warnings when compiled without partitions. - Removed setting of LEX_STRING() arguments in declaration (portability fix). - Some trivial indentation/variable name changes. - Some trivial code simplifications: - Replaced some calls to alloc_root + memcpy to use strmake_root()/strdup_root(). - Changed some calls from memdup() to strmake() (Safety fix) - Simpler loops in client-simple.c
* | aftermerging fixholyfoot/hf@mysql.com/hfmain.(none)2007-04-051-2/+8
| |
* | Merge mysql.com:/home/hf/work/27359/my51-27359holyfoot/hf@hfmain.(none)2007-04-041-1/+5
|\ \ | | | | | | | | | into mysql.com:/home/hf/work/my_mrg/my51-my_mrg
| * | Bug #27359 Partition: memory allocation error messageholyfoot/hf@mysql.com/hfmain.(none)2007-03-271-1/+5
| |/ | | | | | | | | if ndbcluster's nodes aren't set, the handlerton can return zero partitions in the partitioned table. So we should check for that.
* | Merge mysql.com:/home/hf/work/24633/my51-24633holyfoot/hf@hfmain.(none)2007-04-041-0/+2
|\ \ | | | | | | | | | into mysql.com:/home/hf/work/my_mrg/my51-my_mrg
| * | Bug #24633 SQL MODE "NO_DIR_IN_CREATE" does not work withholyfoot/hf@mysql.com/hfmain.(none)2007-03-111-0/+2
| |/ | | | | | | | | | | partitioned tables" We have to ignore 'data directory' and 'index directory' parameters if NO_DIR_IN_CREATE set.
* | Bug #23675 Partitions: possible security breach via alterholyfoot/hf@mysql.com/hfmain.(none)2007-04-041-7/+19
|/ | | | | now we return different error message if user doesn't have SELECT grants
* After merge fixesmonty@mysql.com/narttu.mysql.fi2007-01-291-1/+0
| | | | | | | Removed a lot of compiler warnings Removed not used variables, functions and labels Initialize some variables that could be used unitialized (fatal bugs) %ll -> %l
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-271-2/+1
| | | | Changed header to GPL version 2 only
* Fixed compiler warnings (Mostly VC++):monty@mysql.com/narttu.mysql.fi2006-11-301-4/+2
| | | | | | | | | | | | | - Removed not used variables - Changed some ulong parameters/variables to ulonglong (possible serious bug) - Added casts to get rid of safe assignment from longlong to long (and similar) - Added casts to function parameters - Fixed signed/unsigned compares - Added some constructores to structures - Removed some not portable constructs Better fix for bug Bug #21428 "skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown" (Added new parameter to net_clear() to define when we want the communication buffer to be emptied)
* Fixed a lot of compiler warnings (Mainly in mysqld and instance manager)monty@mysql.com/nosik.monty.fi2006-11-011-1/+5
| | | | | | | Fixed some possible fatal wrong arguments to printf() style functions Initialized some not initialized variables Fixed bug in stored procedure and continue handlers (Fixes Bug#22150)
* Merge dator5.(none):/home/pappa/clean-mysql-5.1mikael/pappa@dator5.(none)2006-10-161-13/+188
|\ | | | | | | into dator5.(none):/home/pappa/bug18198
| * BUG#18198: Partition function handlingmikael/pappa@dator5.(none)2006-10-021-1/+1
| | | | | | | | Fixes of after review fixes
| * BUG#18198: Partition function handlingmikael/pappa@dator5.(none)2006-09-301-4/+5
| | | | | | | | Review fixes
| * Final step of Take 7 on review fixes of thismikael/pappa@dator5.(none)2006-09-261-1/+167
| | | | | | | | fairly complex bug
| * BUG#18198mikael/pappa@dator5.(none)2006-09-261-15/+7
| | | | | | | | Fixed interface to check_partition_func_processor
| * Merge dator5.(none):/home/pappa/clean-mysql-5.1mikael/pappa@dator5.(none)2006-09-261-11/+27
| |\ | | | | | | | | | into dator5.(none):/home/pappa/bug18198
| | * BUG#18198: Partition function handlingmikael/pappa@dator5.(none)2006-07-211-6/+7
| | | | | | | | | | | | Review fixes
| | * Merge mronstrom@bk-internal.mysql.com:/home/bk/bugs/bug18198mikael/pappa@dator5.(none)2006-07-121-11/+26
| | |\ | | | | | | | | | | | | into dator5.(none):/home/pappa/bug18198
| | | * BUG#18198: Fixmikael/pappa@dator5.(none)2006-07-121-2/+0
| | | |
| | | * BUG#18198: Less flexibility in defining partition functionsmikael@dator5.(none)2006-06-231-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed test for functions if they are supported. 3 categories: 1) Fully supported 2) Supported for single character collations 3) Supported for binary collations
* | | | This patch updates to remove most global hton needs. Cleans up wrong message ↵brian@zim.(none)2006-09-301-2/+1
| | | | | | | | | | | | | | | | in partition.
* | | | This patch adds handlerton passing to functions. NDB and Innodb still ↵brian@zim.(none)2006-09-301-2/+1
|/ / / | | | | | | | | | | | | | | | require a global hanlderton in the main code due to the nature of the sql_cache call back function (should be solveable... another patch). Partitioning now has a flag to allow disabling of engines from being compatible with partitioning. Cleaned up heap naming convention on panic call.
* | | This changes the order of the universe, black is now the new white.brian@zim.(none)2006-09-151-3/+3
|/ / | | | | | | In practice this means that handlerton is now created by the server and is passed to the engine. Plugin startups can now also control how plugins are inited (and can optionally pass values). Bit more flexibility to those who want to write plugin interfaces to the database.
* | partition functions to pass create_info, not only max_rowstomas@poseidon.ndb.mysql.com2006-06-271-13/+14
|/
* merge updatemikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-141-0/+24
|
* Merge c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19801mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-141-21/+48
|\ | | | | | | into c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug16002
| * Merge ↵mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-141-37/+66
| |\ | | | | | | | | | | | | | | | c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/clean-mysql-5.1 into c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug16002
| | * BUG#16002: More review fixesmikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-061-45/+31
| | |
| | * BUG#16002: Handle unsigned integer partition functionsmikael@c-7308e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-051-8/+6
| | |
| | * Merge mronstrom@bk-internal.mysql.com:/home/bk/bugs/bug16002mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-211-35/+80
| | |\ | | | | | | | | | | | | into c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug16002
| | | * BUG#16002: Make partition functions that are unsigned work properlymikael@c-4909e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-171-35/+80
| | | |
* | | | Merge ↵mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-141-18/+22
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/clean-mysql-5.1 into c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19801
| * | | BUG#19801: Problems with single partition with only NULL allowed in LIST ↵mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-141-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | partitioning After review fix
| * | | BUG#19801: Valgrind error in check_list_constantsmikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-05-301-18/+23
| | | | | | | | | | | | | | | | Needed some special handling of the case when no_list_values == 0
* | | | Merge ↵mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-131-2/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/clean-mysql-5.1 into c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19307
| * | | | BUG#19307: CSV engine can cause crashes in partitioned tables (due to its ↵mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-131-2/+4
| |/ / / | | | | | | | | | | | | conversion of NULLs to 0)
* | | | After merge fixesmonty@mysql.com2006-06-051-5/+5
| | | | | | | | | | | | | | | | Remove compiler warnings
* | | | Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-newmikael@c-3d08e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-06-031-10/+10
|\ \ \ \ | | | | | | | | | | | | | | | into c-3d08e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19067
| * \ \ \ Merge ↵mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-05-111-10/+10
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/clean-mysql-5.1-new into c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19067
| | * | | | BUG#19067: Crash when ALTER TABLE for default subpartitioned tablemikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-211-3/+3
| | | | | |
| | * | | | Merge c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug18962mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-201-12/+36
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | into c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug19067
| | * | | | | BUG#19067: Alter table add partition for subpartitioned table crashesmikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-201-7/+7
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | Changed variable name for improved clarity and debugging possibilities Fixed bug in not assigning subpart_type
* | | | | | Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-newmikael@c-3d08e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-05-311-0/+12
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | into c-3d08e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug18198
| * | | | | Merge mronstrom@bk-internal.mysql.com:/home/bk/bugs/bug18198mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-211-0/+12
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | into c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug18198
| * | | | | BUG#18198: Errors due to too much allowed in partition functionsmikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se2006-04-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Added functions to enable/disable allowed/disallowed partition functions
| * | | | | BUG#18198: Too much expressiveness in partition function allowedmikron@mikael-ronstr-ms-dator.local2006-04-051-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fixed the error check