From e3859a81448b481ad33518455d20fb76acbde84d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Aug 2013 09:08:49 +0200 Subject: Raise version number after cloning 5.5.34 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 26414adb678..3a42bb0f600 100644 --- a/VERSION +++ b/VERSION @@ -1,4 +1,4 @@ MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 -MYSQL_VERSION_PATCH=34 +MYSQL_VERSION_PATCH=35 MYSQL_VERSION_EXTRA= -- cgit v1.2.1 From 277697b81f5a3856a0fc7c7282810590cf0e5346 Mon Sep 17 00:00:00 2001 From: Neeraj Bisht Date: Wed, 28 Aug 2013 14:54:53 +0530 Subject: Bug#16346241 - SERVER CRASH IN ITEM_PARAM::QUERY_VAL_STR Problem:- Second execution of prepared statement for query with parameter in limit clause, causes an assert when using connectors (e.g., Connector C). Analysis:- In prepared statement, LIMIT parameters can be specified using '?' markers. Value for the parameter can be supplied while executing the prepared statement. Passing string, float or double values for LIMIT clause works well from command-line client. That's because, while setting the LIMIT parameter value from a user-variable, the value is converted to integer value. However, when prepared statement is executed from other interfaces as J connectors, or C applications etc, the value for the parameters are sent to the server with execute command. Each item in command has value and the data TYPE. So, while setting parameter values from this log, value is set to all the parameters with the same data type as passed. Here, we have the logic to convert the value to change the state and item_type if it is part of LIMIT parameter and its item_type is not INT. But when we reset this parameter we save the item_type but change state. So on second execution we have old item_type but our state has been changed, which make us to use string type variable in Item_param::query_str_val(). This cause an assert. Fix: Instead of checking the item_type of the parameter, check for the state of the parameter. As state value are reset everytime we execute the statement. --- sql/sql_prepare.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 74279c5539d..48d23cd5d21 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -877,7 +877,7 @@ static bool insert_params_with_log(Prepared_statement *stmt, uchar *null_array, if (param->state == Item_param::NO_VALUE) DBUG_RETURN(1); - if (param->limit_clause_param && param->item_type != Item::INT_ITEM) + if (param->limit_clause_param && param->state != Item_param::INT_VALUE) { param->set_int(param->val_int(), MY_INT64_NUM_DECIMAL_DIGITS); param->item_type= Item::INT_ITEM; -- cgit v1.2.1 From 881e61db72e568ef0b55bc36d710c650abccfa85 Mon Sep 17 00:00:00 2001 From: Raghav Kapoor Date: Wed, 28 Aug 2013 15:17:46 +0530 Subject: BUG#17294150-POTENTIAL CRASH DUE TO BUFFER OVERRUN IN SSL ERROR HANDLING CODE BACKGROUND: There can be a potential crash due to buffer overrun in SSL error handling code due to missing comma in ssl_error_string[] array in viosslfactories.c. ANALYSIS: Found by code Inspection. FIX: Added the missing comma in SSL error handling code in ssl_error_string[] array in viosslfactories.c. --- vio/viosslfactories.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c index 5d31d1dde56..9f689bf7c86 100644 --- a/vio/viosslfactories.c +++ b/vio/viosslfactories.c @@ -80,7 +80,7 @@ ssl_error_string[] = "No error", "Unable to get certificate", "Unable to get private key", - "Private key does not match the certificate public key" + "Private key does not match the certificate public key", "SSL_CTX_set_default_verify_paths failed", "Failed to set ciphers to use", "SSL_CTX_new failed" -- cgit v1.2.1 From 095b6645b0eba758ab258ca9587da7e0edd34f16 Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Thu, 29 Aug 2013 14:42:55 +0200 Subject: Fix for Bug#17377159, ignore mysqld_safe.pid file created by mysqld_safe script --- support-files/mysql.spec.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 2d8aa78464b..bcd66b96c2b 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -643,7 +643,7 @@ then fi if [ -z "$PID_FILE_PATT" ] then - PID_FILE_PATT="$mysql_datadir/*.pid" + PID_FILE_PATT=`ls $mysql_datadir/*.pid 2>/dev/null | grep -v "mysqld_safe.pid"` fi # Check if we can safely upgrade. An upgrade is only safe if it's from one @@ -1194,6 +1194,9 @@ fi # merging BK trees) ############################################################################## %changelog +* Thu Aug 29 2013 Balasubramanian Kandasamy +- Added logic to ignore mysqld_safe.pid file created by mysqld_safe script + * Tue Sep 11 2012 Joerg Bruehe - Disable "maintainer mode" in debug builds, there is a cast ulonglong -> int -- cgit v1.2.1 From 9e49de009c2ce2523c3c50effb049fc98825e71c Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Fri, 30 Aug 2013 17:14:46 +0200 Subject: Fix to ignore mysqld_safe.pid --- support-files/mysql.spec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index bcd66b96c2b..ea6eddd7279 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -643,7 +643,7 @@ then fi if [ -z "$PID_FILE_PATT" ] then - PID_FILE_PATT=`ls $mysql_datadir/*.pid 2>/dev/null | grep -v "mysqld_safe.pid"` + PID_FILE_PATT="$mysql_datadir/*.pid" fi # Check if we can safely upgrade. An upgrade is only safe if it's from one @@ -716,7 +716,7 @@ fi # We assume that if there is exactly one ".pid" file, # it contains the valid PID of a running MySQL server. -NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | wc -l` +NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | grep -v "mysqld_safe.pid" | wc -l` case $NR_PID_FILES in 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server 1 ) SERVER_TO_START='true' ;; -- cgit v1.2.1 From 28959a5661d14de784ab8b369613511727200811 Mon Sep 17 00:00:00 2001 From: Igor Solodovnikov Date: Fri, 30 Aug 2013 20:05:37 +0300 Subject: Bug #17297012 MEMORY LEAK IN MYSQL_OPTIONS WHILE CALLING WITH OPTION MYSQL_SET_CLIENT_IP Memory Leak in mysql_options() was caused by missing call to my_free() in MYSQL_SET_CLIENT_IP branch. Fixed by adding my_free() to cleanup mysql->options.client_ip value before assigning new value. --- sql-common/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql-common/client.c b/sql-common/client.c index 51911d913c7..7ee0eabe0ef 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 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 @@ -3167,6 +3167,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg) mysql->options.methods_to_use= option; break; case MYSQL_SET_CLIENT_IP: + my_free(mysql->options.client_ip,MYF(MY_ALLOW_ZERO_PTR)); mysql->options.client_ip= my_strdup(arg, MYF(MY_WME)); break; case MYSQL_SECURE_AUTH: -- cgit v1.2.1 From ee15c1fd5fcbbed3293d564c29e672de02b55b65 Mon Sep 17 00:00:00 2001 From: Igor Solodovnikov Date: Fri, 30 Aug 2013 20:22:09 +0300 Subject: Bug #17297012 MEMORY LEAK IN MYSQL_OPTIONS WHILE CALLING WITH OPTION MYSQL_SET_CLIENT_IP Memory Leak in mysql_options() was caused by missing call to my_free() in MYSQL_SET_CLIENT_IP branch. Fixed by adding my_free() to cleanup mysql->options.client_ip value before assigning new value. --- sql-common/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sql-common/client.c b/sql-common/client.c index 1e98eadda28..16a61d7f53d 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -4151,6 +4151,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg) mysql->options.methods_to_use= option; break; case MYSQL_SET_CLIENT_IP: + my_free(mysql->options.client_ip); mysql->options.client_ip= my_strdup(arg, MYF(MY_WME)); break; case MYSQL_SECURE_AUTH: -- cgit v1.2.1 -- cgit v1.2.1 From a752639714e15f3843b0570c0f2ff95c3cf3df0e Mon Sep 17 00:00:00 2001 From: Arun Kuruvila Date: Mon, 2 Sep 2013 14:53:45 +0530 Subject: Bug #17168602 MYSQL_PLUGIN REMOVES NON-DIRECTORY TYPE FILES SPECIFIED WITH THE BASEDIR OPTION Description: The mysql_plugin client attempts to remove any filename specified to the --basedir option. The problem is that if the filename does not end with a slash, it will attempt to unlink it, which succeeds for files, but not for directories. Analysis: When we are starting mysql_plugin with basedir option and if we are giving path of a file as basedir, it deletes that file. It was because it uses a function my_delete which unlinks the file path given. Fix: As a fix we replace that line using another function my_free, which will only free the pointer which is having that file path. --- client/mysql_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c index 72bab3ad528..7fbfeb9e9a6 100644 --- a/client/mysql_plugin.c +++ b/client/mysql_plugin.c @@ -856,7 +856,7 @@ static int process_options(int argc, char *argv[], char *operation) strncat(buff, FN_DIRSEP, sizeof(buff) - strlen(buff) - 1); #endif buff[sizeof(buff) - 1]= 0; - my_delete(opt_basedir, MYF(0)); + my_free(opt_basedir); opt_basedir= my_strdup(buff, MYF(MY_FAE)); } } -- cgit v1.2.1 From 0daae54fb541e806b521e8b6db9d14d83af48136 Mon Sep 17 00:00:00 2001 From: Hery Ramilison Date: Tue, 3 Sep 2013 18:37:46 +0200 Subject: Fixing sles11 build that /usr/lib/mysql/plugin is not owned by a package --- support-files/mysql.spec.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index ea6eddd7279..9560eeea53a 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -1025,6 +1025,7 @@ fi %attr(755, root, root) %{_sbindir}/mysqld-debug %attr(755, root, root) %{_sbindir}/mysqlmanager %attr(755, root, root) %{_sbindir}/rcmysql +%attr(755, root, root) %{_libdir}/mysql/plugin %if %{INNODB_BUILD} %if %{WITH_INNODB_PLUGIN} %attr(755, root, root) %{_libdir}/mysql/plugin/ha_innodb_plugin.so* -- cgit v1.2.1 From e203951cb1e42404ed62abbfe7eb6e4cce53218c Mon Sep 17 00:00:00 2001 From: Neeraj Bisht Date: Wed, 4 Sep 2013 10:45:55 +0530 Subject: Bug#17222452 - SELECT COUNT(DISTINCT A,B) INCORRECTLY COUNTS ROWS CONTAINING NULL Problem:- In MySQL, We can obtain the number of distinct expression combinations that do not contain NULL by giving a list of expressions in COUNT(DISTINCT). However rows with NULL values are incorrectly included in the count when loose index scan is used. Analysis:- In case of loose index scan, we check whether the field is null or not and increase the count in Item_sum_count::add(). But there we are checking for the first field in COUNT(DISTINCT), not for every field. This is causing an incorrect result. Solution:- Check all field in Item_sum_count::add(), whether there values are null or not. Then only increment the count. ****** Bug#17222452 - SELECT COUNT(DISTINCT A,B) INCORRECTLY COUNTS ROWS CONTAINING NULL Problem:- In MySQL, We can obtain the number of distinct expression combinations that do not contain NULL by giving a list of expressions in COUNT(DISTINCT). However rows with NULL values are incorrectly included in the count when loose index scan is used. Analysis:- In case of loose index scan, we check whether the field is null or not and increase the count in Item_sum_count::add(). But there we are checking for the first field in COUNT(DISTINCT), not for every field. This is causing an incorrect result. Solution:- Check all field in Item_sum_count::add(), whether there values are null or not. Then only increment the count. --- sql/item_sum.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sql/item_sum.cc b/sql/item_sum.cc index e194907fa06..3fbbc1b811a 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -1496,8 +1496,12 @@ void Item_sum_count::clear() bool Item_sum_count::add() { - if (!args[0]->maybe_null || !args[0]->is_null()) - count++; + for (uint i=0; imaybe_null && args[i]->is_null()) + return 0; + } + count++; return 0; } -- cgit v1.2.1 From 14976fbe8a5d9e88cba6474808b8b59790e84c3e Mon Sep 17 00:00:00 2001 From: Nisha Gopalakrishnan Date: Thu, 5 Sep 2013 13:40:27 +0530 Subject: BUG#16032946 - PLEASE GIVE A MESSAGE FOR "THREAD_CONCURRENCY DOESN'T DO WHAT YOU EXPECT" Fix info: -------- Backport of the deprecation bug fix (WL#5265) for global variable 'THREAD_CONCURRENCY' from mysql-5.6 to mysql-5.5 Note: With this backport, certain additional deprecation warnings would be reported under error conditions while setting the global/session variables. --- sql/set_var.cc | 2 +- sql/set_var.h | 3 ++- sql/sys_vars.cc | 10 +++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sql/set_var.cc b/sql/set_var.cc index 75387b974f1..82ea8298a66 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -217,7 +217,6 @@ uchar *sys_var::global_value_ptr(THD *thd, LEX_STRING *base) bool sys_var::check(THD *thd, set_var *var) { - do_deprecated_warning(thd); if ((var->value && do_check(thd, var)) || (on_check && on_check(this, thd, var))) { @@ -593,6 +592,7 @@ err: int set_var::check(THD *thd) { + var->do_deprecated_warning(thd); if (var->is_readonly()) { my_error(ER_INCORRECT_GLOBAL_LOCAL_VAR, MYF(0), var->name.str, "read only"); diff --git a/sql/set_var.h b/sql/set_var.h index 01e3be11621..60164ba0363 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -143,6 +143,7 @@ public: return (option.id != -1) && (m_parse_flag & parse_flags) && insert_dynamic(array, (uchar*)&option); } + void do_deprecated_warning(THD *thd); private: virtual bool do_check(THD *thd, set_var *var) = 0; @@ -156,7 +157,7 @@ private: virtual void global_save_default(THD *thd, set_var *var) = 0; virtual bool session_update(THD *thd, set_var *var) = 0; virtual bool global_update(THD *thd, set_var *var) = 0; - void do_deprecated_warning(THD *thd); + protected: /** A pointer to a value of the variable for SHOW. diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 1d0f9691629..63f478be5f0 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. 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 @@ -1797,9 +1797,13 @@ static Sys_var_charptr Sys_socket( static Sys_var_ulong Sys_thread_concurrency( "thread_concurrency", "Permits the application to give the threads system a hint for " - "the desired number of threads that should be run at the same time", + "the desired number of threads that should be run at the same time." + "This variable has no effect, and is deprecated. " + "It will be removed in a future release.", READ_ONLY GLOBAL_VAR(concurrency), CMD_LINE(REQUIRED_ARG), - VALID_RANGE(1, 512), DEFAULT(DEFAULT_CONCURRENCY), BLOCK_SIZE(1)); + VALID_RANGE(1, 512), DEFAULT(DEFAULT_CONCURRENCY), BLOCK_SIZE(1), + NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0), ON_UPDATE(0), + DEPRECATED("")); static Sys_var_ulong Sys_thread_stack( "thread_stack", "The stack size for each thread", -- cgit v1.2.1 From b0915e6abdd607fc666025ca57aef615b4816864 Mon Sep 17 00:00:00 2001 From: Venkata Sidagam Date: Thu, 5 Sep 2013 14:18:43 +0530 Subject: Bug #17168602 MYSQL_PLUGIN REMOVES NON-DIRECTORY TYPE FILES SPECIFIED WITH THE BASEDIR OPTION Reverting the patch. Because asked for second review. --- client/mysql_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c index 7fbfeb9e9a6..72bab3ad528 100644 --- a/client/mysql_plugin.c +++ b/client/mysql_plugin.c @@ -856,7 +856,7 @@ static int process_options(int argc, char *argv[], char *operation) strncat(buff, FN_DIRSEP, sizeof(buff) - strlen(buff) - 1); #endif buff[sizeof(buff) - 1]= 0; - my_free(opt_basedir); + my_delete(opt_basedir, MYF(0)); opt_basedir= my_strdup(buff, MYF(MY_FAE)); } } -- cgit v1.2.1 From 7b5e90b4dd7e5be7552f75fbc7e2c89b2fd63260 Mon Sep 17 00:00:00 2001 From: Raghav Kapoor Date: Fri, 6 Sep 2013 12:38:11 +0530 Subject: Post push fix of openssl_1.test failure --- mysql-test/r/openssl_1.result | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/r/openssl_1.result b/mysql-test/r/openssl_1.result index b6efab9c055..2a3eeacab3b 100644 --- a/mysql-test/r/openssl_1.result +++ b/mysql-test/r/openssl_1.result @@ -83,7 +83,7 @@ Ssl_cipher AES128-SHA SHOW STATUS LIKE 'Ssl_cipher'; Variable_name Value Ssl_cipher AES128-SHA -mysqltest: Could not open connection 'default': 2026 SSL connection error: SSL_CTX_new failed +mysqltest: Could not open connection 'default': 2026 SSL connection error: Failed to set ciphers to use CREATE TABLE t1(a int); INSERT INTO t1 VALUES (1), (2); -- cgit v1.2.1 From 28278b141009a44957986bba8f553040dffb1373 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Mon, 9 Sep 2013 12:43:08 +0200 Subject: Bug#16870783 RECENT REGRESSION: CRASH WITH GROUP_CONCAT AND INVALID SEPARATOR Add missing initialization in lex_start() --- sql/sql_lex.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index bc313ed0486..9113f31c76c 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -411,6 +411,7 @@ void lex_start(THD *thd) lex->select_lex.ftfunc_list= &lex->select_lex.ftfunc_list_alloc; lex->select_lex.group_list.empty(); lex->select_lex.order_list.empty(); + lex->select_lex.gorder_list.empty(); lex->duplicates= DUP_ERROR; lex->ignore= 0; lex->spname= NULL; -- cgit v1.2.1 From 27c6c4e8ac690b3619b7ee2f8582b015e42ce346 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Mon, 9 Sep 2013 14:20:50 +0200 Subject: Bug#17296644 CONV(X, INT_MIN, INT_MIN) SEGFAULTS THE SERVER Do not call abs(INT_MIN) as the result is undefined. --- configure.cmake | 4 ++++ sql/item_strfunc.cc | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.cmake b/configure.cmake index 3474f12f1e1..c3ac3a8222f 100644 --- a/configure.cmake +++ b/configure.cmake @@ -147,6 +147,10 @@ IF(UNIX) SET(CMAKE_REQUIRED_LIBRARIES ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT}) + # Need explicit pthread for gcc -fsanitize=address + IF(CMAKE_USE_PTHREADS_INIT AND CMAKE_C_FLAGS MATCHES "-fsanitize=") + SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} pthread) + ENDIF() LIST(LENGTH CMAKE_REQUIRED_LIBRARIES required_libs_length) IF(${required_libs_length} GREATER 0) diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index f654d260564..363ca02fd7a 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1,5 +1,5 @@ /* - Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 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 @@ -2928,7 +2928,9 @@ String *Item_func_conv::val_str(String *str) int to_base= (int) args[2]->val_int(); int err; + // Note that abs(INT_MIN) is undefined. if (args[0]->null_value || args[1]->null_value || args[2]->null_value || + from_base == INT_MIN || to_base == INT_MIN || abs(to_base) > 36 || abs(to_base) < 2 || abs(from_base) > 36 || abs(from_base) < 2 || !(res->length())) { -- cgit v1.2.1 From 044a7d7c2f2c13f1649d02b69de93c85edd3fdf2 Mon Sep 17 00:00:00 2001 From: Venkata Sidagam Date: Mon, 9 Sep 2013 20:32:50 +0530 Subject: Bug #16776528 RACE CONDITION CAN CAUSE MYSQLD TO REMOVE SOCKET FILE ERRANTLY Reverting the patch. Because this change is not to me made for GA versions. --- scripts/mysqld_safe.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index f3759cbbf6b..48c98f2fde3 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -343,32 +343,6 @@ fi parse_arguments `$print_defaults $defaults --loose-verbose mysqld_safe safe_mysqld` parse_arguments PICK-ARGS-FROM-ARGV "$@" -# A pid file is created for the mysqld_safe process. This file protects the -# server instance resources during race conditions. -safe_pid="$DATADIR/mysqld_safe.pid" -if test -f $safe_pid -then - PID=`cat "$safe_pid"` - if @CHECK_PID@ - then - if @FIND_PROC@ - then - log_error "A mysqld_safe process already exists" - exit 1 - fi - fi - rm -f "$safe_pid" - if test -f "$safe_pid" - then - log_error "Fatal error: Can't remove the mysqld_safe pid file" - exit 1 - fi -fi - -# Insert pid proerply into the pid file. -ps -e | grep [m]ysqld_safe | awk '{print $1}' | sed -n 1p > $safe_pid -# End of mysqld_safe pid(safe_pid) check. - # Determine what logging facility to use # Ensure that 'logger' exists, if it's requested @@ -378,7 +352,6 @@ then if [ $? -ne 0 ] then log_error "--syslog requested, but no 'logger' program found. Please ensure that 'logger' is in your PATH, or do not specify the --syslog option to mysqld_safe." - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -483,7 +456,6 @@ does not exist or is not executable. Please cd to the mysql installation directory and restart this script from there as follows: ./bin/mysqld_safe& See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi @@ -577,7 +549,6 @@ then if @FIND_PROC@ then # The pid contains a mysqld process log_error "A mysqld process already exists" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -588,7 +559,6 @@ then $pid_file Please remove it manually and start $0 again; mysqld daemon not started" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -674,5 +644,3 @@ done log_notice "mysqld from pid file $pid_file ended" -rm -f "$safe_pid" # Some Extra Safety. File is deleted - # once the mysqld process ends. -- cgit v1.2.1 From 199a98ee28a01c6f378cf4a9d6940376862c4f6f Mon Sep 17 00:00:00 2001 From: Hery Ramilison Date: Mon, 9 Sep 2013 18:58:08 +0200 Subject: Committing patch from venkata.sidagam@oracle.com for Bug#16776528 --- scripts/mysqld_safe.sh | 32 -------------------------------- support-files/mysql.spec.sh | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh index f3759cbbf6b..48c98f2fde3 100644 --- a/scripts/mysqld_safe.sh +++ b/scripts/mysqld_safe.sh @@ -343,32 +343,6 @@ fi parse_arguments `$print_defaults $defaults --loose-verbose mysqld_safe safe_mysqld` parse_arguments PICK-ARGS-FROM-ARGV "$@" -# A pid file is created for the mysqld_safe process. This file protects the -# server instance resources during race conditions. -safe_pid="$DATADIR/mysqld_safe.pid" -if test -f $safe_pid -then - PID=`cat "$safe_pid"` - if @CHECK_PID@ - then - if @FIND_PROC@ - then - log_error "A mysqld_safe process already exists" - exit 1 - fi - fi - rm -f "$safe_pid" - if test -f "$safe_pid" - then - log_error "Fatal error: Can't remove the mysqld_safe pid file" - exit 1 - fi -fi - -# Insert pid proerply into the pid file. -ps -e | grep [m]ysqld_safe | awk '{print $1}' | sed -n 1p > $safe_pid -# End of mysqld_safe pid(safe_pid) check. - # Determine what logging facility to use # Ensure that 'logger' exists, if it's requested @@ -378,7 +352,6 @@ then if [ $? -ne 0 ] then log_error "--syslog requested, but no 'logger' program found. Please ensure that 'logger' is in your PATH, or do not specify the --syslog option to mysqld_safe." - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -483,7 +456,6 @@ does not exist or is not executable. Please cd to the mysql installation directory and restart this script from there as follows: ./bin/mysqld_safe& See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi @@ -577,7 +549,6 @@ then if @FIND_PROC@ then # The pid contains a mysqld process log_error "A mysqld process already exists" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -588,7 +559,6 @@ then $pid_file Please remove it manually and start $0 again; mysqld daemon not started" - rm -f "$safe_pid" # Clean Up of mysqld_safe.pid file. exit 1 fi fi @@ -674,5 +644,3 @@ done log_notice "mysqld from pid file $pid_file ended" -rm -f "$safe_pid" # Some Extra Safety. File is deleted - # once the mysqld process ends. diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 9560eeea53a..93a74ac8445 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -1025,9 +1025,9 @@ fi %attr(755, root, root) %{_sbindir}/mysqld-debug %attr(755, root, root) %{_sbindir}/mysqlmanager %attr(755, root, root) %{_sbindir}/rcmysql -%attr(755, root, root) %{_libdir}/mysql/plugin %if %{INNODB_BUILD} %if %{WITH_INNODB_PLUGIN} +%attr(755, root, root) %{_libdir}/mysql/plugin/ %attr(755, root, root) %{_libdir}/mysql/plugin/ha_innodb_plugin.so* %endif %endif -- cgit v1.2.1 From 07ffbdc2c93346479a5cc8257ed492efac77cd70 Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Mon, 9 Sep 2013 20:07:12 +0200 Subject: Reverted the changes to spec file to ignore mysqld_safe.pid file, updated the logic to get the correct count of PID files --- support-files/mysql.spec.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 93a74ac8445..8fbf9f08b9e 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -716,7 +716,7 @@ fi # We assume that if there is exactly one ".pid" file, # it contains the valid PID of a running MySQL server. -NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | grep -v "mysqld_safe.pid" | wc -l` +NR_PID_FILES=`ls -1 $PID_FILE_PATT 2>/dev/null | wc -l` case $NR_PID_FILES in 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server 1 ) SERVER_TO_START='true' ;; @@ -1195,8 +1195,8 @@ fi # merging BK trees) ############################################################################## %changelog -* Thu Aug 29 2013 Balasubramanian Kandasamy -- Added logic to ignore mysqld_safe.pid file created by mysqld_safe script +* Mon Sep 09 2013 Balasubramanian Kandasamy +- Updated logic to get the correct count of PID files * Tue Sep 11 2012 Joerg Bruehe -- cgit v1.2.1 From 514b8261b5404c0b4fecbd66fc6fa99ca1bd8c47 Mon Sep 17 00:00:00 2001 From: Libing Song Date: Tue, 10 Sep 2013 09:35:49 +0800 Subject: Bug#17402313 DUMP THREAD SENDS SOME EVENTS MORE THAN ONCE Dump thread may encounter an error when reading events from the active binlog file. However the errors may be temporary, so dump thread will try to read the event again. But dump thread seeked to an wrong position, it caused some events was sent twice. To fix the bug, prev_pos is defined out the while loop and is set the correct position after reading every event correctly. This patch also make binlog_can_be_corrupted more accurate, only the binlogs not closed normally are marked binlog_can_be_corrupted. Finally, two warnings are added when dump threads encounter the temporary errors. --- sql/log_event.cc | 11 +++++++++++ sql/sql_repl.cc | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 54 insertions(+), 8 deletions(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index 16388fbbef7..d7e912cfe1a 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1027,6 +1027,17 @@ int Log_event::read_log_event(IO_CACHE* file, String* packet, if (log_file_name_arg) *is_binlog_active= mysql_bin_log.is_active(log_file_name_arg); + DBUG_EXECUTE_IF("dump_fake_io_error", + { + if (log_lock) + { + pthread_mutex_unlock(log_lock); + + DBUG_SET("-d,dump_fake_io_error"); + DBUG_RETURN(LOG_READ_IO); + } + }); + if (my_b_read(file, (uchar*) buf, sizeof(buf))) { /* diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 06c25c324c7..4da7c5851ba 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -360,6 +360,9 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, int left_events = max_binlog_dump_events; #endif int old_max_allowed_packet= thd->variables.max_allowed_packet; + bool is_active_binlog= false; + my_off_t prev_pos= pos; + DBUG_ENTER("mysql_binlog_send"); DBUG_PRINT("enter",("log_ident: '%s' pos: %ld", log_ident, (long) pos)); @@ -483,7 +486,8 @@ impossible position"; Try to find a Format_description_log_event at the beginning of the binlog */ - if (!(error = Log_event::read_log_event(&log, packet, log_lock))) + if (!(error = Log_event::read_log_event(&log, packet, log_lock, + log_file_name, &is_active_binlog))) { /* The packet has offsets equal to the normal offsets in a binlog @@ -494,8 +498,14 @@ impossible position"; (*packet)[EVENT_TYPE_OFFSET+1])); if ((*packet)[EVENT_TYPE_OFFSET+1] == FORMAT_DESCRIPTION_EVENT) { - binlog_can_be_corrupted= test((*packet)[FLAGS_OFFSET+1] & - LOG_EVENT_BINLOG_IN_USE_F); + /* + If a binlog is not active, but LOG_EVENT_BINLOG_IN_USE_F + flag is 1. That means it is not closed in normal way + (E.g server crash) and may include corrupted events. + */ + binlog_can_be_corrupted= (!is_active_binlog) && + test((*packet)[FLAGS_OFFSET+1] & LOG_EVENT_BINLOG_IN_USE_F); + (*packet)[FLAGS_OFFSET+1] &= ~LOG_EVENT_BINLOG_IN_USE_F; /* mark that this event with "log_pos=0", so the slave @@ -547,12 +557,11 @@ impossible position"; while (!net->error && net->vio != 0 && !thd->killed) { - my_off_t prev_pos= pos; - bool is_active_binlog= false; while (!(error= Log_event::read_log_event(&log, packet, log_lock, log_file_name, &is_active_binlog))) { + DBUG_ASSERT(prev_pos < my_b_tell(&log)); prev_pos= my_b_tell(&log); #ifndef DBUG_OFF if (max_binlog_dump_events && !left_events--) @@ -580,8 +589,9 @@ impossible position"; if ((*packet)[EVENT_TYPE_OFFSET+1] == FORMAT_DESCRIPTION_EVENT) { - binlog_can_be_corrupted= test((*packet)[FLAGS_OFFSET+1] & - LOG_EVENT_BINLOG_IN_USE_F); + binlog_can_be_corrupted= (!is_active_binlog) && + test((*packet)[FLAGS_OFFSET+1] & LOG_EVENT_BINLOG_IN_USE_F); + (*packet)[FLAGS_OFFSET+1] &= ~LOG_EVENT_BINLOG_IN_USE_F; } else if ((*packet)[EVENT_TYPE_OFFSET+1] == STOP_EVENT) @@ -620,9 +630,31 @@ impossible position"; here we were reading binlog that was not closed properly (as a result of a crash ?). treat any corruption as EOF */ - if (binlog_can_be_corrupted && + if ((binlog_can_be_corrupted || is_active_binlog) && error != LOG_READ_MEM && error != LOG_READ_EOF) { + test_for_non_eof_log_read_errors(error, &errmsg); + + if (is_active_binlog) + { + sql_print_warning("Failed to read an event from active binlog(%s,%lu). " + "error: %s. Dump thread will try to read it again.", + log_file_name, (ulong)prev_pos, errmsg); + } + else + { + sql_print_warning("Failed to read an event from inactive binlog" + "(%s, %lu). error: %s. Dump thread found the binlog " + "was not rotated correctly. It will jump to next " + "binlog directly.", + log_file_name, (ulong) prev_pos, errmsg); + } + errmsg= NULL; + + /* + If binlog is active, it will try to read the event again. Otherwise, + skip the corrupted events and switch to next binlog. + */ my_b_seek(&log, prev_pos); error=LOG_READ_EOF; } @@ -695,6 +727,8 @@ impossible position"; /* we read successfully, so we'll need to send it to the slave */ pthread_mutex_unlock(log_lock); read_packet = 1; + DBUG_ASSERT(prev_pos < my_b_tell(&log)); + prev_pos= my_b_tell(&log); break; case LOG_READ_EOF: @@ -757,6 +791,7 @@ impossible position"; thd_proc_info(thd, "Finished reading one binlog; switching to next binlog"); switch (mysql_bin_log.find_next_log(&linfo, 1)) { case 0: + prev_pos= BIN_LOG_HEADER_SIZE; break; case LOG_INFO_EOF: if (mysql_bin_log.is_active(log_file_name)) -- cgit v1.2.1 From 1ba0dac57444ef0422d9ff13bd584c525959b840 Mon Sep 17 00:00:00 2001 From: Bjorn Munch Date: Tue, 10 Sep 2013 07:25:01 +0200 Subject: MTR: fix broken logic for ignoring missing ctest in Pushbuild --- mysql-test/mysql-test-run.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 19f82303221..54dcd982a4c 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -5998,7 +5998,7 @@ sub run_ctest() { # Special override: also ignore in Pushbuild, some platforms may not have it # Now, run ctest and collect output my $ctest_out= `ctest $ctest_vs 2>&1`; - if ($? == $no_ctest && $opt_ctest == -1 && ! defined $ENV{PB2WORKDIR}) { + if ($? == $no_ctest && ($opt_ctest == -1 || defined $ENV{PB2WORKDIR})) { chdir($olddir); return; } -- cgit v1.2.1 From aff9f26290277baa97ce3ce74829d8c1cf870e45 Mon Sep 17 00:00:00 2001 From: Libing Song Date: Tue, 10 Sep 2013 16:12:25 +0800 Subject: Bug#17402313 DUMP THREAD SENDS SOME EVENTS MORE THAN ONCE Postfix, suppress the new warning generated by the bug's fix. --- mysql-test/suite/rpl/r/rpl_log_pos.result | 1 + mysql-test/suite/rpl/t/rpl_log_pos.test | 1 + 2 files changed, 2 insertions(+) diff --git a/mysql-test/suite/rpl/r/rpl_log_pos.result b/mysql-test/suite/rpl/r/rpl_log_pos.result index b2224dcd725..b3f68157211 100644 --- a/mysql-test/suite/rpl/r/rpl_log_pos.result +++ b/mysql-test/suite/rpl/r/rpl_log_pos.result @@ -1,6 +1,7 @@ include/master-slave.inc [connection master] call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary"); +CALL mtr.add_suppression("Failed to read an event from active binlog.*"); show master status; File Position Binlog_Do_DB Binlog_Ignore_DB master-bin.000001 # diff --git a/mysql-test/suite/rpl/t/rpl_log_pos.test b/mysql-test/suite/rpl/t/rpl_log_pos.test index 484ffa52a44..87be576c285 100644 --- a/mysql-test/suite/rpl/t/rpl_log_pos.test +++ b/mysql-test/suite/rpl/t/rpl_log_pos.test @@ -12,6 +12,7 @@ source include/master-slave.inc; call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary"); +CALL mtr.add_suppression("Failed to read an event from active binlog.*"); source include/show_master_status.inc; sync_slave_with_master; source include/stop_slave.inc; -- cgit v1.2.1 From b9ec18374165acc1081c810104d0371c444fe49d Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Tue, 10 Sep 2013 11:20:29 +0200 Subject: Bug#16482467 ORDER BY IGNORED IN SOME SITUATIONS FOR UPDATE QUERY For queries like update t1 set ... where order by ... limit ... we need to handle the fact that unique keys allow NULL values, and hence can return more than one row. sql/opt_range.cc: When the unique key has multiple key parts, check each key_part for nullability, rather than the first key part. (s/key->part ==/key_tree->part ==/) Also: revert the if() test, for better readability. --- sql/opt_range.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 386faed3aa2..c7a7d2531af 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -8071,15 +8071,16 @@ get_quick_keys(PARAM *param,QUICK_RANGE_SELECT *quick,KEY_PART *key, { KEY *table_key=quick->head->key_info+quick->index; flag=EQ_RANGE; - if ((table_key->flags & HA_NOSAME) && key->part == table_key->key_parts-1) + if ((table_key->flags & HA_NOSAME) && + key_tree->part == table_key->key_parts-1) { - if (!(table_key->flags & HA_NULL_PART_KEY) || - !null_part_in_key(key, - param->min_key, - (uint) (tmp_min_key - param->min_key))) - flag|= UNIQUE_RANGE; - else - flag|= NULL_RANGE; + if ((table_key->flags & HA_NULL_PART_KEY) && + null_part_in_key(key, + param->min_key, + (uint) (tmp_min_key - param->min_key))) + flag|= NULL_RANGE; + else + flag|= UNIQUE_RANGE; } } } @@ -8109,7 +8110,7 @@ get_quick_keys(PARAM *param,QUICK_RANGE_SELECT *quick,KEY_PART *key, } /* - Return 1 if there is only one range and this uses the whole primary key + Return 1 if there is only one range and this uses the whole unique key */ bool QUICK_RANGE_SELECT::unique_key_range() -- cgit v1.2.1 From 42501173084f8a085a5cab38cb7d19ada8a96739 Mon Sep 17 00:00:00 2001 From: mithun Date: Tue, 10 Sep 2013 15:32:27 +0530 Subject: Bug #16978278 : BUFFER OVERFLOW WHEN PRINTING A LARGE 64-BIT INTEGER WITH MY_B_VPRINTF() Issue : In LP 64 machine max long value can be 20 digit decimal value. But in my_b_vprintf() the intermediate buffer storage used is 17 bytes length. This will lead to buffer overflow. Solution : Increased the buffer storage from 17 to 32 bytes. code is backported from 5.6 mysys/mf_iocache2.c: In function my_b_vprintf increased the size of local buff from 17 to 32 bytes. --- mysys/mf_iocache2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c index eaa70782f16..f65ca97bd16 100644 --- a/mysys/mf_iocache2.c +++ b/mysys/mf_iocache2.c @@ -415,7 +415,7 @@ process_flags: { register int iarg; size_t length2; - char buff[17]; + char buff[32]; iarg = va_arg(args, int); if (*fmt == 'd') @@ -450,7 +450,7 @@ process_flags: { register long iarg; size_t length2; - char buff[17]; + char buff[32]; iarg = va_arg(args, long); if (*++fmt == 'd') -- cgit v1.2.1 From 59402fe0a76bae115c622cc241995180c4bdf4c9 Mon Sep 17 00:00:00 2001 From: Satya Bodapati Date: Wed, 11 Sep 2013 16:57:02 +0530 Subject: Bug#16752251 - INNODB DOESN'T REDO-LOG INSERT BUFFER MERGE OPERATION IF IT IS DONE IN-PLACE With change buffer enabled, InnoDB doesn't write a transaction log record when it merges a record from the insert buffer to an secondary index page if the insertion is performed as an update-in-place. Fixed by logging the 'update-in-place' operation on secondary index pages. Approved by Marko. rb#2429 --- .../include/have_innodb_change_buffering.inc | 6 ++ mysql-test/include/search_pattern_in_file.inc | 66 ++++++++++++++++++++++ storage/innobase/btr/btr0cur.c | 30 +++++++--- storage/innobase/ibuf/ibuf0ibuf.c | 18 ++++++ storage/innobase/include/btr0cur.h | 13 +++++ storage/innodb_plugin/btr/btr0cur.c | 30 +++++++--- storage/innodb_plugin/ibuf/ibuf0ibuf.c | 18 ++++++ storage/innodb_plugin/include/btr0cur.h | 17 +++++- 8 files changed, 181 insertions(+), 17 deletions(-) create mode 100644 mysql-test/include/have_innodb_change_buffering.inc create mode 100644 mysql-test/include/search_pattern_in_file.inc diff --git a/mysql-test/include/have_innodb_change_buffering.inc b/mysql-test/include/have_innodb_change_buffering.inc new file mode 100644 index 00000000000..aadad84c6a1 --- /dev/null +++ b/mysql-test/include/have_innodb_change_buffering.inc @@ -0,0 +1,6 @@ +if (!`SHOW VARIABLES LIKE 'innodb_change_buffering_debug'`) +{ + # innodb_change_buffering_debug is enabled by UNIV_DEBUG or + # UNIV_IBUF_DEBUG + --skip Test requires binary with UNIV_DEBUG enabled +} diff --git a/mysql-test/include/search_pattern_in_file.inc b/mysql-test/include/search_pattern_in_file.inc new file mode 100644 index 00000000000..c047b5bc499 --- /dev/null +++ b/mysql-test/include/search_pattern_in_file.inc @@ -0,0 +1,66 @@ +# Purpose: +# Simple search with Perl for a pattern in some file. +# +# The advantages compared to thinkable auxiliary constructs using the +# mysqltest language and SQL are: +# 1. We do not need a running MySQL server. +# 2. SQL causes "noise" during debugging and increases the size of logs. +# Perl code does not disturb at all. +# +# The environment variables SEARCH_FILE and SEARCH_PATTERN must be set +# before sourcing this routine. +# +# In case of +# - SEARCH_FILE and/or SEARCH_PATTERN is not set +# - SEARCH_FILE cannot be opened +# - SEARCH_FILE does not contain SEARCH_PATTERN +# the test will abort immediate. +# MTR will report something like +# .... +# worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 +# main.1st [ pass ] 3 +# innodb.innodb_page_size [ fail ] +# Test ended at 2011-11-11 18:15:58 +# +# CURRENT_TEST: innodb.innodb_page_size +# # ERROR: The file '' does not contain the expected pattern +# mysqltest: In included file "./include/search_pattern_in_file.inc": +# included from ./include/search_pattern_in_file.inc at line 36: +# At line 25: command "perl" failed with error 255. my_errno=175 +# +# The result from queries just before the failure was: +# ... +# - saving '' to '' +# main.1st [ pass ] 2 +# +# Typical use case (check invalid server startup options): +# let $error_log= $MYSQLTEST_VARDIR/log/my_restart.err; +# --error 0,1 +# --remove_file $error_log +# let SEARCH_FILE= $error_log; +# # Stop the server +# let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect; +# --exec echo "wait" > $restart_file +# --shutdown_server 10 +# --source include/wait_until_disconnected.inc +# +# --error 1 +# --exec $MYSQLD_CMD > $error_log 2>&1 +# # The server restart aborts +# let SEARCH_PATTERN= \[ERROR\] Aborting; +# --source include/search_pattern_in_file.inc +# +# Created: 2011-11-11 mleich +# + +perl; + use strict; + my $search_file= $ENV{'SEARCH_FILE'} or die "SEARCH_FILE not set"; + my $search_pattern= $ENV{'SEARCH_PATTERN'} or die "SEARCH_PATTERN not set"; + open(FILE, "$search_file") or die("Unable to open '$search_file': $!\n"); + read(FILE, my $file_content, 50000, 0); + close(FILE); + if ( not $file_content =~ m{$search_pattern} ) { + die("# ERROR: The file '$search_file' does not contain the expected pattern $search_pattern\n->$file_content<-\n"); + } +EOF diff --git a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c index 8dc0a92408b..4ad4bacdc0f 100644 --- a/storage/innobase/btr/btr0cur.c +++ b/storage/innobase/btr/btr0cur.c @@ -31,6 +31,7 @@ Created 10/16/1994 Heikki Tuuri #include "btr0sea.h" #include "row0upd.h" #include "trx0rec.h" +#include "trx0undo.h" #include "trx0roll.h" /* trx_roll_crash_recv_trx */ #include "que0que.h" #include "row0row.h" @@ -1363,18 +1364,31 @@ btr_cur_update_in_place_log( return; } - /* The code below assumes index is a clustered index: change index to - the clustered index if we are updating a secondary index record (or we - could as well skip writing the sys col values to the log in this case - because they are not needed for a secondary index record update) */ - - index = dict_table_get_first_index(index->table); + /* For secondary indexes, we could skip writing the dummy system fields + to the redo log but we have to change redo log parsing of + MLOG_REC_UPDATE_IN_PLACE/MLOG_COMP_REC_UPDATE_IN_PLACE or we have to add + new redo log record. For now, just write dummy sys fields to the redo + log if we are updating a secondary index record. + */ mach_write_to_1(log_ptr, flags); log_ptr++; - log_ptr = row_upd_write_sys_vals_to_log(index, trx, roll_ptr, log_ptr, - mtr); + if (index->type & DICT_CLUSTERED) { + log_ptr = row_upd_write_sys_vals_to_log( + index, trx, roll_ptr, log_ptr, mtr); + } else { + /* Dummy system fields for a secondary index */ + /* TRX_ID Position */ + log_ptr += mach_write_compressed(log_ptr, 0); + /* ROLL_PTR */ + trx_write_roll_ptr(log_ptr, ut_dulint_zero); + log_ptr += DATA_ROLL_PTR_LEN; + /* TRX_ID */ + log_ptr += mach_dulint_write_compressed(log_ptr, + ut_dulint_zero); + } + mach_write_to_2(log_ptr, page_offset(rec)); log_ptr += 2; diff --git a/storage/innobase/ibuf/ibuf0ibuf.c b/storage/innobase/ibuf/ibuf0ibuf.c index 2ba3d785194..ae6c5f6636f 100644 --- a/storage/innobase/ibuf/ibuf0ibuf.c +++ b/storage/innobase/ibuf/ibuf0ibuf.c @@ -3024,6 +3024,24 @@ updated_in_place: /* This is the easy case. Do something similar to btr_cur_update_in_place(). */ row_upd_rec_in_place(rec, offsets, update); + + /* Log the update in place operation. During recovery + MLOG_COMP_REC_UPDATE_IN_PLACE/MLOG_REC_UPDATE_IN_PLACE + expects trx_id, roll_ptr for secondary indexes. So we + just write dummy trx_id(0), roll_ptr(0) */ + btr_cur_update_in_place_log(BTR_KEEP_SYS_FLAG, rec, + index, update, + NULL, + ut_dulint_zero, mtr); + DBUG_EXECUTE_IF( + "crash_after_log_ibuf_upd_inplace", + log_buffer_flush_to_disk(); + fprintf(stderr, + "InnoDB: Wrote log record for ibuf " + "update in place operation\n"); + DBUG_SUICIDE(); + ); + goto updated_in_place; } diff --git a/storage/innobase/include/btr0cur.h b/storage/innobase/include/btr0cur.h index c2b81d0ae91..bab405fa91e 100644 --- a/storage/innobase/include/btr0cur.h +++ b/storage/innobase/include/btr0cur.h @@ -558,6 +558,19 @@ btr_push_update_extern_fields( const ulint* offsets,/* in: array returned by rec_get_offsets() */ upd_t* update);/* in: update vector or NULL */ +/*************************************************************** +Writes a redo log record of updating a record in-place. */ +UNIV_INLINE +void +btr_cur_update_in_place_log( +/*========================*/ + ulint flags, /* in: flags */ + rec_t* rec, /* in: record */ + dict_index_t* index, /* in: index where cursor positioned */ + upd_t* update, /* in: update vector */ + trx_t* trx, /* in: transaction */ + dulint roll_ptr, /* in: roll ptr */ + mtr_t* mtr); /* in: mtr */ /*######################################################################*/ diff --git a/storage/innodb_plugin/btr/btr0cur.c b/storage/innodb_plugin/btr/btr0cur.c index 2b98b416793..f653929193a 100644 --- a/storage/innodb_plugin/btr/btr0cur.c +++ b/storage/innodb_plugin/btr/btr0cur.c @@ -58,6 +58,7 @@ Created 10/16/1994 Heikki Tuuri #include "btr0btr.h" #include "btr0sea.h" #include "trx0rec.h" +#include "trx0undo.h" #include "trx0roll.h" /* trx_is_recv() */ #include "que0que.h" #include "row0row.h" @@ -1557,18 +1558,31 @@ btr_cur_update_in_place_log( return; } - /* The code below assumes index is a clustered index: change index to - the clustered index if we are updating a secondary index record (or we - could as well skip writing the sys col values to the log in this case - because they are not needed for a secondary index record update) */ - - index = dict_table_get_first_index(index->table); + /* For secondary indexes, we could skip writing the dummy system fields + to the redo log but we have to change redo log parsing of + MLOG_REC_UPDATE_IN_PLACE/MLOG_COMP_REC_UPDATE_IN_PLACE or we have to add + new redo log record. For now, just write dummy sys fields to the redo + log if we are updating a secondary index record. + */ mach_write_to_1(log_ptr, flags); log_ptr++; - log_ptr = row_upd_write_sys_vals_to_log(index, trx, roll_ptr, log_ptr, - mtr); + if (index->type & DICT_CLUSTERED) { + log_ptr = row_upd_write_sys_vals_to_log( + index, trx, roll_ptr, log_ptr, mtr); + } else { + /* Dummy system fields for a secondary index */ + /* TRX_ID Position */ + log_ptr += mach_write_compressed(log_ptr, 0); + /* ROLL_PTR */ + trx_write_roll_ptr(log_ptr, ut_dulint_zero); + log_ptr += DATA_ROLL_PTR_LEN; + /* TRX_ID */ + log_ptr += mach_dulint_write_compressed(log_ptr, + ut_dulint_zero); + } + mach_write_to_2(log_ptr, page_offset(rec)); log_ptr += 2; diff --git a/storage/innodb_plugin/ibuf/ibuf0ibuf.c b/storage/innodb_plugin/ibuf/ibuf0ibuf.c index e084a61d5d3..5d018bcdbc9 100644 --- a/storage/innodb_plugin/ibuf/ibuf0ibuf.c +++ b/storage/innodb_plugin/ibuf/ibuf0ibuf.c @@ -3072,6 +3072,24 @@ updated_in_place: to btr_cur_update_in_place(). */ row_upd_rec_in_place(rec, index, offsets, update, page_zip); + + /* Log the update in place operation. During recovery + MLOG_COMP_REC_UPDATE_IN_PLACE/MLOG_REC_UPDATE_IN_PLACE + expects trx_id, roll_ptr for secondary indexes. So we + just write dummy trx_id(0), roll_ptr(0) */ + btr_cur_update_in_place_log(BTR_KEEP_SYS_FLAG, rec, + index, update, + NULL, + ut_dulint_zero, mtr); + DBUG_EXECUTE_IF( + "crash_after_log_ibuf_upd_inplace", + log_buffer_flush_to_disk(); + fprintf(stderr, + "InnoDB: Wrote log record for ibuf " + "update in place operation\n"); + DBUG_SUICIDE(); + ); + goto updated_in_place; } diff --git a/storage/innodb_plugin/include/btr0cur.h b/storage/innodb_plugin/include/btr0cur.h index 7744d2d1ee2..2321d718f03 100644 --- a/storage/innodb_plugin/include/btr0cur.h +++ b/storage/innodb_plugin/include/btr0cur.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1994, 2012, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1994, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -636,6 +636,21 @@ btr_push_update_extern_fields( mem_heap_t* heap) /*!< in: memory heap */ __attribute__((nonnull)); +/***********************************************************//** +Writes a redo log record of updating a record in-place. */ +UNIV_INLINE +void +btr_cur_update_in_place_log( +/*========================*/ + ulint flags, /*!< in: flags */ + rec_t* rec, /*!< in: record */ + dict_index_t* index, /*!< in: index where cursor + positioned */ + const upd_t* update, /*!< in: update vector */ + trx_t* trx, /*!< in: transaction */ + roll_ptr_t roll_ptr, /*!< in: roll ptr */ + mtr_t* mtr); /*!< in: mtr */ + /*######################################################################*/ /** In the pessimistic delete, if the page data size drops below this -- cgit v1.2.1 From 64a845e0a6e0baa355042c693db833b03e9b6106 Mon Sep 17 00:00:00 2001 From: Satya Bodapati Date: Thu, 12 Sep 2013 12:28:16 +0530 Subject: Additional Fix to BUG#16755251 for 5.1 build failure and disable testcase due to BUG#17446090 --- storage/innobase/btr/btr0cur.c | 1 - storage/innobase/include/btr0cur.h | 2 +- storage/innodb_plugin/btr/btr0cur.c | 2 +- storage/innodb_plugin/include/btr0cur.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c index 4ad4bacdc0f..8704e443099 100644 --- a/storage/innobase/btr/btr0cur.c +++ b/storage/innobase/btr/btr0cur.c @@ -1336,7 +1336,6 @@ btr_cur_upd_lock_and_undo( /*************************************************************** Writes a redo log record of updating a record in-place. */ -UNIV_INLINE void btr_cur_update_in_place_log( /*========================*/ diff --git a/storage/innobase/include/btr0cur.h b/storage/innobase/include/btr0cur.h index bab405fa91e..5095fd5e875 100644 --- a/storage/innobase/include/btr0cur.h +++ b/storage/innobase/include/btr0cur.h @@ -560,7 +560,7 @@ btr_push_update_extern_fields( /*************************************************************** Writes a redo log record of updating a record in-place. */ -UNIV_INLINE + void btr_cur_update_in_place_log( /*========================*/ diff --git a/storage/innodb_plugin/btr/btr0cur.c b/storage/innodb_plugin/btr/btr0cur.c index f653929193a..93b150341b0 100644 --- a/storage/innodb_plugin/btr/btr0cur.c +++ b/storage/innodb_plugin/btr/btr0cur.c @@ -1530,7 +1530,7 @@ btr_cur_upd_lock_and_undo( /***********************************************************//** Writes a redo log record of updating a record in-place. */ -UNIV_INLINE +UNIV_INTERN void btr_cur_update_in_place_log( /*========================*/ diff --git a/storage/innodb_plugin/include/btr0cur.h b/storage/innodb_plugin/include/btr0cur.h index 2321d718f03..5d07fffbf8c 100644 --- a/storage/innodb_plugin/include/btr0cur.h +++ b/storage/innodb_plugin/include/btr0cur.h @@ -638,7 +638,7 @@ btr_push_update_extern_fields( /***********************************************************//** Writes a redo log record of updating a record in-place. */ -UNIV_INLINE +UNIV_INTERN void btr_cur_update_in_place_log( /*========================*/ -- cgit v1.2.1 From 87d5dc1388fd4819133d4cda5feeb87f99a1984d Mon Sep 17 00:00:00 2001 From: Satya Bodapati Date: Thu, 12 Sep 2013 17:59:14 +0530 Subject: Fix FreeBSD build failure due to BUG#16752251 (only in 5.5) --- storage/innobase/btr/btr0cur.c | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c index 16d5016a9b5..7762907b6aa 100644 --- a/storage/innobase/btr/btr0cur.c +++ b/storage/innobase/btr/btr0cur.c @@ -61,6 +61,7 @@ Created 10/16/1994 Heikki Tuuri #include "row0upd.h" #include "trx0rec.h" #include "trx0roll.h" /* trx_is_recv() */ +#include "trx0undo.h" #include "que0que.h" #include "row0row.h" #include "srv0srv.h" -- cgit v1.2.1 From b7232337e9c2a4b449b8028415f027e82a65084d Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Thu, 12 Sep 2013 21:26:15 +0200 Subject: post-push fix for bug#53947 test change only. Removed --source include/not_windows_embedded.inc which was added due to that bug. --- mysql-test/suite/innodb/t/innodb.test | 6 ------ mysql-test/suite/sys_vars/t/identity_func.test | 6 ------ mysql-test/suite/sys_vars/t/innodb_autoinc_lock_mode_func.test | 6 ------ mysql-test/suite/sys_vars/t/last_insert_id_func.test | 6 ------ mysql-test/suite/sys_vars/t/storage_engine_basic.test | 6 ------ mysql-test/suite/sys_vars/t/tx_isolation_func.test | 6 ------ 6 files changed, 36 deletions(-) diff --git a/mysql-test/suite/innodb/t/innodb.test b/mysql-test/suite/innodb/t/innodb.test index 3038bb0331e..9c407759fd8 100644 --- a/mysql-test/suite/innodb/t/innodb.test +++ b/mysql-test/suite/innodb/t/innodb.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - ####################################################################### # # # Please, DO NOT TOUCH this file as well as the innodb.result file. # diff --git a/mysql-test/suite/sys_vars/t/identity_func.test b/mysql-test/suite/sys_vars/t/identity_func.test index 6f7b6bac18e..ff93607a2cd 100644 --- a/mysql-test/suite/sys_vars/t/identity_func.test +++ b/mysql-test/suite/sys_vars/t/identity_func.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - #################### mysql-test\t\identity_func.test ########################## # # # Variable Name: identity # diff --git a/mysql-test/suite/sys_vars/t/innodb_autoinc_lock_mode_func.test b/mysql-test/suite/sys_vars/t/innodb_autoinc_lock_mode_func.test index 082507efd07..89c1c80a6dc 100644 --- a/mysql-test/suite/sys_vars/t/innodb_autoinc_lock_mode_func.test +++ b/mysql-test/suite/sys_vars/t/innodb_autoinc_lock_mode_func.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - ################# mysql-test\t\innodb_autoinc_lock_mode_func.test ############ # # # Variable Name: innodb_autoinc_lock_mode # diff --git a/mysql-test/suite/sys_vars/t/last_insert_id_func.test b/mysql-test/suite/sys_vars/t/last_insert_id_func.test index bb3adbc1c64..2309c539bd9 100644 --- a/mysql-test/suite/sys_vars/t/last_insert_id_func.test +++ b/mysql-test/suite/sys_vars/t/last_insert_id_func.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - ################# mysql-test\t\last_insert_id_func.test ####################### # # # Variable Name: last_insert_id # diff --git a/mysql-test/suite/sys_vars/t/storage_engine_basic.test b/mysql-test/suite/sys_vars/t/storage_engine_basic.test index 49e8a52efea..6c8c777be98 100644 --- a/mysql-test/suite/sys_vars/t/storage_engine_basic.test +++ b/mysql-test/suite/sys_vars/t/storage_engine_basic.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - ############## mysql-test\t\storage_engine_basic.test ################## # # # # diff --git a/mysql-test/suite/sys_vars/t/tx_isolation_func.test b/mysql-test/suite/sys_vars/t/tx_isolation_func.test index 3a78d46e527..7072de6b086 100644 --- a/mysql-test/suite/sys_vars/t/tx_isolation_func.test +++ b/mysql-test/suite/sys_vars/t/tx_isolation_func.test @@ -1,9 +1,3 @@ ---source include/not_windows_embedded.inc -# remove this when -# Bug#53947 InnoDB: Assertion failure in thread 4224 in file -# .\sync\sync0sync.c line 324 -# is fixed - ############# mysql-test\t\tx_isolation_func.test ####################################### # # # Variable Name: tx_isolation # -- cgit v1.2.1 From d4ccf905bef7eca6329e2f439ac9fa0610b3aa92 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Tue, 17 Sep 2013 12:43:34 +0200 Subject: Bug#16765410 FTS: STACK AROUND THE VARIABLE 'MYSTR' WAS CORRUPTED IN INNOBASE_STRNXFRM my_strnxfrm_win1250ch could write into dest[destlen] i.e. write a byte to the past-the-end of dest. --- strings/ctype-win1250ch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/ctype-win1250ch.c b/strings/ctype-win1250ch.c index cbb1ad5e685..a8181afa776 100644 --- a/strings/ctype-win1250ch.c +++ b/strings/ctype-win1250ch.c @@ -500,7 +500,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)), do { NEXT_CMP_VALUE(src, p, pass, value, (int)srclen); - if (totlen <= len) + if (totlen < len) dest[totlen] = value; totlen++; } while (value) ; -- cgit v1.2.1 From 1d40f2ad64ee87c1460a3578179dfbdc6896e2dd Mon Sep 17 00:00:00 2001 From: Vinay Fisrekar Date: Thu, 19 Sep 2013 13:52:01 +0530 Subject: Making rpl.rpl_spec_variables experimental for solaris till bug#17337114 is fixed. --- mysql-test/collections/default.experimental | 1 + 1 file changed, 1 insertion(+) diff --git a/mysql-test/collections/default.experimental b/mysql-test/collections/default.experimental index e4c839ce705..ff4bc960acb 100644 --- a/mysql-test/collections/default.experimental +++ b/mysql-test/collections/default.experimental @@ -15,6 +15,7 @@ main.wait_timeout @solaris # Bug#11758972 2010-04-26 alik wait_tim rpl.rpl_innodb_bug28430 # Bug#11754425 rpl.rpl_row_sp011 @solaris # Bug#11753919 2011-07-25 sven Several test cases fail on Solaris with error Thread stack overrun +rpl.rpl_spec_variables @solaris # Bug #17337114 2013-08-20 Luis Soares failing on pb2 with timeout for 'CHECK WARNINGS' sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails -- cgit v1.2.1 From 5897b81a5b4d2c3190ad343655327a394efe8495 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Fri, 20 Sep 2013 16:10:31 +0200 Subject: Bug#17435338 ADD A -DWITH_ASAN SWITCH/OPTION TO OUR CMAKE SCRIPTS Tested with: gcc (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1) clang version 3.1 (tags/RELEASE_31/final) Target: x86_64-apple-darwin10.8.0 --- CMakeLists.txt | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aee0fb650e8..369a6b5c8f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,7 +177,83 @@ ENDIF() OPTION (WITH_UNIT_TESTS "Compile MySQL with unit tests" ON) MARK_AS_ADVANCED(CYBOZU BACKUP_TEST WITHOUT_SERVER DISABLE_SHARED) - + + +include(CheckCSourceCompiles) +include(CheckCXXSourceCompiles) +# We need some extra FAIL_REGEX patterns +# Note that CHECK_C_SOURCE_COMPILES is a misnomer, it will also link. +MACRO (MY_CHECK_C_COMPILER_FLAG FLAG RESULT) + SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") + SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}") + CHECK_C_SOURCE_COMPILES("int main(void) { return 0; }" ${RESULT} + FAIL_REGEX "argument unused during compilation" + FAIL_REGEX "unsupported .*option" + FAIL_REGEX "unknown .*option" + FAIL_REGEX "unrecognized .*option" + FAIL_REGEX "ignoring unknown option" + FAIL_REGEX "[Ww]arning: [Oo]ption" + ) + SET(CMAKE_REQUIRED_FLAGS "${SAVE_CMAKE_REQUIRED_FLAGS}") +ENDMACRO() + +MACRO (MY_CHECK_CXX_COMPILER_FLAG FLAG RESULT) + SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") + SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${FLAG}") + CHECK_CXX_SOURCE_COMPILES("int main(void) { return 0; }" ${RESULT} + FAIL_REGEX "argument unused during compilation" + FAIL_REGEX "unsupported .*option" + FAIL_REGEX "unknown .*option" + FAIL_REGEX "unrecognized .*option" + FAIL_REGEX "ignoring unknown option" + FAIL_REGEX "[Ww]arning: [Oo]ption" + ) + SET(CMAKE_REQUIRED_FLAGS "${SAVE_CMAKE_REQUIRED_FLAGS}") +ENDMACRO() + +OPTION(WITH_ASAN "Enable address sanitizer" OFF) +IF (WITH_ASAN) + # gcc 4.8.1 and new versions of clang + MY_CHECK_C_COMPILER_FLAG("-fsanitize=address" HAVE_C_FSANITIZE) + MY_CHECK_CXX_COMPILER_FLAG("-fsanitize=address" HAVE_CXX_FSANITIZE) + + IF(HAVE_C_FSANITIZE AND HAVE_CXX_FSANITIZE) + # We switch on basic optimization also for debug builds. + # With optimization we may get some warnings, so we switch off -Werror + SET(CMAKE_C_FLAGS_DEBUG + "${CMAKE_C_FLAGS_DEBUG} -fsanitize=address -O1 -Wno-error -fPIC") + SET(CMAKE_C_FLAGS_RELWITHDEBINFO + "${CMAKE_C_FLAGS_RELWITHDEBINFO} -fsanitize=address -fPIC") + SET(CMAKE_CXX_FLAGS_DEBUG + "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -O1 -Wno-error -fPIC") + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO + "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -fsanitize=address -fPIC") + SET(WITH_ASAN_OK 1) + ELSE() + # older versions of clang + MY_CHECK_C_COMPILER_FLAG("-faddress-sanitizer" HAVE_C_FADDRESS) + MY_CHECK_CXX_COMPILER_FLAG("-faddress-sanitizer" HAVE_CXX_FFADDRESS) + + IF(HAVE_C_FADDRESS AND HAVE_CXX_FFADDRESS) + # We switch on basic optimization also for debug builds. + SET(CMAKE_C_FLAGS_DEBUG + "${CMAKE_C_FLAGS_DEBUG} -faddress-sanitizer -O1 -fPIC") + SET(CMAKE_C_FLAGS_RELWITHDEBINFO + "${CMAKE_C_FLAGS_RELWITHDEBINFO} -faddress-sanitizer -fPIC") + SET(CMAKE_CXX_FLAGS_DEBUG + "${CMAKE_CXX_FLAGS_DEBUG} -faddress-sanitizer -O1 -fPIC") + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO + "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -faddress-sanitizer -fPIC") + SET(WITH_ASAN_OK 1) + ENDIF() + ENDIF() + + IF(NOT WITH_ASAN_OK) + MESSAGE(FATAL_ERROR "Do not know how to enable address sanitizer") + ENDIF() +ENDIF() + + OPTION(ENABLE_DEBUG_SYNC "Enable debug sync (debug builds only)" ON) IF(ENABLE_DEBUG_SYNC) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC") -- cgit v1.2.1 From cc4043f013ba796050ba1a971e5806d3bc0ca572 Mon Sep 17 00:00:00 2001 From: Sujatha Sivakumar Date: Mon, 23 Sep 2013 12:13:37 +0530 Subject: Bug#17327454:SEMI-SYNC REPLICATION MASTER CRASH WHEN SET RPL_SEMI_SYNC_MASTER_ENABLED OFF. Problem: ======= If master is waiting for a reply from slave, at this time set global rpl_semi_sync_master_enabled=OFF, the master server will crash. Analysis: ======== When master is waiting for a reply from slave, at this time if semi sync is switched off on master, during switch off if active transactions are present the transactions will be cleared and "active_tranxs_" variable will be set to NULL. When the waiting master connection finds that semi sync is switched of it tries to access "active_tranxs_" without checking if the transaction list exists or not. Accessing NULL transaction list causes the crash. Fix: === A check has been added to see a valid list exists before accessing the "active_tranxs_". plugin/semisync/semisync_master.cc: Added check for the existence of valid 'active_transx_'. --- plugin/semisync/semisync_master.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/semisync/semisync_master.cc b/plugin/semisync/semisync_master.cc index 1be876d0f1b..87adbdcae79 100644 --- a/plugin/semisync/semisync_master.cc +++ b/plugin/semisync/semisync_master.cc @@ -752,7 +752,8 @@ int ReplSemiSyncMaster::commitTrx(const char* trx_wait_binlog_name, At this point, the binlog file and position of this transaction must have been removed from ActiveTranx. */ - assert(!active_tranxs_->is_tranx_end_pos(trx_wait_binlog_name, + assert(!getMasterEnabled() || + !active_tranxs_->is_tranx_end_pos(trx_wait_binlog_name, trx_wait_binlog_pos)); /* Update the status counter. */ -- cgit v1.2.1 From d4011a614411e67633cc75a6233c74a22dd32ff5 Mon Sep 17 00:00:00 2001 From: Shivji Kumar Jha Date: Fri, 27 Sep 2013 01:24:16 +0530 Subject: BUG#16580366- MTR TESTS FAILING SPORADICALLY ON PB2 (5.5, 5.6 AND 5.7) DURING INNODB RECOVERY Problem: ======= The connection 'master' is dropped by mysqltest after rpl_end.inc. At this point, dropping temporary tables at the connection 'master' are not synced at slave. So, the temporary tables replicated from master remain on slave leading to an inconsistent close of the test. The following test thus complains about the presence of temporary table(s) left over from the previous test. Fix: === - Put explicit drop commands in replication tests so that the temporary tables are dropped at slave as well. - Added the check for Slave_open_temp_tables in mtr_check.sql to warn about the remaining temporary table, if any, at the close of a test. --- mysql-test/extra/rpl_tests/rpl_drop_create_temp_table.inc | 10 +++++++--- mysql-test/extra/rpl_tests/rpl_innodb.test | 2 +- mysql-test/extra/rpl_tests/rpl_reset_slave.test | 3 +++ mysql-test/include/mtr_check.sql | 2 ++ .../suite/rpl/r/rpl_create_tmp_table_if_not_exists.result | 3 +++ mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result | 1 + mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result | 6 ++++++ mysql-test/suite/rpl/r/rpl_rotate_logs.result | 1 + mysql-test/suite/rpl/r/rpl_row_drop_create_temp_table.result | 6 ++++++ mysql-test/suite/rpl/r/rpl_row_reset_slave.result | 1 + mysql-test/suite/rpl/r/rpl_stm_000001.result | 1 + mysql-test/suite/rpl/r/rpl_stm_drop_create_temp_table.result | 6 ++++++ mysql-test/suite/rpl/r/rpl_stm_innodb.result | 1 + mysql-test/suite/rpl/r/rpl_stm_reset_slave.result | 1 + mysql-test/suite/rpl/t/rpl_create_tmp_table_if_not_exists.test | 4 ++++ mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.test | 1 + mysql-test/suite/rpl/t/rpl_rotate_logs.test | 1 + mysql-test/suite/rpl/t/rpl_stm_000001.test | 2 +- 18 files changed, 47 insertions(+), 5 deletions(-) diff --git a/mysql-test/extra/rpl_tests/rpl_drop_create_temp_table.inc b/mysql-test/extra/rpl_tests/rpl_drop_create_temp_table.inc index 094e84537db..983851adfcd 100644 --- a/mysql-test/extra/rpl_tests/rpl_drop_create_temp_table.inc +++ b/mysql-test/extra/rpl_tests/rpl_drop_create_temp_table.inc @@ -150,10 +150,9 @@ if (`SELECT HEX(@commands) = HEX('configure')`) } # -# Drops tables and synchronizes master and slave. Note that temporary -# tables are not explitcily dropped as they will be dropped while -# closing the connection. +# Drops tables and synchronizes master and slave. # + if (`SELECT HEX(@commands) = HEX('clean')`) { connection master; @@ -162,10 +161,15 @@ if (`SELECT HEX(@commands) = HEX('clean')`) DROP TABLE IF EXISTS nt_xx_1; + DROP TEMPORARY TABLE IF EXISTS tt_tmp_xx_1; + DROP TEMPORARY TABLE IF EXISTS nt_tmp_xx_1; + --let $n= $tot_table while ($n) { --eval DROP TABLE IF EXISTS nt_$n + --eval DROP TEMPORARY TABLE IF EXISTS tt_tmp_$n + --eval DROP TEMPORARY TABLE IF EXISTS nt_tmp_$n --dec $n } diff --git a/mysql-test/extra/rpl_tests/rpl_innodb.test b/mysql-test/extra/rpl_tests/rpl_innodb.test index e590bd70c88..11aa58f730f 100644 --- a/mysql-test/extra/rpl_tests/rpl_innodb.test +++ b/mysql-test/extra/rpl_tests/rpl_innodb.test @@ -112,7 +112,7 @@ FLUSH LOGS; --echo -------- switch to master -------- connection master; FLUSH LOGS; - +DROP TEMPORARY TABLE IF EXISTS mysqltest1.tmp2; DROP DATABASE mysqltest1; --echo End of 5.1 tests diff --git a/mysql-test/extra/rpl_tests/rpl_reset_slave.test b/mysql-test/extra/rpl_tests/rpl_reset_slave.test index 0d94f04ca44..44bd650682d 100644 --- a/mysql-test/extra/rpl_tests/rpl_reset_slave.test +++ b/mysql-test/extra/rpl_tests/rpl_reset_slave.test @@ -38,6 +38,9 @@ reset slave; source include/start_slave.inc; sync_with_master; show status like 'slave_open_temp_tables'; +connection master; +drop temporary table if exists t1; +sync_slave_with_master; # #Bug#34654 RESET SLAVE does not clear LAST_IO_Err* diff --git a/mysql-test/include/mtr_check.sql b/mysql-test/include/mtr_check.sql index fbe5df632c6..9c51b333ec6 100644 --- a/mysql-test/include/mtr_check.sql +++ b/mysql-test/include/mtr_check.sql @@ -72,6 +72,8 @@ BEGIN mysql.time_zone_transition_type, mysql.user; + show status like 'slave_open_temp_tables'; + END|| -- diff --git a/mysql-test/suite/rpl/r/rpl_create_tmp_table_if_not_exists.result b/mysql-test/suite/rpl/r/rpl_create_tmp_table_if_not_exists.result index 6bafbb32897..40a38ee8592 100644 --- a/mysql-test/suite/rpl/r/rpl_create_tmp_table_if_not_exists.result +++ b/mysql-test/suite/rpl/r/rpl_create_tmp_table_if_not_exists.result @@ -15,4 +15,7 @@ master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE IF NOT EXISTS t master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE IF NOT EXISTS tmp1 LIKE tmp master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE IF NOT EXISTS tmp1 LIKE tmp master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE IF NOT EXISTS tmp2 SELECT * FROM tmp +DROP TEMPORARY TABLE tmp; +DROP TEMPORARY TABLE tmp1; +DROP TEMPORARY TABLE tmp2; include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result b/mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result index 99c5846cea0..55c74b0b533 100644 --- a/mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result +++ b/mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result @@ -42,4 +42,5 @@ t5 CREATE TABLE `t5` ( `created` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 drop table t2,t3,t5; +drop temporary table t4; include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result b/mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result index 761ff2f8e98..57c947c9333 100644 --- a/mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result +++ b/mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result @@ -1554,8 +1554,14 @@ master-bin.000001 # Query # # COMMIT SET @commands= 'clean'; DROP TABLE IF EXISTS tt_xx_1; DROP TABLE IF EXISTS nt_xx_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_xx_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_xx_1; DROP TABLE IF EXISTS nt_2; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_2; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_2; DROP TABLE IF EXISTS nt_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_1; DROP TABLE IF EXISTS tt_2; DROP TABLE IF EXISTS tt_1; SET @commands= ''; diff --git a/mysql-test/suite/rpl/r/rpl_rotate_logs.result b/mysql-test/suite/rpl/r/rpl_rotate_logs.result index 256ed4eaad2..9459361cb30 100644 --- a/mysql-test/suite/rpl/r/rpl_rotate_logs.result +++ b/mysql-test/suite/rpl/r/rpl_rotate_logs.result @@ -85,6 +85,7 @@ lock tables t3 read; include/assert.inc [Table t3 should contain 100 lines on the slave] unlock tables; drop table if exists t1,t2,t3,t4; +drop temporary table temp_table; End of 4.1 tests show binlog events in 'non existing_binlog_file'; ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log diff --git a/mysql-test/suite/rpl/r/rpl_row_drop_create_temp_table.result b/mysql-test/suite/rpl/r/rpl_row_drop_create_temp_table.result index 88754e2cf8c..a55c8e2a2bc 100644 --- a/mysql-test/suite/rpl/r/rpl_row_drop_create_temp_table.result +++ b/mysql-test/suite/rpl/r/rpl_row_drop_create_temp_table.result @@ -1619,8 +1619,14 @@ master-bin.000001 # Query # # COMMIT SET @commands= 'clean'; DROP TABLE IF EXISTS tt_xx_1; DROP TABLE IF EXISTS nt_xx_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_xx_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_xx_1; DROP TABLE IF EXISTS nt_2; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_2; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_2; DROP TABLE IF EXISTS nt_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_1; DROP TABLE IF EXISTS tt_2; DROP TABLE IF EXISTS tt_1; SET @commands= ''; diff --git a/mysql-test/suite/rpl/r/rpl_row_reset_slave.result b/mysql-test/suite/rpl/r/rpl_row_reset_slave.result index 41fe0b1a9f3..1cf70ba7e67 100644 --- a/mysql-test/suite/rpl/r/rpl_row_reset_slave.result +++ b/mysql-test/suite/rpl/r/rpl_row_reset_slave.result @@ -23,6 +23,7 @@ include/start_slave.inc show status like 'slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 0 +drop temporary table if exists t1; include/stop_slave.inc reset slave; include/check_slave_no_error.inc diff --git a/mysql-test/suite/rpl/r/rpl_stm_000001.result b/mysql-test/suite/rpl/r/rpl_stm_000001.result index 9493013a283..7aeff0d3d46 100644 --- a/mysql-test/suite/rpl/r/rpl_stm_000001.result +++ b/mysql-test/suite/rpl/r/rpl_stm_000001.result @@ -48,6 +48,7 @@ select (@id := id) - id from t2; 0 kill @id; drop table t2; +drop temporary table t3; Got one of the listed errors include/wait_for_slave_sql_error_and_skip.inc [errno=1053] select count(*) from t1; diff --git a/mysql-test/suite/rpl/r/rpl_stm_drop_create_temp_table.result b/mysql-test/suite/rpl/r/rpl_stm_drop_create_temp_table.result index 42f16a4c175..08b318fbb43 100644 --- a/mysql-test/suite/rpl/r/rpl_stm_drop_create_temp_table.result +++ b/mysql-test/suite/rpl/r/rpl_stm_drop_create_temp_table.result @@ -1604,8 +1604,14 @@ master-bin.000001 # Query # # ROLLBACK SET @commands= 'clean'; DROP TABLE IF EXISTS tt_xx_1; DROP TABLE IF EXISTS nt_xx_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_xx_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_xx_1; DROP TABLE IF EXISTS nt_2; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_2; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_2; DROP TABLE IF EXISTS nt_1; +DROP TEMPORARY TABLE IF EXISTS tt_tmp_1; +DROP TEMPORARY TABLE IF EXISTS nt_tmp_1; DROP TABLE IF EXISTS tt_2; DROP TABLE IF EXISTS tt_1; SET @commands= ''; diff --git a/mysql-test/suite/rpl/r/rpl_stm_innodb.result b/mysql-test/suite/rpl/r/rpl_stm_innodb.result index 0e9531317b9..6f54b232e71 100644 --- a/mysql-test/suite/rpl/r/rpl_stm_innodb.result +++ b/mysql-test/suite/rpl/r/rpl_stm_innodb.result @@ -79,6 +79,7 @@ COUNT(*) FLUSH LOGS; -------- switch to master -------- FLUSH LOGS; +DROP TEMPORARY TABLE IF EXISTS mysqltest1.tmp2; DROP DATABASE mysqltest1; End of 5.1 tests # diff --git a/mysql-test/suite/rpl/r/rpl_stm_reset_slave.result b/mysql-test/suite/rpl/r/rpl_stm_reset_slave.result index b1473c937a1..e5870cec2c9 100644 --- a/mysql-test/suite/rpl/r/rpl_stm_reset_slave.result +++ b/mysql-test/suite/rpl/r/rpl_stm_reset_slave.result @@ -23,6 +23,7 @@ include/start_slave.inc show status like 'slave_open_temp_tables'; Variable_name Value Slave_open_temp_tables 1 +drop temporary table if exists t1; include/stop_slave.inc reset slave; include/check_slave_no_error.inc diff --git a/mysql-test/suite/rpl/t/rpl_create_tmp_table_if_not_exists.test b/mysql-test/suite/rpl/t/rpl_create_tmp_table_if_not_exists.test index daf6b7e9ad8..bf2c5442d40 100644 --- a/mysql-test/suite/rpl/t/rpl_create_tmp_table_if_not_exists.test +++ b/mysql-test/suite/rpl/t/rpl_create_tmp_table_if_not_exists.test @@ -38,4 +38,8 @@ CREATE TEMPORARY TABLE IF NOT EXISTS tmp2 SELECT * FROM tmp; CREATE TEMPORARY TABLE IF NOT EXISTS tmp2 SELECT * FROM tmp; source include/show_binlog_events.inc; +DROP TEMPORARY TABLE tmp; +DROP TEMPORARY TABLE tmp1; +DROP TEMPORARY TABLE tmp2; + --source include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.test b/mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.test index cbd7e9c2558..4309dc3f9b1 100644 --- a/mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.test +++ b/mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.test @@ -43,6 +43,7 @@ show create table t3; show create table t5; connection master; drop table t2,t3,t5; +drop temporary table t4; sync_slave_with_master; # End of 4.1 tests diff --git a/mysql-test/suite/rpl/t/rpl_rotate_logs.test b/mysql-test/suite/rpl/t/rpl_rotate_logs.test index dc158d7ef92..4d0c93f46bd 100644 --- a/mysql-test/suite/rpl/t/rpl_rotate_logs.test +++ b/mysql-test/suite/rpl/t/rpl_rotate_logs.test @@ -218,6 +218,7 @@ unlock tables; #clean up connection master; drop table if exists t1,t2,t3,t4; +drop temporary table temp_table; sync_slave_with_master; --echo End of 4.1 tests diff --git a/mysql-test/suite/rpl/t/rpl_stm_000001.test b/mysql-test/suite/rpl/t/rpl_stm_000001.test index 268a10ad1fa..e7237af57c3 100644 --- a/mysql-test/suite/rpl/t/rpl_stm_000001.test +++ b/mysql-test/suite/rpl/t/rpl_stm_000001.test @@ -91,8 +91,8 @@ connection master1; sleep 3; select (@id := id) - id from t2; kill @id; -# We don't drop t3 as this is a temporary table drop table t2; +drop temporary table t3; connection master; # The get_lock function causes warning for unsafe statement. --disable_warnings -- cgit v1.2.1 -- cgit v1.2.1 From e64b9e12509f7fc800a55864c83ea26e0f51d515 Mon Sep 17 00:00:00 2001 From: Yasufumi Kinoshita Date: Mon, 30 Sep 2013 13:41:48 +0900 Subject: Bug#11758196 : INNODB ASSERTION FAILURE WHEN CONVERTING FROM MYISAM TO INNODB Changed to try to extend log buffer instead of crash, when log size is too large for the size. Approved by Marko in rb#3229 --- storage/innobase/include/log0log.h | 2 + storage/innobase/log/log0log.c | 109 ++++++++++++++++++++++++++++++++++++- 2 files changed, 110 insertions(+), 1 deletion(-) diff --git a/storage/innobase/include/log0log.h b/storage/innobase/include/log0log.h index 5524272d811..b0e5e9bda3b 100644 --- a/storage/innobase/include/log0log.h +++ b/storage/innobase/include/log0log.h @@ -809,6 +809,8 @@ struct log_struct{ later; this is advanced when a flush operation is completed to all the log groups */ + volatile ibool is_extending; /*!< this is set to true during extend + the log buffer size */ ib_uint64_t written_to_some_lsn; /*!< first log sequence number not yet written to any log group; for this to diff --git a/storage/innobase/log/log0log.c b/storage/innobase/log/log0log.c index 8bae95f0a5d..046c494c99d 100644 --- a/storage/innobase/log/log0log.c +++ b/storage/innobase/log/log0log.c @@ -213,6 +213,84 @@ log_buf_pool_get_oldest_modification(void) return(lsn); } +/** Extends the log buffer. +@param[in] len requested minimum size in bytes */ +static +void +log_buffer_extend( + ulint len) +{ + ulint move_start; + ulint move_end; + byte tmp_buf[OS_FILE_LOG_BLOCK_SIZE]; + + mutex_enter(&(log_sys->mutex)); + + while (log_sys->is_extending) { + /* Another thread is trying to extend already. + Needs to wait for. */ + mutex_exit(&(log_sys->mutex)); + + log_buffer_flush_to_disk(); + + mutex_enter(&(log_sys->mutex)); + + if (srv_log_buffer_size > len / UNIV_PAGE_SIZE) { + /* Already extended enough by the others */ + mutex_exit(&(log_sys->mutex)); + return; + } + } + + log_sys->is_extending = TRUE; + + while (log_sys->n_pending_writes != 0 + || ut_calc_align_down(log_sys->buf_free, + OS_FILE_LOG_BLOCK_SIZE) + != ut_calc_align_down(log_sys->buf_next_to_write, + OS_FILE_LOG_BLOCK_SIZE)) { + /* Buffer might have >1 blocks to write still. */ + mutex_exit(&(log_sys->mutex)); + + log_buffer_flush_to_disk(); + + mutex_enter(&(log_sys->mutex)); + } + + move_start = ut_calc_align_down( + log_sys->buf_free, + OS_FILE_LOG_BLOCK_SIZE); + move_end = log_sys->buf_free; + + /* store the last log block in buffer */ + ut_memcpy(tmp_buf, log_sys->buf + move_start, + move_end - move_start); + + log_sys->buf_free -= move_start; + log_sys->buf_next_to_write -= move_start; + + /* reallocate log buffer */ + srv_log_buffer_size = len / UNIV_PAGE_SIZE + 1; + mem_free(log_sys->buf_ptr); + log_sys->buf_ptr = mem_alloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE); + log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE); + log_sys->buf_size = LOG_BUFFER_SIZE; + log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO + - LOG_BUF_FLUSH_MARGIN; + + /* restore the last log block */ + ut_memcpy(log_sys->buf, tmp_buf, move_end - move_start); + + ut_ad(log_sys->is_extending); + log_sys->is_extending = FALSE; + + mutex_exit(&(log_sys->mutex)); + + fprintf(stderr, + "InnoDB: innodb_log_buffer_size was extended to %lu.\n", + LOG_BUFFER_SIZE); +} + /************************************************************//** Opens the log for log_write_low. The log must be closed with log_close and released with log_release. @@ -233,11 +311,39 @@ log_reserve_and_open( ulint count = 0; #endif /* UNIV_DEBUG */ - ut_a(len < log->buf_size / 2); + if (len >= log->buf_size / 2) { + DBUG_EXECUTE_IF("ib_log_buffer_is_short_crash", + DBUG_SUICIDE();); + + /* log_buffer is too small. try to extend instead of crash. */ + ut_print_timestamp(stderr); + fprintf(stderr, + " InnoDB: Warning: " + "The transaction log size is too large" + " for innodb_log_buffer_size (%lu >= %lu / 2). " + "Trying to extend it.\n", + len, LOG_BUFFER_SIZE); + + log_buffer_extend((len + 1) * 2); + } loop: mutex_enter(&(log->mutex)); ut_ad(!recv_no_log_write); + if (log->is_extending) { + + mutex_exit(&(log->mutex)); + + /* Log buffer size is extending. Writing up to the next block + should wait for the extending finished. */ + + os_thread_sleep(100000); + + ut_ad(++count < 50); + + goto loop; + } + /* Calculate an upper limit for the space the string may take in the log buffer */ @@ -788,6 +894,7 @@ log_init(void) log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE); log_sys->buf_size = LOG_BUFFER_SIZE; + log_sys->is_extending = FALSE; memset(log_sys->buf, '\0', LOG_BUFFER_SIZE); -- cgit v1.2.1 From d4800a57badc79d380492810b648db6e52511e14 Mon Sep 17 00:00:00 2001 From: Yasufumi Kinoshita Date: Mon, 30 Sep 2013 15:02:54 +0900 Subject: Adjustment for fix for Bug#11758196 log_buffer_extend() should fill the new buffer with 0. --- storage/innobase/log/log0log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/log/log0log.c b/storage/innobase/log/log0log.c index 046c494c99d..eacee12a2d4 100644 --- a/storage/innobase/log/log0log.c +++ b/storage/innobase/log/log0log.c @@ -275,6 +275,7 @@ log_buffer_extend( log_sys->buf_ptr = mem_alloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE); log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE); log_sys->buf_size = LOG_BUFFER_SIZE; + memset(log_sys->buf, '\0', LOG_BUFFER_SIZE); log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO - LOG_BUF_FLUSH_MARGIN; -- cgit v1.2.1 From 2ea00f9f6e3531336af254489c5061b01ff8dd44 Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Mon, 30 Sep 2013 12:29:10 +0530 Subject: Fix to copy missing pdb files BUG 13878021 --- CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 369a6b5c8f9..0de56225155 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -464,6 +464,27 @@ IF(NOT INSTALL_LAYOUT MATCHES "RPM") ) INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) INSTALL(FILES ${CMAKE_BINARY_DIR}/Docs/INFO_SRC ${CMAKE_BINARY_DIR}/Docs/INFO_BIN DESTINATION ${INSTALL_DOCDIR}) + + IF(WIN32) + SET(EXTRA_PDB_FILES + ${CMAKE_BINARY_DIR}/libmysql/authentication_win/${CMAKE_BUILD_TYPE}/auth_win_client.pdb + ${CMAKE_BINARY_DIR}/libmysql/${CMAKE_BUILD_TYPE}/clientlib.pdb + ${CMAKE_BINARY_DIR}/strings/${CMAKE_BUILD_TYPE}/strings.pdb + ${CMAKE_BINARY_DIR}/mysys/${CMAKE_BUILD_TYPE}/mysys.pdb + ${CMAKE_BINARY_DIR}/vio/${CMAKE_BUILD_TYPE}/vio.pdb + ${CMAKE_BINARY_DIR}/zlib/${CMAKE_BUILD_TYPE}/zlib.pdb + ${CMAKE_BINARY_DIR}/extra/yassl/${CMAKE_BUILD_TYPE}/yassl.pdb + ${CMAKE_BINARY_DIR}/extra/yassl/taocrypt/${CMAKE_BUILD_TYPE}/taocrypt.pdb + ) + INSTALL(FILES ${EXTRA_PDB_FILES} DESTINATION ${INSTALL_LIBDIR} COMPONENT DebugBinaries) + FOREACH(f ${EXTRA_PDB_FILES}) + STRING(REPLACE "RelWithDebInfo" "Debug" df ${f}) + IF(EXISTS ${df}) + INSTALL(FILES ${df} DESTINATION ${INSTALL_LIBDIR}/debug COMPONENT DebugBinaries) + ENDIF() + ENDFOREACH() + ENDIF() + IF(UNIX) INSTALL(FILES Docs/INSTALL-BINARY DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) ENDIF() -- cgit v1.2.1 From bac7961358507bd617c18f3eb5ff6963dd9fac25 Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Mon, 30 Sep 2013 12:41:22 +0530 Subject: Fix for Bug:16053094 Registry redirection was improper and hence not able to pick the value for the OLDERVERSION property. as a result in the install upgrade dialog null value wa being passed. --- packaging/WiX/mysql_server.wxs.in | 42 +++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/packaging/WiX/mysql_server.wxs.in b/packaging/WiX/mysql_server.wxs.in index 752dc15304e..65688838316 100644 --- a/packaging/WiX/mysql_server.wxs.in +++ b/packaging/WiX/mysql_server.wxs.in @@ -70,10 +70,10 @@ Installed - + - + @@ -83,31 +83,43 @@ Name="InstallLocation" Type="raw" /> - - - - + + + + + + + + + + - + - - - INSTALLDIR2 - + + + INSTALLDIR2 + -- cgit v1.2.1 From 99146a50560a282973615addf47c4287fc226e7f Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Mon, 30 Sep 2013 13:01:17 +0530 Subject: Bug #16619754 - MYSQL_INSTALL_DB.PL FAILS TO CREATE DATABASE ON WINDOWS. As this mysql_install_db.pl file has always generated lots of confusion on Windows. This fix will make sure to get it removed only from Windows --- scripts/CMakeLists.txt | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 424d92e31e1..d5a3311d942 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -198,24 +198,17 @@ ELSE() SET(localstatedir ${MYSQL_DATADIR}) ENDIF() -IF(UNIX) -CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh - ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) +IF(NOT WIN32) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) SET(DEST ${INSTALL_SCRIPTDIR}) - SET(EXT) -ELSE() - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in - ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db.pl ESCAPE_QUOTES @ONLY) - SET(DEST ${INSTALL_SCRIPTDIR}) - SET(EXT ".pl") -ENDIF() -INSTALL_SCRIPT( - "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db${EXT}" - DESTINATION ${DEST} - COMPONENT Server + INSTALL_SCRIPT( + "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db" + DESTINATION ${DEST} + COMPONENT Server ) - +ENDIF() SET(prefix "${CMAKE_INSTALL_PREFIX}") SET(sysconfdir ${prefix}) -- cgit v1.2.1 From 6ca4be9c03cd8d51b326389eeac6e767a36ec188 Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Tue, 1 Oct 2013 10:05:45 +0200 Subject: Bug#14621190: HA_INNOBASE::INDEX_NEXT SKIPS A RECORD IF PREVIOUS INDEX_READ_MAP HAD NO MATCH If index_read_map is called for exact search and no matching records exists it will position the cursor on the next record, but still having the relative position to BTR_PCUR_ON. This will make a call for index_next to read yet another next record, instead of returning the record the cursor points to. Fixed by setting pcur->rel_pos = BTR_PCUR_BEFORE if an exact [prefix] search is done, but failed. Also avoids optimistic restoration if rel_pos != BTR_PCUR_ON, since btr_cur may be different than old_rec. rb#3324, approved by Marko and Jimmy --- .../suite/innodb/r/innodb_bug13510739.result | 2 +- storage/innobase/btr/btr0pcur.c | 12 +++++------ storage/innobase/row/row0sel.c | 24 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/mysql-test/suite/innodb/r/innodb_bug13510739.result b/mysql-test/suite/innodb/r/innodb_bug13510739.result index 8aa4323eeb0..e1e6e27239c 100644 --- a/mysql-test/suite/innodb/r/innodb_bug13510739.result +++ b/mysql-test/suite/innodb/r/innodb_bug13510739.result @@ -6,5 +6,5 @@ HANDLER bug13510739 READ `primary` = (2); c HANDLER bug13510739 READ `primary` NEXT; c -4 +3 DROP TABLE bug13510739; diff --git a/storage/innobase/btr/btr0pcur.c b/storage/innobase/btr/btr0pcur.c index 0cfdf138bad..fbedc1e7d04 100644 --- a/storage/innobase/btr/btr0pcur.c +++ b/storage/innobase/btr/btr0pcur.c @@ -273,13 +273,15 @@ btr_pcur_restore_position_func( if (UNIV_LIKELY(latch_mode == BTR_SEARCH_LEAF) || UNIV_LIKELY(latch_mode == BTR_MODIFY_LEAF)) { - /* Try optimistic restoration */ + /* Try optimistic restoration if cursor is expected to be + positioned on the same btr record as before (BTR_PCUR_ON). */ - if (UNIV_LIKELY(buf_page_optimistic_get( + if (cursor->rel_pos == BTR_PCUR_ON + && buf_page_optimistic_get( latch_mode, cursor->block_when_stored, cursor->modify_clock, - file, line, mtr))) { + file, line, mtr)) { cursor->pos_state = BTR_PCUR_IS_POSITIONED; buf_block_dbg_add_level( @@ -287,7 +289,7 @@ btr_pcur_restore_position_func( dict_index_is_ibuf(index) ? SYNC_IBUF_TREE_NODE : SYNC_TREE_NODE); - if (cursor->rel_pos == BTR_PCUR_ON) { + { #ifdef UNIV_DEBUG const rec_t* rec; const ulint* offsets1; @@ -312,8 +314,6 @@ btr_pcur_restore_position_func( #endif /* UNIV_DEBUG */ return(TRUE); } - - return(FALSE); } } diff --git a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c index 518eba975ab..28da1f69e8a 100644 --- a/storage/innobase/row/row0sel.c +++ b/storage/innobase/row/row0sel.c @@ -3116,6 +3116,13 @@ sel_restore_position_for_mysql( return(TRUE); } + /* success can only be TRUE for BTR_PCUR_ON! */ + ut_ad(!success); + + /* BTR_PCUR_BEFORE -> the position is now set to the record before + pcur->old_rec. + BTR_PCUR_AFTER-> positioned to record after pcur->old_rec. */ + if (relative_position == BTR_PCUR_AFTER || relative_position == BTR_PCUR_AFTER_LAST_IN_TREE) { @@ -4120,6 +4127,14 @@ wrong_offs: btr_pcur_store_position(pcur, &mtr); + /* The found record was not a match, but may be used + as NEXT record (index_next). Set the relative position + to BTR_PCUR_BEFORE, to reflect that the position of + the persistent cursor is before the found/stored row + (pcur->old_rec). */ + ut_ad(pcur->rel_pos == BTR_PCUR_ON); + pcur->rel_pos = BTR_PCUR_BEFORE; + err = DB_RECORD_NOT_FOUND; /* ut_print_name(stderr, index->name); fputs(" record not found 3\n", stderr); */ @@ -4159,6 +4174,14 @@ wrong_offs: btr_pcur_store_position(pcur, &mtr); + /* The found record was not a match, but may be used + as NEXT record (index_next). Set the relative position + to BTR_PCUR_BEFORE, to reflect that the position of + the persistent cursor is before the found/stored row + (pcur->old_rec). */ + ut_ad(pcur->rel_pos == BTR_PCUR_ON); + pcur->rel_pos = BTR_PCUR_BEFORE; + err = DB_RECORD_NOT_FOUND; /* ut_print_name(stderr, index->name); fputs(" record not found 4\n", stderr); */ @@ -4736,6 +4759,7 @@ normal_return: if (prebuilt->n_fetch_cached > 0) { row_sel_pop_cached_row_for_mysql(buf, prebuilt); + DEBUG_SYNC_C("row_search_cached_row"); err = DB_SUCCESS; } -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 From c904103b3fd115897b2b079db6829a11565936af Mon Sep 17 00:00:00 2001 From: Praveenkumar Hulakund Date: Sat, 5 Oct 2013 15:29:02 +0530 Subject: Bug#11745656 - KILL THREAD -> ERROR: "SERVER SHUTDOWN IN PROGRESS" Description: ------------ There are 2 issues reported in the bug report, 1. One session running a "long" select, then, from the other session, you kill that first one, while select is running, and it receives that message "Server shutdown in progress". Reported Date: 02-Apr-2006 => Looks like this isuse is already fixed in 2009 by the patch pushed for bug28141. 2. Killing query which goes to filesort, logs error entries like: 120416 9:17:28 [ERROR] mysqld: Sort aborted: Server shutdown in progress 120416 9:18:48 [ERROR] mysqld: Sort aborted: Server shutdown in progress 120416 9:19:39 [ERROR] mysqld: Sort aborted: Server shutdown in progress Reported Date: 16-Apr-2012 => This issue is introduced in 5.5+ versions. Fixing this issue in this patch. Analysis: --------- In function "filesort()", on error we are logging error message. To the error message, the message related THD::killed_errno is also appeneded, if it is set.(THD::kill_errno value is obtained by calling member function THD::killed_errno) In the scenario mentioned in this bug report, when we kill the connection, THD::kill_errno is set to the THD::KILL_CONNECTION. Enum type THD::KILL_CONNECTION corressponds to value ER_SERVER_SHUTDOWN. Because of this, "Server shutdown in ...." is appended to the message logged. Fix: ---- Modified code of "filesort()" function to append "KILL_QUERY" status to error message when thread is killed and server shutdown is not in progress. --- sql/filesort.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/filesort.cc b/sql/filesort.cc index e829721a29b..d877ff4a8a4 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -339,7 +339,10 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length, "%s: %s", MYF(ME_ERROR + ME_WAITTANG), ER_THD(thd, ER_FILSORT_ABORT), - kill_errno ? ER(kill_errno) : thd->stmt_da->message()); + kill_errno ? ((kill_errno == THD::KILL_CONNECTION && + !shutdown_in_progress) ? ER(THD::KILL_QUERY) : + ER(kill_errno)) : + thd->stmt_da->message()); if (global_system_variables.log_warnings > 1) { -- cgit v1.2.1 -- cgit v1.2.1 From 4db0c831a5a3b850fa554f77024feef092a4a45c Mon Sep 17 00:00:00 2001 From: Yasufumi Kinoshita Date: Mon, 7 Oct 2013 15:16:31 +0900 Subject: Bug#17431533 : FAILING ASSERTION: INDEX->PAGE != 0XFFFFFFFF AFTER DISCARDING TABLESPACE ha_innobase::records_in_range() should return HA_POS_ERROR for the table during discarded without requesting pages. The later other handler method should treat the error correctly. Approved by Sunny in rb#3433 --- storage/innobase/handler/ha_innodb.cc | 7 +++++++ storage/innodb_plugin/handler/ha_innodb.cc | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index 9f5ba543a47..8c9fc33fa35 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -6454,6 +6454,11 @@ ha_innobase::records_in_range( index = dict_table_get_index_noninline(prebuilt->table, key->name); + if (prebuilt->table->ibd_file_missing) { + n_rows = HA_POS_ERROR; + goto func_exit; + } + range_start = dtuple_create_for_mysql(&heap1, key->key_parts); dict_index_copy_types(range_start, index, key->key_parts); @@ -6503,6 +6508,8 @@ ha_innobase::records_in_range( my_free(key_val_buff2, MYF(0)); +func_exit: + prebuilt->trx->op_info = (char*)""; /* The MySQL optimizer seems to believe an estimate of 0 rows is diff --git a/storage/innodb_plugin/handler/ha_innodb.cc b/storage/innodb_plugin/handler/ha_innodb.cc index 971c55a623c..cde3c679766 100644 --- a/storage/innodb_plugin/handler/ha_innodb.cc +++ b/storage/innodb_plugin/handler/ha_innodb.cc @@ -7523,6 +7523,10 @@ ha_innobase::records_in_range( /* There exists possibility of not being able to find requested index due to inconsistency between MySQL and InoDB dictionary info. Necessary message should have been printed in innobase_get_index() */ + if (prebuilt->table->ibd_file_missing) { + n_rows = HA_POS_ERROR; + goto func_exit; + } if (UNIV_UNLIKELY(!index)) { n_rows = HA_POS_ERROR; goto func_exit; -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 From d97df1e8ff85b66640ed5ee90d4f08d249d73fce Mon Sep 17 00:00:00 2001 From: Luis Soares Date: Tue, 8 Oct 2013 18:37:43 +0100 Subject: BUG#17508351: REDUNDANT CODE IN REPLSEMISYNCMASTER::UPDATESYNCHEADER ReplSemiSyncMaster::updateSyncHeader contains redundant assignments to the local variable sync. This patch removes them. --- plugin/semisync/semisync_master.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugin/semisync/semisync_master.cc b/plugin/semisync/semisync_master.cc index 87adbdcae79..6b8bb915445 100644 --- a/plugin/semisync/semisync_master.cc +++ b/plugin/semisync/semisync_master.cc @@ -894,10 +894,7 @@ int ReplSemiSyncMaster::updateSyncHeader(unsigned char *packet, * target, do not request replies from the slave. */ if (!getMasterEnabled() || !is_semi_sync_slave()) - { - sync = false; return 0; - } function_enter(kWho); @@ -905,15 +902,12 @@ int ReplSemiSyncMaster::updateSyncHeader(unsigned char *packet, /* This is the real check inside the mutex. */ if (!getMasterEnabled()) - { - sync = false; - goto l_end; - } + goto l_end; // sync= false at this point in time if (is_on()) { /* semi-sync is ON */ - sync = false; /* No sync unless a transaction is involved. */ + /* sync= false; No sync unless a transaction is involved. */ if (reply_file_name_inited_) { -- cgit v1.2.1 From c8c948ffa6985e29752ffa7d851ede05037e148f Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Wed, 9 Oct 2013 11:10:46 +0530 Subject: Bug 13878021 - WINDOWS PACKAGE THAT INCLUDES .PDB FILES FOR INTERMEDIATE LIBRARIES USED --- CMakeLists.txt | 20 -------------------- extra/yassl/CMakeLists.txt | 5 +++++ extra/yassl/taocrypt/CMakeLists.txt | 5 +++++ libmysql/CMakeLists.txt | 2 ++ libmysql/authentication_win/CMakeLists.txt | 5 +++++ mysys/CMakeLists.txt | 5 +++++ strings/CMakeLists.txt | 5 +++++ vio/CMakeLists.txt | 5 +++++ zlib/CMakeLists.txt | 5 +++++ 9 files changed, 37 insertions(+), 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0de56225155..7f46c671f3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -465,26 +465,6 @@ IF(NOT INSTALL_LAYOUT MATCHES "RPM") INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) INSTALL(FILES ${CMAKE_BINARY_DIR}/Docs/INFO_SRC ${CMAKE_BINARY_DIR}/Docs/INFO_BIN DESTINATION ${INSTALL_DOCDIR}) - IF(WIN32) - SET(EXTRA_PDB_FILES - ${CMAKE_BINARY_DIR}/libmysql/authentication_win/${CMAKE_BUILD_TYPE}/auth_win_client.pdb - ${CMAKE_BINARY_DIR}/libmysql/${CMAKE_BUILD_TYPE}/clientlib.pdb - ${CMAKE_BINARY_DIR}/strings/${CMAKE_BUILD_TYPE}/strings.pdb - ${CMAKE_BINARY_DIR}/mysys/${CMAKE_BUILD_TYPE}/mysys.pdb - ${CMAKE_BINARY_DIR}/vio/${CMAKE_BUILD_TYPE}/vio.pdb - ${CMAKE_BINARY_DIR}/zlib/${CMAKE_BUILD_TYPE}/zlib.pdb - ${CMAKE_BINARY_DIR}/extra/yassl/${CMAKE_BUILD_TYPE}/yassl.pdb - ${CMAKE_BINARY_DIR}/extra/yassl/taocrypt/${CMAKE_BUILD_TYPE}/taocrypt.pdb - ) - INSTALL(FILES ${EXTRA_PDB_FILES} DESTINATION ${INSTALL_LIBDIR} COMPONENT DebugBinaries) - FOREACH(f ${EXTRA_PDB_FILES}) - STRING(REPLACE "RelWithDebInfo" "Debug" df ${f}) - IF(EXISTS ${df}) - INSTALL(FILES ${df} DESTINATION ${INSTALL_LIBDIR}/debug COMPONENT DebugBinaries) - ENDIF() - ENDFOREACH() - ENDIF() - IF(UNIX) INSTALL(FILES Docs/INSTALL-BINARY DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) ENDIF() diff --git a/extra/yassl/CMakeLists.txt b/extra/yassl/CMakeLists.txt index b8432f06ac6..94a336c53dc 100644 --- a/extra/yassl/CMakeLists.txt +++ b/extra/yassl/CMakeLists.txt @@ -37,4 +37,9 @@ ENDIF() ADD_CONVENIENCE_LIBRARY(yassl ${YASSL_SOURCES}) RESTRICT_SYMBOL_EXPORTS(yassl) +INSTALL_DEBUG_SYMBOLS(yassl) +IF(MSVC) + INSTALL_DEBUG_TARGET(yassl DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() + diff --git a/extra/yassl/taocrypt/CMakeLists.txt b/extra/yassl/taocrypt/CMakeLists.txt index 10ed614445e..9f1f2a102da 100644 --- a/extra/yassl/taocrypt/CMakeLists.txt +++ b/extra/yassl/taocrypt/CMakeLists.txt @@ -36,3 +36,8 @@ ENDIF() ADD_CONVENIENCE_LIBRARY(taocrypt ${TAOCRYPT_SOURCES}) RESTRICT_SYMBOL_EXPORTS(taocrypt) +INSTALL_DEBUG_SYMBOLS(taocrypt) +IF(MSVC) + INSTALL_DEBUG_TARGET(taocrypt DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() + diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt index 1d7a134aefa..83386d8073a 100644 --- a/libmysql/CMakeLists.txt +++ b/libmysql/CMakeLists.txt @@ -168,8 +168,10 @@ ENDIF() MERGE_LIBRARIES(mysqlclient STATIC ${LIBS} COMPONENT Development) # Visual Studio users need debug static library for debug projects +INSTALL_DEBUG_SYMBOLS(clientlib) IF(MSVC) INSTALL_DEBUG_TARGET(mysqlclient DESTINATION ${INSTALL_LIBDIR}/debug) + INSTALL_DEBUG_TARGET(clientlib DESTINATION ${INSTALL_LIBDIR}/debug) ENDIF() IF(UNIX) diff --git a/libmysql/authentication_win/CMakeLists.txt b/libmysql/authentication_win/CMakeLists.txt index 80cd14780e6..cd790975b34 100644 --- a/libmysql/authentication_win/CMakeLists.txt +++ b/libmysql/authentication_win/CMakeLists.txt @@ -31,3 +31,8 @@ TARGET_LINK_LIBRARIES(auth_win_client Secur32) # In IDE, group headers in a separate folder. SOURCE_GROUP(Headers REGULAR_EXPRESSION ".*h$") + +INSTALL_DEBUG_SYMBOLS(auth_win_client) +IF(MSVC) + INSTALL_DEBUG_TARGET(auth_win_client DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt index 95d3e568be7..648a87d1e95 100644 --- a/mysys/CMakeLists.txt +++ b/mysys/CMakeLists.txt @@ -77,3 +77,8 @@ ENDIF() ADD_EXECUTABLE(thr_lock thr_lock.c) TARGET_LINK_LIBRARIES(thr_lock mysys) SET_TARGET_PROPERTIES(thr_lock PROPERTIES COMPILE_FLAGS "-DMAIN") + +INSTALL_DEBUG_SYMBOLS(mysys) +IF(MSVC) + INSTALL_DEBUG_TARGET(mysys DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() diff --git a/strings/CMakeLists.txt b/strings/CMakeLists.txt index 552bf942700..77b093c4fb1 100644 --- a/strings/CMakeLists.txt +++ b/strings/CMakeLists.txt @@ -31,3 +31,8 @@ ENDIF() # Avoid dependencies on perschema data defined in mysys ADD_DEFINITIONS(-DDISABLE_MYSQL_THREAD_H) ADD_CONVENIENCE_LIBRARY(strings ${STRINGS_SOURCES}) + +INSTALL_DEBUG_SYMBOLS(strings) +IF(MSVC) + INSTALL_DEBUG_TARGET(strings DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() diff --git a/vio/CMakeLists.txt b/vio/CMakeLists.txt index e61281a43d8..bf811a0de9b 100644 --- a/vio/CMakeLists.txt +++ b/vio/CMakeLists.txt @@ -20,3 +20,8 @@ ADD_DEFINITIONS(${SSL_DEFINES}) SET(VIO_SOURCES vio.c viosocket.c viossl.c viosslfactories.c) ADD_CONVENIENCE_LIBRARY(vio ${VIO_SOURCES}) TARGET_LINK_LIBRARIES(vio ${LIBSOCKET}) + +INSTALL_DEBUG_SYMBOLS(vio) +IF(MSVC) + INSTALL_DEBUG_TARGET(vio DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt index 68799947e44..bcfacea4b0b 100644 --- a/zlib/CMakeLists.txt +++ b/zlib/CMakeLists.txt @@ -23,3 +23,8 @@ SET(ZLIB_SOURCES adler32.c compress.c crc32.c crc32.h deflate.c deflate.h gzio. ADD_CONVENIENCE_LIBRARY(zlib ${ZLIB_SOURCES}) RESTRICT_SYMBOL_EXPORTS(zlib) +INSTALL_DEBUG_SYMBOLS(zlib) +IF(MSVC) + INSTALL_DEBUG_TARGET(zlib DESTINATION ${INSTALL_LIBDIR}/debug) +ENDIF() + -- cgit v1.2.1 From c66a037dcaa757607acb7016be63d813a04d6d43 Mon Sep 17 00:00:00 2001 From: Praveenkumar Hulakund Date: Wed, 9 Oct 2013 13:32:31 +0530 Subject: Bug#17474166 - EXECUTING STATEMENT LIKE 'SHOW ENGINE INNODB' AND 'KILL SESSION' LEAD TO CRASH Analysis: -------- This situation occurs when the connection executes query "show engine innodb status" and this connection is killed by executing statement "kill " by another connection. In function "innodb_show_status", function "stat_print" is called to print the status but return value of function is not checked. After killing connection, if write to connection fails then error is returned and same is set in Diagnostic area. Since FALSE is returned from "innodb_show_status" now, assert to check no error is set in function "set_eof_status" (called from my_eof) is failing. Fix: ---- Changed code to check return value of function "stat_print" in "innodb_show_status". --- sql/handler.cc | 6 ++++++ sql/net_serv.cc | 8 +++++++- storage/innobase/handler/ha_innodb.cc | 8 +++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/sql/handler.cc b/sql/handler.cc index c3ad1cade99..6307e95a194 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -4921,8 +4921,14 @@ bool ha_show_status(THD *thd, handlerton *db_type, enum ha_stat_type stat) "", 0, "DISABLED", 8) ? 1 : 0; } else + { + DBUG_EXECUTE_IF("simulate_show_status_failure", + DBUG_SET("+d,simulate_net_write_failure");); result= db_type->show_status && db_type->show_status(db_type, thd, stat_print, stat) ? 1 : 0; + DBUG_EXECUTE_IF("simulate_show_status_failure", + DBUG_SET("-d,simulate_net_write_failure");); + } } if (!result) diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 1a79679ed7c..8b44c7d443f 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 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 @@ -370,6 +370,12 @@ my_net_write(NET *net,const uchar *packet,size_t len) MYSQL_NET_WRITE_START(len); + DBUG_EXECUTE_IF("simulate_net_write_failure", { + my_error(ER_NET_ERROR_ON_WRITE, MYF(0)); + return 1; + }; + ); + /* Big packets are handled by splitting them in packets of MAX_PACKET_LENGTH length. The last packet is always a packet that is < MAX_PACKET_LENGTH. diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index cabea01c95a..7d0a363be69 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -9526,6 +9526,7 @@ innodb_show_status( const long MAX_STATUS_SIZE = 1048576; ulint trx_list_start = ULINT_UNDEFINED; ulint trx_list_end = ULINT_UNDEFINED; + bool ret_val; DBUG_ENTER("innodb_show_status"); DBUG_ASSERT(hton == innodb_hton_ptr); @@ -9590,12 +9591,13 @@ innodb_show_status( mutex_exit(&srv_monitor_file_mutex); - stat_print(thd, innobase_hton_name, (uint) strlen(innobase_hton_name), - STRING_WITH_LEN(""), str, flen); + ret_val= stat_print(thd, innobase_hton_name, + (uint) strlen(innobase_hton_name), + STRING_WITH_LEN(""), str, flen); my_free(str); - DBUG_RETURN(FALSE); + DBUG_RETURN(ret_val); } /************************************************************************//** -- cgit v1.2.1 From d8bcc6215e5295b99418cc5ba2efdb9ba81d5c18 Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Wed, 9 Oct 2013 17:08:45 +0530 Subject: BUG 17560050 - MYSQL_INSTALL_DB SCRIPT FAILING WITH RESOLVEIP ISSUES. --- scripts/CMakeLists.txt | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index d5a3311d942..16d820e147e 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -198,17 +198,23 @@ ELSE() SET(localstatedir ${MYSQL_DATADIR}) ENDIF() -IF(NOT WIN32) - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in - ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) +IF(UNIX) +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) SET(DEST ${INSTALL_SCRIPTDIR}) + SET(EXT) +ELSE() + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db.pl ESCAPE_QUOTES @ONLY) + SET(DEST ${INSTALL_SCRIPTDIR}) + SET(EXT ".pl") +ENDIF() - INSTALL_SCRIPT( - "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db" - DESTINATION ${DEST} - COMPONENT Server +INSTALL_SCRIPT( + "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db${EXT}" + DESTINATION ${DEST} + COMPONENT Server ) -ENDIF() SET(prefix "${CMAKE_INSTALL_PREFIX}") SET(sysconfdir ${prefix}) -- cgit v1.2.1 -- cgit v1.2.1 From 3399194cefc7fcffcba4c304bbb3badec1afc21e Mon Sep 17 00:00:00 2001 From: Nuno Carvalho Date: Mon, 14 Oct 2013 15:45:12 +0100 Subject: WL#7266: Dump-thread additional concurrency tests This worklog aims at testing the two following scenarios: 1) Whenever the mysql_binlog_send method (dump thread) reaches the end of file when reading events from the binlog, before checking if it should wait for more events, there was a test to check if the file being read was still active, i.e, it was the last known binlog. However, it was possible that something was written to the binary log and then a rotation would happen, after EOF was detected and before the check for active was performed. In this case, the end of the binary log would not be read by the dump thread, and this would cause the slave to lose updates. This test verifies that the problem has been fixed. It waits during this window while forcing a rotation in the binlog. 2) Verify dump thread can send events in active file, correctly after encountering an IO error. --- .../suite/rpl/r/rpl_dump_events_twice_bug.result | 15 +++++++ .../suite/rpl/r/rpl_lost_events_on_rotate.result | 14 ++++++ .../suite/rpl/t/rpl_dump_events_twice_bug.test | 28 ++++++++++++ .../suite/rpl/t/rpl_lost_events_on_rotate.test | 51 ++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result create mode 100644 mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result create mode 100644 mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test create mode 100644 mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test diff --git a/mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result b/mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result new file mode 100644 index 00000000000..8e6c8c122b5 --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result @@ -0,0 +1,15 @@ +include/master-slave.inc +[connection master] +CALL mtr.add_suppression("Failed to read an event from active binlog.*"); +SET @debug_saved= @@GLOBAL.DEBUG; +CREATE TABLE t1(c1 INT); +INSERT INTO t1 VALUES(1); +[connection master] +SET GLOBAL debug='+d,dump_fake_io_error'; +INSERT INTO t1 VALUES(2); +INSERT INTO t1 VALUES(3); +include/diff_tables.inc [master:t1, slave:t1] +[connection master] +SET @@GLOBAL.DEBUG= @debug_saved; +DROP TABLE t1; +include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result b/mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result new file mode 100644 index 00000000000..eee2effccea --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result @@ -0,0 +1,14 @@ +include/master-slave.inc +[connection master] +SET @debug_saved= @@GLOBAL.DEBUG; +CREATE TABLE t (i INT); +SET GLOBAL DEBUG= "d,wait_after_binlog_EOF"; +INSERT INTO t VALUES (1); +INSERT INTO t VALUES (2); +FLUSH LOGS; +SET DEBUG_SYNC= 'now SIGNAL signal.rotate_finished'; +include/diff_tables.inc [master:t,slave:t] +SET @@GLOBAL.DEBUG= @debug_saved; +SET DEBUG_SYNC= 'RESET'; +DROP TABLE t; +include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test b/mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test new file mode 100644 index 00000000000..de82769010e --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test @@ -0,0 +1,28 @@ +# +# Verify dump thread can send events in active file, correctly after +# encountering an IO error. +# +--source include/have_debug.inc +--source include/master-slave.inc + +CALL mtr.add_suppression("Failed to read an event from active binlog.*"); +SET @debug_saved= @@GLOBAL.DEBUG; + +CREATE TABLE t1(c1 INT); +INSERT INTO t1 VALUES(1); + +--sync_slave_with_master + +--source include/rpl_connection_master.inc +SET GLOBAL debug='+d,dump_fake_io_error'; +INSERT INTO t1 VALUES(2); +INSERT INTO t1 VALUES(3); + +--sync_slave_with_master +--let $diff_tables= master:t1, slave:t1 +--source include/diff_tables.inc + +--source include/rpl_connection_master.inc +SET @@GLOBAL.DEBUG= @debug_saved; +DROP TABLE t1; +--source include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test b/mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test new file mode 100644 index 00000000000..08884ee8e26 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test @@ -0,0 +1,51 @@ +# +# Whenever the mysql_binlog_send method (dump thread) reaches the +# end of file when reading events from the binlog, before checking +# if it should wait for more events, there was a test to check if +# the file being read was still active, i.e, it was the last known +# binlog. However, it was possible that something was written to +# the binary log and then a rotation would happen, after EOF was +# detected and before the check for active was performed. In this +# case, the end of the binary log would not be read by the dump +# thread, and this would cause the slave to lose updates. +# +# This test verifies that the problem has been fixed. It waits +# during this window while forcing a rotation in the binlog. +# +--source include/have_debug.inc +--source include/master-slave.inc + +--connection master + +SET @debug_saved= @@GLOBAL.DEBUG; + +CREATE TABLE t (i INT); + +# When reaching the EOF the dump thread will wait before deciding if +# it should move to a new binlong file. +SET GLOBAL DEBUG= "d,wait_after_binlog_EOF"; + +INSERT INTO t VALUES (1); + +--sleep 1 + +# A insert and a rotate happens before the decision +INSERT INTO t VALUES (2); +FLUSH LOGS; + +SET DEBUG_SYNC= 'now SIGNAL signal.rotate_finished'; + +--sync_slave_with_master + +# All the rows should be sent to the slave. +--let $diff_tables=master:t,slave:t +--source include/diff_tables.inc + +##Clean up +--connection master + +SET @@GLOBAL.DEBUG= @debug_saved; +SET DEBUG_SYNC= 'RESET'; + +DROP TABLE t; +--source include/rpl_end.inc -- cgit v1.2.1 From 821249420e0a9c4e0ba71ce974ed515adef504f6 Mon Sep 17 00:00:00 2001 From: "Sreedhar.S" Date: Wed, 16 Oct 2013 11:05:20 +0530 Subject: Fix for Bug 17584523 - LICENSE AND DOCUMENTATION FILES MISSING FROM WINDOWS MSI PACKAGE --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f46c671f3f..2a85f630d21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,7 +449,6 @@ ADD_SUBDIRECTORY(packaging/solaris) # (see http://public.kitware.com/Bug/view.php?id=11452) SET(CPACK_MONOLITHIC_INSTALL 1 CACHE INTERNAL "") -INCLUDE(CPack) IF(UNIX) INSTALL(FILES Docs/mysql.info DESTINATION ${INSTALL_INFODIR} OPTIONAL COMPONENT Info) ENDIF() @@ -482,3 +481,5 @@ IF(NOT INSTALL_LAYOUT MATCHES "RPM") PATTERN "sp-imp-spec.txt" EXCLUDE ) ENDIF() + +INCLUDE(CPack) -- cgit v1.2.1 From 4522a8704fcfdc392fce408ebeb25e3f40060ec7 Mon Sep 17 00:00:00 2001 From: Sujatha Sivakumar Date: Wed, 16 Oct 2013 11:49:00 +0530 Subject: Bug#17429677:LAST ARGUMENT OF LOAD DATA ...SET ...STATEMENT REPEATED TWICE IN BINLOG Problem: ======= If LOAD DATA ... SET ... is used the last argument of SET is repeated twice in replication binlog. Analysis: ======== LOAD DATA statements are reconstructed once again before they are written to the binary log. When SET clauses are specified as part of LOAD DATA statement, these SET clause user command strings need to be stored in order to rebuild the original user command. During parsing each column and the value in the SET command are stored in two differenet lists. All the values are stored in a string list. When SET expression has more than one value as shown in the following example: SET a = @a, b = CONCAT(@b, '| 123456789'); Parser extracts values in the following manner i.e Item name , value string, actual length of the value of the item with in the string. Item a: Value for a:"= @a, b = CONCAT(@b, '| 123456789') str_length = 4 Item b: Value for b:"= CONCAT(@b, '| 123456789') str_length = 27 During reconstructing the LOAD DATA command the above strings are retrived as it is and appended to the LOAD DATA statement. Hence it becomes as shown below. SET `a`= @a, b = CONCAT(@b, '| 123456789'), `b`= CONCAT(@b, '| 123456789') Fix: === During reconstruction of SET command, retrieve exact item value string rather than reading the entire string. sql/sql_load.cc: Added code to extract the exact Item value. --- sql/sql_load.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 2e85cb105b0..b593412c559 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -738,8 +738,16 @@ static bool write_execute_load_query_log_event(THD *thd, sql_exchange* ex, if (n++) pfields.append(", "); append_identifier(thd, &pfields, item->name, strlen(item->name)); + // Extract exact Item value + str->copy(); pfields.append((char *)str->ptr()); + str->free(); } + /* + Clear the SET string list once the SET command is reconstructed + as we donot require the list anymore. + */ + thd->lex->load_set_str_list.empty(); } p= pfields.c_ptr_safe(); -- cgit v1.2.1 From de0e8a02d18b4593e11b282b7c8641603b7cbfe9 Mon Sep 17 00:00:00 2001 From: Venkata Sidagam Date: Wed, 16 Oct 2013 14:14:44 +0530 Subject: Bug#16900358 FIX FOR CVE-2012-5611 IS INCOMPLETE Description: Fix for bug CVE-2012-5611 (bug 67685) is incomplete. The ACL_KEY_LENGTH-sized buffers in acl_get() and check_grant_db() can be overflown by up to two bytes. That's probably not enough to do anything more serious than crashing mysqld. Analysis: In acl_get() when "copy_length" is calculated it just adding the variable lengths. But when we are using them with strmov() we are adding +1 to each. This will lead to a three byte buffer overflow (i.e two +1's at strmov() and one byte for the null added by strmov() function). Similarly it happens for check_grant_db() function as well. Fix: We need to add "+2" to "copy_length" in acl_get() and "+1" to "copy_length" in check_grant_db(). --- sql/sql_acl.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 2458a7120da..cf150439391 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -1363,7 +1363,8 @@ ulong acl_get(const char *host, const char *ip, copy_length= (size_t) (strlen(ip ? ip : "") + strlen(user ? user : "") + - strlen(db ? db : "")); + strlen(db ? db : "")) + 2; /* Added 2 at the end to avoid + buffer overflow at strmov()*/ /* Make sure that strmov() operations do not result in buffer overflow. */ @@ -4353,7 +4354,8 @@ bool check_grant_db(THD *thd,const char *db) size_t copy_length; copy_length= (size_t) (strlen(sctx->priv_user ? sctx->priv_user : "") + - strlen(db ? db : "")); + strlen(db ? db : "")) + 1; /* Added 1 at the end to avoid + buffer overflow at strmov()*/ /* Make sure that strmov() operations do not result in buffer overflow. -- cgit v1.2.1 From 2b07397b2021ce598f0bde23a15b1e7983722463 Mon Sep 17 00:00:00 2001 From: Venkatesh Duggirala Date: Wed, 16 Oct 2013 22:12:23 +0530 Subject: Bug#17234370 LAST_INSERT_ID IS REPLICATED INCORRECTLY IF REPLICATION FILTERS ARE USED. Problem: When Filtered-slave applies Int_var_log_event and when it tries to write the event to its own binlog, LAST_INSERT_ID value is written wrongly. Analysis: THD::stmt_depends_on_first_successful_insert_id_in_prev_stmt is a variable which is set when LAST_INSERT_ID() is used by a statement. If it is set, first_successful_insert_id_in_ prev_stmt_for_binlog will be stored in the statement-based binlog. This variable is CUMULATIVE along the execution of a stored function or trigger: if one substatement sets it to 1 it will stay 1 until the function/trigger ends, thus making sure that first_successful_insert_id_in_ prev_stmt_for_binlog does not change anymore and is propagated to the caller for binlogging. This is achieved using the following code if(!stmt_depends_on_first_successful_insert_id_in_prev_stmt) { /* It's the first time we read it */ first_successful_insert_id_in_prev_stmt_for_binlog= first_successful_insert_id_in_prev_stmt; stmt_depends_on_first_successful_insert_id_in_prev_stmt= 1; } Slave server, after receiving Int_var_log_event event from master, it is setting stmt_depends_on_first_successful_insert_id_in_prev_stmt to true(*which is wrong*) and not setting first_successful_insert_id_in_prev_stmt_for_binlog. Because of this problem, when the actual DML statement with LAST_INSERT_ID() is parsed by slave SQL thread, first_successful_insert_id_in_prev_stmt_for_binlog is not set. Hence the value zero (default value) is written to slave's binlog. Why only *Filtered slave* is effected when the code is in common place: ------------------------------------------------------- In Query_log_event::do_apply_event, THD::stmt_depends_on_first_successful_insert_id_in_prev_stmt is reset to zero at the end of the function. In case of normal slave (No Filters), this variable will be reset. In Filtered slave, Slave SQL thread defers all IRU events's execution until IRU's Query_log event is received. Once it receives Query_log_event it executes all pending IRU events and then it executes Query_log_event. Hence the variable is not getting reset to 0, causing this bug. Fix: As described above, the root cause was setting THD::stmt_depends_on_first_successful_insert_id_in_prev_stmt when Int_var_log_event was executed by a SQL thread. Hence removing the problematic line from the code. --- sql/log_event.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index d7e912cfe1a..7a557c42154 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -5397,7 +5397,6 @@ int Intvar_log_event::do_apply_event(Relay_log_info const *rli) switch (type) { case LAST_INSERT_ID_EVENT: - thd->stmt_depends_on_first_successful_insert_id_in_prev_stmt= 1; thd->first_successful_insert_id_in_prev_stmt= val; break; case INSERT_ID_EVENT: -- cgit v1.2.1 -- cgit v1.2.1 From 7c3d3f192ed893ae0990aeeedf4d0307084c77bf Mon Sep 17 00:00:00 2001 From: Anil Toshniwal Date: Thu, 17 Oct 2013 18:09:04 +0530 Subject: Bug#17513737 INTRODUCE CHECK TABLE...QUICK --Implemented CHECK TABLE...QUICK. Introduce CHECK TABLE...QUICK that would skip the btr_validate_index() and btr_search_validate() call, and count the no. of records in each index. Approved by Marko and Kevin. (rb#3567). --- include/my_check_opt.h | 69 +++++++++++++++++++++++++++++++++++ include/myisam.h | 47 +----------------------- storage/innobase/dict/dict0dict.c | 2 + storage/innobase/handler/ha_innodb.cc | 68 ++++++++++++++++++++-------------- storage/innobase/include/btr0sea.h | 2 - 5 files changed, 112 insertions(+), 76 deletions(-) create mode 100644 include/my_check_opt.h diff --git a/include/my_check_opt.h b/include/my_check_opt.h new file mode 100644 index 00000000000..7b064f69ef1 --- /dev/null +++ b/include/my_check_opt.h @@ -0,0 +1,69 @@ +/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + +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 Street, Fifth Floor, Boston, MA 02110-1301, USA */ + +#ifndef _my_check_opt_h +#define _my_check_opt_h + +#ifdef __cplusplus +extern "C" { +#endif + +/* + All given definitions needed for MyISAM storage engine: + myisamchk.c or/and ha_myisam.cc or/and micheck.c + Some definitions are needed by the MySQL parser. +*/ + +#define T_AUTO_INC (1UL << 0) +#define T_AUTO_REPAIR (1UL << 1) +#define T_BACKUP_DATA (1UL << 2) +#define T_CALC_CHECKSUM (1UL << 3) +#define T_CHECK (1UL << 4) +#define T_CHECK_ONLY_CHANGED (1UL << 5) +#define T_CREATE_MISSING_KEYS (1UL << 6) +#define T_DESCRIPT (1UL << 7) +#define T_DONT_CHECK_CHECKSUM (1UL << 8) +#define T_EXTEND (1UL << 9) +#define T_FAST (1UL << 10) +#define T_FORCE_CREATE (1UL << 11) +#define T_FORCE_UNIQUENESS (1UL << 12) +#define T_INFO (1UL << 13) +/** CHECK TABLE...MEDIUM (the default) */ +#define T_MEDIUM (1UL << 14) +/** CHECK TABLE...QUICK */ +#define T_QUICK (1UL << 15) +#define T_READONLY (1UL << 16) +#define T_REP (1UL << 17) +#define T_REP_BY_SORT (1UL << 18) +#define T_REP_PARALLEL (1UL << 19) +#define T_RETRY_WITHOUT_QUICK (1UL << 20) +#define T_SAFE_REPAIR (1UL << 21) +#define T_SILENT (1UL << 22) +#define T_SORT_INDEX (1UL << 23) +#define T_SORT_RECORDS (1UL << 24) +#define T_STATISTICS (1UL << 25) +#define T_UNPACK (1UL << 26) +#define T_UPDATE_STATE (1UL << 27) +#define T_VERBOSE (1UL << 28) +#define T_VERY_SILENT (1UL << 29) +#define T_WAIT_FOREVER (1UL << 30) +#define T_WRITE_LOOP (1UL << 31) + +#define T_REP_ANY (T_REP | T_REP_BY_SORT | T_REP_PARALLEL) + +#ifdef __cplusplus +} +#endif +#endif diff --git a/include/myisam.h b/include/myisam.h index dc9eac8f100..bf94fd7d8cd 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -33,7 +33,7 @@ extern "C" { #endif #include "my_compare.h" #include - +#include /* Limit max keys according to HA_MAX_POSSIBLE_KEY */ @@ -311,51 +311,6 @@ extern uint mi_get_pointer_length(ulonglong file_length, uint def); #define MYISAMCHK_REPAIR 1 /* equivalent to myisamchk -r */ #define MYISAMCHK_VERIFY 2 /* Verify, run repair if failure */ -/* - Definitions needed for myisamchk.c - - Entries marked as "QQ to be removed" are NOT used to - pass check/repair options to mi_check.c. They are used - internally by myisamchk.c or/and ha_myisam.cc and should NOT - be stored together with other flags. They should be removed - from the following list to make addition of new flags possible. -*/ - -#define T_AUTO_INC 1 -#define T_AUTO_REPAIR 2 /* QQ to be removed */ -#define T_BACKUP_DATA 4 -#define T_CALC_CHECKSUM 8 -#define T_CHECK 16 /* QQ to be removed */ -#define T_CHECK_ONLY_CHANGED 32 /* QQ to be removed */ -#define T_CREATE_MISSING_KEYS 64 -#define T_DESCRIPT 128 -#define T_DONT_CHECK_CHECKSUM 256 -#define T_EXTEND 512 -#define T_FAST (1L << 10) /* QQ to be removed */ -#define T_FORCE_CREATE (1L << 11) /* QQ to be removed */ -#define T_FORCE_UNIQUENESS (1L << 12) -#define T_INFO (1L << 13) -#define T_MEDIUM (1L << 14) -#define T_QUICK (1L << 15) /* QQ to be removed */ -#define T_READONLY (1L << 16) /* QQ to be removed */ -#define T_REP (1L << 17) -#define T_REP_BY_SORT (1L << 18) /* QQ to be removed */ -#define T_REP_PARALLEL (1L << 19) /* QQ to be removed */ -#define T_RETRY_WITHOUT_QUICK (1L << 20) -#define T_SAFE_REPAIR (1L << 21) -#define T_SILENT (1L << 22) -#define T_SORT_INDEX (1L << 23) /* QQ to be removed */ -#define T_SORT_RECORDS (1L << 24) /* QQ to be removed */ -#define T_STATISTICS (1L << 25) -#define T_UNPACK (1L << 26) -#define T_UPDATE_STATE (1L << 27) -#define T_VERBOSE (1L << 28) -#define T_VERY_SILENT (1L << 29) -#define T_WAIT_FOREVER (1L << 30) -#define T_WRITE_LOOP ((ulong) 1L << 31) - -#define T_REP_ANY (T_REP | T_REP_BY_SORT | T_REP_PARALLEL) - /* Flags used by myisamchk.c or/and ha_myisam.cc that are NOT passed to mi_check.c follows: diff --git a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c index 1fe7000f718..546794be26c 100644 --- a/storage/innobase/dict/dict0dict.c +++ b/storage/innobase/dict/dict0dict.c @@ -4485,6 +4485,8 @@ dict_update_statistics( dict_index_t* index; ulint sum_of_index_sizes = 0; + DBUG_EXECUTE_IF("skip_innodb_statistics", return;); + if (table->ibd_file_missing) { ut_print_timestamp(stderr); fprintf(stderr, diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index 7d0a363be69..546b0b8905b 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -53,6 +53,7 @@ this program; if not, write to the Free Software Foundation, Inc., #include #include #include +#include /** @file ha_innodb.cc */ @@ -8466,8 +8467,7 @@ int ha_innobase::check( /*===============*/ THD* thd, /*!< in: user thread handle */ - HA_CHECK_OPT* check_opt) /*!< in: check options, currently - ignored */ + HA_CHECK_OPT* check_opt) /*!< in: check options */ { dict_index_t* index; ulint n_rows; @@ -8524,11 +8524,6 @@ ha_innobase::check( do additional check */ prebuilt->table->corrupted = FALSE; - /* Enlarge the fatal lock wait timeout during CHECK TABLE. */ - mutex_enter(&kernel_mutex); - srv_fatal_semaphore_wait_threshold += SRV_SEMAPHORE_WAIT_EXTENSION; - mutex_exit(&kernel_mutex); - for (index = dict_table_get_first_index(prebuilt->table); index != NULL; index = dict_table_get_next_index(index)) { @@ -8541,20 +8536,41 @@ ha_innobase::check( /* If this is an index being created, break */ if (*index->name == TEMP_INDEX_PREFIX) { - break; - } else if (!btr_validate_index(index, prebuilt->trx)) { - is_ok = FALSE; + continue; + } + if (!(check_opt->flags & T_QUICK)) { + /* Enlarge the fatal lock wait timeout during + CHECK TABLE. */ + mutex_enter(&kernel_mutex); + srv_fatal_semaphore_wait_threshold += + SRV_SEMAPHORE_WAIT_EXTENSION; + mutex_exit(&kernel_mutex); + + ibool valid = TRUE; + valid = btr_validate_index(index, prebuilt->trx); + + /* Restore the fatal lock wait timeout after + CHECK TABLE. */ + mutex_enter(&kernel_mutex); + srv_fatal_semaphore_wait_threshold -= + SRV_SEMAPHORE_WAIT_EXTENSION; + mutex_exit(&kernel_mutex); + + if (!valid) { + is_ok = FALSE; - innobase_format_name( - index_name, sizeof index_name, - prebuilt->index->name, TRUE); + innobase_format_name( + index_name, sizeof index_name, + index->name, TRUE); + push_warning_printf(thd, + MYSQL_ERROR::WARN_LEVEL_WARN, + ER_NOT_KEYFILE, + "InnoDB: The B-tree of" + " index %s is corrupted.", + index_name); - push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, - ER_NOT_KEYFILE, - "InnoDB: The B-tree of" - " index %s is corrupted.", - index_name); - continue; + continue; + } } /* Instead of invoking change_active_index(), set up @@ -8658,21 +8674,17 @@ ha_innobase::check( /* Restore the original isolation level */ prebuilt->trx->isolation_level = old_isolation_level; - /* We validate also the whole adaptive hash index for all tables - at every CHECK TABLE */ +#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG + /* We validate the whole adaptive hash index for all tables + at every CHECK TABLE only when QUICK flag is not present. */ - if (!btr_search_validate()) { + if (!(check_opt->flags & T_QUICK) && !btr_search_validate()) { push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, ER_NOT_KEYFILE, "InnoDB: The adaptive hash index is corrupted."); is_ok = FALSE; } - - /* Restore the fatal lock wait timeout after CHECK TABLE. */ - mutex_enter(&kernel_mutex); - srv_fatal_semaphore_wait_threshold -= SRV_SEMAPHORE_WAIT_EXTENSION; - mutex_exit(&kernel_mutex); - +#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */ prebuilt->trx->op_info = ""; if (thd_killed(user_thd)) { my_error(ER_QUERY_INTERRUPTED, MYF(0)); diff --git a/storage/innobase/include/btr0sea.h b/storage/innobase/include/btr0sea.h index 0ee68101ee7..081dc88435e 100644 --- a/storage/innobase/include/btr0sea.h +++ b/storage/innobase/include/btr0sea.h @@ -188,8 +188,6 @@ UNIV_INTERN ibool btr_search_validate(void); /*======================*/ -#else -# define btr_search_validate() TRUE #endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */ /** The search info struct in an index */ -- cgit v1.2.1 From 863d67e3acbc31951c9cf52cd49be1eb8e1e28b8 Mon Sep 17 00:00:00 2001 From: Luis Soares Date: Thu, 17 Oct 2013 17:48:26 +0100 Subject: BUG#17460821: ASSERTION ERROR WHEN STOPPING SLAVE AFTER SEMI-SYNC ON MASTER IS DISABLED The assertion happens when: (i) the master and slave are configured to use the semisync plugin; (ii) the DBA disables semisync on the master; (iii) and he also unsets the option to wait for slaves ACK even if the semisync slave count reaches 0 during the waiting period. This combination of factors makes the server run into an assertion as soon as the last semisync slave disconnects and its dump thread exits. The root of the problem is the fact that when the dump thread disconnects and calls the observer hook transmit_stop, which ends up calling ReplSemiSyncMaster::remove_slave, there is no check whether the master has already disabled semisync or not. If it has, the then a second call to the switch_off member function must be avoided. The quick fix is to avoid calling switch_off if the DBA has disabled the semisync plugin interactively on the master. Also, the switch_off member function should only be called if the plugin has not been switched off already. This is basically the pattern throughout the rest of the semisync plugin and no other calls seem vulnerable to similar crashes/assertions. (This a backport of the patch to 5.5, which is also vulnerable.) --- plugin/semisync/semisync_master.cc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/plugin/semisync/semisync_master.cc b/plugin/semisync/semisync_master.cc index 6b8bb915445..2e40fc8b5c5 100644 --- a/plugin/semisync/semisync_master.cc +++ b/plugin/semisync/semisync_master.cc @@ -482,13 +482,17 @@ void ReplSemiSyncMaster::remove_slave() lock(); rpl_semi_sync_master_clients--; - /* If user has chosen not to wait if no semi-sync slave available - and the last semi-sync slave exits, turn off semi-sync on master - immediately. - */ - if (!rpl_semi_sync_master_wait_no_slave && - rpl_semi_sync_master_clients == 0) - switch_off(); + /* Only switch off if semi-sync is enabled and is on */ + if (getMasterEnabled() && is_on()) + { + /* If user has chosen not to wait if no semi-sync slave available + and the last semi-sync slave exits, turn off semi-sync on master + immediately. + */ + if (!rpl_semi_sync_master_wait_no_slave && + rpl_semi_sync_master_clients == 0) + switch_off(); + } unlock(); } -- cgit v1.2.1 From cd6f3b55dab602069f43ed08fd3949d1226c2c50 Mon Sep 17 00:00:00 2001 From: Aditya A Date: Fri, 18 Oct 2013 12:26:28 +0530 Subject: Bug#17559867 AFTER REBUILDING,A MYISAM PARTITION ENDS UP AS A INNODB PARTITTION. PROBLEM ------- The correct engine_type was not being set during rebuild of the partition due to which the handler was always created with the default engine, which is innodb for 5.5+ ,therefore even if the table was myisam, after rebuilding the partitions ended up as innodb partitions. FIX --- Set the correct engine type during rebuild. [Approved by mattiasj #rb3599] --- sql/sql_partition.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index a3ad138043c..aa367abe22a 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -4725,6 +4725,8 @@ that are reorganised. { uint no_parts_found; uint no_parts_opt= alter_info->partition_names.elements; + set_engine_all_partitions(tab_part_info, + tab_part_info->default_engine_type); no_parts_found= set_part_state(alter_info, tab_part_info, PART_CHANGED); if (no_parts_found != no_parts_opt && (!(alter_info->flags & ALTER_ALL_PARTITION))) -- cgit v1.2.1 From 18079ac9b82a3af4e0686a8da58499523e5677ef Mon Sep 17 00:00:00 2001 From: Anirudh Mangipudi Date: Fri, 18 Oct 2013 17:14:39 +0530 Subject: Bug #17357535 BACKPORT BUG#16241992 TO 5.5 Problem: COM_CHANGE_USER allows brute-force attempts to crack a password at a very high rate as it does not cause any significant delay after a login attempt has failed. This issue was reproduced using John-The-Ripper password cracking tool through which about 5000 passwords per second could be attempted. Solution: The non-GA version's solution was to disconnect the connection when a login attempt failed. Now since our aim to to reduce the rate at which passwords are tested, we introduced a sleep(1) after every login attempt failed. This significantly increased the delay with which the password was cracked. --- sql/sql_parse.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index f787fe4058f..6e2b422bd44 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -971,6 +971,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, thd->variables.collation_connection= save_collation_connection; thd->variables.character_set_results= save_character_set_results; thd->update_charset(); + sleep(1); } else { -- cgit v1.2.1 From 20f579ea162afd751576e9ed6ab8c8a49eb833f1 Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Fri, 18 Oct 2013 19:25:59 +0200 Subject: Bug#17565888: UP TO 75% INCREASE IN DBT3 QUERY (Q7) EXECUTION TIME Regression from bug#14621190 due to disabled optimistic restoration of cursor, which required full key lookup instead of verifying if previously positioned btree cursor could be reused. Fixed by enable optimistic restore and adjust cursor afterward. rb#3324 approved by Marko. --- storage/innobase/btr/btr0pcur.c | 44 +++++++---------- storage/innobase/include/btr0pcur.h | 44 +++++++++-------- storage/innobase/include/btr0pcur.ic | 7 +-- storage/innobase/row/row0sel.c | 91 ++++++++++++++++++++++-------------- 4 files changed, 102 insertions(+), 84 deletions(-) diff --git a/storage/innobase/btr/btr0pcur.c b/storage/innobase/btr/btr0pcur.c index fbedc1e7d04..d8f43a9ae75 100644 --- a/storage/innobase/btr/btr0pcur.c +++ b/storage/innobase/btr/btr0pcur.c @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2012, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -110,7 +110,7 @@ btr_pcur_store_position( page_t* page; ulint offs; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); block = btr_pcur_get_block(cursor); @@ -235,21 +235,12 @@ btr_pcur_restore_position_func( ut_ad(mtr); ut_ad(mtr->state == MTR_ACTIVE); + ut_ad(cursor->old_stored == BTR_PCUR_OLD_STORED); + ut_ad(cursor->pos_state == BTR_PCUR_WAS_POSITIONED + || cursor->pos_state == BTR_PCUR_IS_POSITIONED); index = btr_cur_get_index(btr_pcur_get_btr_cur(cursor)); - if (UNIV_UNLIKELY(cursor->old_stored != BTR_PCUR_OLD_STORED) - || UNIV_UNLIKELY(cursor->pos_state != BTR_PCUR_WAS_POSITIONED - && cursor->pos_state != BTR_PCUR_IS_POSITIONED)) { - ut_print_buf(stderr, cursor, sizeof(btr_pcur_t)); - putc('\n', stderr); - if (cursor->trx_if_known) { - trx_print(stderr, cursor->trx_if_known, 0); - } - - ut_error; - } - if (UNIV_UNLIKELY (cursor->rel_pos == BTR_PCUR_AFTER_LAST_IN_TREE || cursor->rel_pos == BTR_PCUR_BEFORE_FIRST_IN_TREE)) { @@ -273,29 +264,26 @@ btr_pcur_restore_position_func( if (UNIV_LIKELY(latch_mode == BTR_SEARCH_LEAF) || UNIV_LIKELY(latch_mode == BTR_MODIFY_LEAF)) { - /* Try optimistic restoration if cursor is expected to be - positioned on the same btr record as before (BTR_PCUR_ON). */ + /* Try optimistic restoration. */ - if (cursor->rel_pos == BTR_PCUR_ON - && buf_page_optimistic_get( - latch_mode, - cursor->block_when_stored, - cursor->modify_clock, - file, line, mtr)) { - cursor->pos_state = BTR_PCUR_IS_POSITIONED; + if (buf_page_optimistic_get(latch_mode, + cursor->block_when_stored, + cursor->modify_clock, + file, line, mtr)) { buf_block_dbg_add_level( btr_pcur_get_block(cursor), dict_index_is_ibuf(index) ? SYNC_IBUF_TREE_NODE : SYNC_TREE_NODE); - { + if (cursor->rel_pos == BTR_PCUR_ON) { #ifdef UNIV_DEBUG const rec_t* rec; const ulint* offsets1; const ulint* offsets2; #endif /* UNIV_DEBUG */ cursor->latch_mode = latch_mode; + cursor->pos_state = BTR_PCUR_IS_POSITIONED; #ifdef UNIV_DEBUG rec = btr_pcur_get_rec(cursor); @@ -314,6 +302,11 @@ btr_pcur_restore_position_func( #endif /* UNIV_DEBUG */ return(TRUE); } + /* This is the same record as stored, + may need to be adjusted for BTR_PCUR_BEFORE/AFTER, + depending on search mode and direction. */ + cursor->pos_state = BTR_PCUR_IS_POSITIONED_OPTIMISTIC; + return(FALSE); } } @@ -414,7 +407,7 @@ btr_pcur_move_to_next_page( buf_block_t* next_block; page_t* next_page; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); ut_ad(btr_pcur_is_after_last_on_page(cursor)); @@ -469,7 +462,6 @@ btr_pcur_move_backward_from_page( ulint latch_mode; ulint latch_mode2; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); ut_ad(btr_pcur_is_before_first_on_page(cursor)); ut_ad(!btr_pcur_is_before_first_in_tree(cursor, mtr)); diff --git a/storage/innobase/include/btr0pcur.h b/storage/innobase/include/btr0pcur.h index 4312f73ca4a..d9ce02283d7 100644 --- a/storage/innobase/include/btr0pcur.h +++ b/storage/innobase/include/btr0pcur.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -447,6 +447,27 @@ btr_pcur_move_to_prev_on_page( /*==========================*/ btr_pcur_t* cursor);/*!< in/out: persistent cursor */ +/** Position state of persistent B-tree cursor. */ +enum pcur_pos_t { + /** The persistent cursor is not positioned. */ + BTR_PCUR_NOT_POSITIONED = 0, + /** The persistent cursor was previously positioned. + TODO: currently, the state can be BTR_PCUR_IS_POSITIONED, + though it really should be BTR_PCUR_WAS_POSITIONED, + because we have no obligation to commit the cursor with + mtr; similarly latch_mode may be out of date. This can + lead to problems if btr_pcur is not used the right way; + all current code should be ok. */ + BTR_PCUR_WAS_POSITIONED, + /** The persistent cursor is positioned by optimistic get to the same + record as it was positioned at. Not used for rel_pos == BTR_PCUR_ON. + It may need adjustment depending on previous/current search direction + and rel_pos. */ + BTR_PCUR_IS_POSITIONED_OPTIMISTIC, + /** The persistent cursor is positioned by index search. + Or optimistic get for rel_pos == BTR_PCUR_ON. */ + BTR_PCUR_IS_POSITIONED +}; /* The persistent B-tree cursor structure. This is used mainly for SQL selects, updates, and deletes. */ @@ -480,10 +501,8 @@ struct btr_pcur_struct{ ib_uint64_t modify_clock; /*!< the modify clock value of the buffer block when the cursor position was stored */ - ulint pos_state; /*!< see TODO note below! - BTR_PCUR_IS_POSITIONED, - BTR_PCUR_WAS_POSITIONED, - BTR_PCUR_NOT_POSITIONED */ + enum pcur_pos_t pos_state; /*!< btr_pcur_store_position() and + btr_pcur_restore_position() state. */ ulint search_mode; /*!< PAGE_CUR_G, ... */ trx_t* trx_if_known; /*!< the transaction, if we know it; otherwise this field is not defined; @@ -499,21 +518,6 @@ struct btr_pcur_struct{ is not NULL */ }; -#define BTR_PCUR_IS_POSITIONED 1997660512 /* TODO: currently, the state - can be BTR_PCUR_IS_POSITIONED, - though it really should be - BTR_PCUR_WAS_POSITIONED, - because we have no obligation - to commit the cursor with - mtr; similarly latch_mode may - be out of date. This can - lead to problems if btr_pcur - is not used the right way; - all current code should be - ok. */ -#define BTR_PCUR_WAS_POSITIONED 1187549791 -#define BTR_PCUR_NOT_POSITIONED 1328997689 - #define BTR_PCUR_OLD_STORED 908467085 #define BTR_PCUR_OLD_NOT_STORED 122766467 diff --git a/storage/innobase/include/btr0pcur.ic b/storage/innobase/include/btr0pcur.ic index 696dfc728dc..5eb8ed0f32d 100644 --- a/storage/innobase/include/btr0pcur.ic +++ b/storage/innobase/include/btr0pcur.ic @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -309,7 +309,8 @@ btr_pcur_move_to_next_user_rec( function may release the page latch */ mtr_t* mtr) /*!< in: mtr */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC + || cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); cursor->old_stored = BTR_PCUR_OLD_NOT_STORED; loop: @@ -379,7 +380,7 @@ btr_pcur_commit_specify_mtr( btr_pcur_t* pcur, /*!< in: persistent cursor */ mtr_t* mtr) /*!< in: mtr to commit */ { - ut_a(pcur->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(pcur->pos_state == BTR_PCUR_IS_POSITIONED); pcur->latch_mode = BTR_NO_LATCHES; diff --git a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c index 28da1f69e8a..c8e293080c1 100644 --- a/storage/innobase/row/row0sel.c +++ b/storage/innobase/row/row0sel.c @@ -3095,55 +3095,76 @@ sel_restore_position_for_mysql( mtr_t* mtr) /*!< in: mtr; CAUTION: may commit mtr temporarily! */ { - ibool success; - ulint relative_position; - - relative_position = pcur->rel_pos; + ibool success; success = btr_pcur_restore_position(latch_mode, pcur, mtr); *same_user_rec = success; - if (relative_position == BTR_PCUR_ON) { - if (success) { - return(FALSE); - } - - if (moves_up) { - btr_pcur_move_to_next(pcur, mtr); - } - - return(TRUE); + ut_ad(!success || pcur->rel_pos == BTR_PCUR_ON); +#ifdef UNIV_DEBUG + if (pcur->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC) { + ut_ad(pcur->rel_pos == BTR_PCUR_BEFORE + || pcur->rel_pos == BTR_PCUR_AFTER); + } else { + ut_ad(pcur->pos_state == BTR_PCUR_IS_POSITIONED); } +#endif - /* success can only be TRUE for BTR_PCUR_ON! */ - ut_ad(!success); - - /* BTR_PCUR_BEFORE -> the position is now set to the record before - pcur->old_rec. - BTR_PCUR_AFTER-> positioned to record after pcur->old_rec. */ - - if (relative_position == BTR_PCUR_AFTER - || relative_position == BTR_PCUR_AFTER_LAST_IN_TREE) { + /* The position may need be adjusted for rel_pos and moves_up. */ - if (moves_up) { + switch (pcur->rel_pos) { + case BTR_PCUR_ON: + if (!success && moves_up) { +next: + btr_pcur_move_to_next(pcur, mtr); return(TRUE); } - - if (btr_pcur_is_on_user_rec(pcur)) { + return(!success); + case BTR_PCUR_AFTER_LAST_IN_TREE: + case BTR_PCUR_BEFORE_FIRST_IN_TREE: + return(TRUE); + case BTR_PCUR_AFTER: + /* positioned to record after pcur->old_rec. */ + pcur->pos_state = BTR_PCUR_IS_POSITIONED; +prev: + if (btr_pcur_is_on_user_rec(pcur) && !moves_up) { btr_pcur_move_to_prev(pcur, mtr); } - return(TRUE); + case BTR_PCUR_BEFORE: + /* For non optimistic restoration: + The position is now set to the record before pcur->old_rec. + + For optimistic restoration: + The position also needs to take the previous search_mode into + consideration. */ + + switch (pcur->pos_state) { + case BTR_PCUR_IS_POSITIONED_OPTIMISTIC: + pcur->pos_state = BTR_PCUR_IS_POSITIONED; + if (pcur->search_mode == PAGE_CUR_GE) { + /* Positioned during Greater or Equal search + with BTR_PCUR_BEFORE. Optimistic restore to + the same record. If scanning for lower then + we must move to previous record. + This can happen with: + HANDLER READ idx a = (const); + HANDLER READ idx PREV; */ + goto prev; + } + return(TRUE); + case BTR_PCUR_IS_POSITIONED: + if (moves_up && btr_pcur_is_on_user_rec(pcur)) { + goto next; + } + return(TRUE); + case BTR_PCUR_WAS_POSITIONED: + case BTR_PCUR_NOT_POSITIONED: + break; + } } - - ut_ad(relative_position == BTR_PCUR_BEFORE - || relative_position == BTR_PCUR_BEFORE_FIRST_IN_TREE); - - if (moves_up && btr_pcur_is_on_user_rec(pcur)) { - btr_pcur_move_to_next(pcur, mtr); - } - + ut_ad(0); return(TRUE); } -- cgit v1.2.1 From e6a734a7cf1fd678fbc22a9d920efac0bc601123 Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Fri, 18 Oct 2013 23:39:15 +0200 Subject: post-push fix for bug17565888. Too restrictive assertion, can fail during purge --- storage/innobase/include/btr0pcur.ic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/innobase/include/btr0pcur.ic b/storage/innobase/include/btr0pcur.ic index 5eb8ed0f32d..f5880e0564a 100644 --- a/storage/innobase/include/btr0pcur.ic +++ b/storage/innobase/include/btr0pcur.ic @@ -164,7 +164,8 @@ btr_pcur_is_after_last_on_page( /*===========================*/ const btr_pcur_t* cursor) /*!< in: persistent cursor */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC + || cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); return(page_cur_is_after_last(btr_pcur_get_page_cur(cursor))); -- cgit v1.2.1 From a91fcaf460f686b1fb7eb005fa22ab136ff7210d Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Fri, 18 Oct 2013 23:49:35 +0200 Subject: post-push fix for bug17565888. Too restrictive assertion, failing during purge --- storage/innobase/include/btr0pcur.ic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/innobase/include/btr0pcur.ic b/storage/innobase/include/btr0pcur.ic index f5880e0564a..db3145132af 100644 --- a/storage/innobase/include/btr0pcur.ic +++ b/storage/innobase/include/btr0pcur.ic @@ -91,7 +91,8 @@ btr_pcur_get_block( /*===============*/ const btr_pcur_t* cursor) /*!< in: persistent cursor */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC + || cursor->pos_state == BTR_PCUR_IS_POSITIONED); return(btr_cur_get_block(btr_pcur_get_btr_cur(cursor))); } -- cgit v1.2.1 From 7a524cee32e3a7d457fa6a0e86351ddac1c219fb Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Sat, 19 Oct 2013 15:29:51 +0200 Subject: post-push fix for bug17565888. --- storage/innobase/btr/btr0pcur.c | 2 +- storage/innobase/include/btr0pcur.ic | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/storage/innobase/btr/btr0pcur.c b/storage/innobase/btr/btr0pcur.c index d8f43a9ae75..ea187305656 100644 --- a/storage/innobase/btr/btr0pcur.c +++ b/storage/innobase/btr/btr0pcur.c @@ -270,6 +270,7 @@ btr_pcur_restore_position_func( cursor->block_when_stored, cursor->modify_clock, file, line, mtr)) { + cursor->pos_state = BTR_PCUR_IS_POSITIONED; buf_block_dbg_add_level( btr_pcur_get_block(cursor), @@ -283,7 +284,6 @@ btr_pcur_restore_position_func( const ulint* offsets2; #endif /* UNIV_DEBUG */ cursor->latch_mode = latch_mode; - cursor->pos_state = BTR_PCUR_IS_POSITIONED; #ifdef UNIV_DEBUG rec = btr_pcur_get_rec(cursor); diff --git a/storage/innobase/include/btr0pcur.ic b/storage/innobase/include/btr0pcur.ic index db3145132af..647e8d0cde9 100644 --- a/storage/innobase/include/btr0pcur.ic +++ b/storage/innobase/include/btr0pcur.ic @@ -91,8 +91,7 @@ btr_pcur_get_block( /*===============*/ const btr_pcur_t* cursor) /*!< in: persistent cursor */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC - || cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); return(btr_cur_get_block(btr_pcur_get_btr_cur(cursor))); } @@ -165,8 +164,7 @@ btr_pcur_is_after_last_on_page( /*===========================*/ const btr_pcur_t* cursor) /*!< in: persistent cursor */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC - || cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); return(page_cur_is_after_last(btr_pcur_get_page_cur(cursor))); @@ -311,8 +309,7 @@ btr_pcur_move_to_next_user_rec( function may release the page latch */ mtr_t* mtr) /*!< in: mtr */ { - ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC - || cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); cursor->old_stored = BTR_PCUR_OLD_NOT_STORED; loop: -- cgit v1.2.1 From c5896384bda582ec6f43ceb3fe9e7530e0bf819d Mon Sep 17 00:00:00 2001 From: Aditya A Date: Mon, 21 Oct 2013 12:07:02 +0530 Subject: Bug #16051817 GOT ERROR 124 FROM STORAGE ENGINE ON DELETE FROM A PARTITIONED TABLE PROBLEM ------- The user first disables all the non unique indexes in the table and then rebuilds one partition. During rebuild the indexes on that particular partition are enabled. Now when we give a query the optimizer is unaware that on one partition indexes are enabled and if the optimizer selects that index,myisam thinks that the index is not active and gives an error. FIX --- Before rebuilding a partition check whether non unique indexes are disabled on the partitons. If they are disabled then after rebuild disable the index on the partition. [Approved by Mattiasj #rb3469] --- sql/ha_partition.cc | 23 ++++++++++++++++++++--- sql/ha_partition.h | 3 ++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index c3f2af27282..507f202e349 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -1337,7 +1337,8 @@ bool ha_partition::is_crashed() const int ha_partition::prepare_new_partition(TABLE *tbl, HA_CREATE_INFO *create_info, handler *file, const char *part_name, - partition_element *p_elem) + partition_element *p_elem, + uint disable_non_uniq_indexes) { int error; DBUG_ENTER("prepare_new_partition"); @@ -1362,6 +1363,7 @@ int ha_partition::prepare_new_partition(TABLE *tbl, if ((error= file->ha_open(tbl, part_name, m_mode, m_open_test_lock))) goto error_open; DBUG_PRINT("info", ("partition %s opened", part_name)); + /* Note: if you plan to add another call that may return failure, better to do it before external_lock() as cleanup_new_partition() @@ -1372,6 +1374,9 @@ int ha_partition::prepare_new_partition(TABLE *tbl, goto error_external_lock; DBUG_PRINT("info", ("partition %s external locked", part_name)); + if (disable_non_uniq_indexes) + file->ha_disable_indexes(HA_KEY_SWITCH_NONUNIQ_SAVE); + DBUG_RETURN(0); error_external_lock: (void) file->close(); @@ -1649,6 +1654,14 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info, on them to prepare them for copy phase and also for later close calls */ + + /* + Before creating new partitions check whether indexes are disabled + in the partitions. + */ + + uint disable_non_uniq_indexes = indexes_are_disabled(); + i= 0; part_count= 0; part_it.rewind(); @@ -1683,11 +1696,13 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info, if ((error= prepare_new_partition(table, create_info, new_file_array[part], (const char *)part_name_buff, - sub_elem))) + sub_elem, + disable_non_uniq_indexes))) { cleanup_new_partition(part_count); DBUG_RETURN(error); } + m_added_file[part_count++]= new_file_array[part]; } while (++j < num_subparts); } @@ -1700,11 +1715,13 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info, if ((error= prepare_new_partition(table, create_info, new_file_array[i], (const char *)part_name_buff, - part_elem))) + part_elem, + disable_non_uniq_indexes))) { cleanup_new_partition(part_count); DBUG_RETURN(error); } + m_added_file[part_count++]= new_file_array[i]; } } diff --git a/sql/ha_partition.h b/sql/ha_partition.h index eef93e056ef..153e610d86f 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -270,7 +270,8 @@ private: void cleanup_new_partition(uint part_count); int prepare_new_partition(TABLE *table, HA_CREATE_INFO *create_info, handler *file, const char *part_name, - partition_element *p_elem); + partition_element *p_elem, + uint disable_non_uniq_indexes); /* delete_table, rename_table and create uses very similar logic which is packed into this routine. -- cgit v1.2.1 From 63a205d4a00670298f0c3568ba7af8c5a1b3fee2 Mon Sep 17 00:00:00 2001 From: Jon Olav Hauglid Date: Mon, 21 Oct 2013 13:14:46 +0200 Subject: Bug#17632386: WITH_ASAN CONFLICTS WITH -WL,--NO-UNDEFINED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Wl,--no-undefined (=-z defs) gives linking errors when used with WITH_ASAN. According to the documentation: "When linking shared libraries, the AddressSanitizer run-time is not linked, so -Wl,-z,defs may cause link errors (don’t use it with AddressSanitizer)." This patch turns off -Wl,--no-undefined if WITH_ASAN is used. --- cmake/os/Linux.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/os/Linux.cmake b/cmake/os/Linux.cmake index 61361d1d48b..5a1bd2f2d0d 100644 --- a/cmake/os/Linux.cmake +++ b/cmake/os/Linux.cmake @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. # # 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 @@ -33,7 +33,10 @@ ENDFOREACH() # Ensure we have clean build for shared libraries # without unresolved symbols -SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined") +# Not supported with AddressSanitizer +IF(NOT WITH_ASAN) + SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined") +ENDIF() # 64 bit file offset support flag SET(_FILE_OFFSET_BITS 64) -- cgit v1.2.1 From 0121bdc8d40bc57d8cc19fb805f8ab5f5103a874 Mon Sep 17 00:00:00 2001 From: sayantan dutta Date: Fri, 25 Oct 2013 11:38:34 +0530 Subject: Bug #17654275 - MTR EXTRACT_WARNING_LINES IS NOT REMOVING TIMESTAMP IN UTC FORMAT WITH TIMEZONES --- mysql-test/mysql-test-run.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 54dcd982a4c..27f99941637 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -4353,7 +4353,7 @@ sub extract_warning_lines ($$) { { # Remove initial timestamp and look for consecutive identical lines my $line_pat= $line; - $line_pat =~ s/^[0-9: ]*//; + $line_pat =~ s/^[0-9:\-\+\.TZ ]*//; if ($line_pat eq $last_pat) { $num_rep++; } else { -- cgit v1.2.1 -- cgit v1.2.1 From 6d483cf3abb093546fbea512019258ffaed3aac5 Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Mon, 28 Oct 2013 17:08:31 +0100 Subject: post-push fix for bug#17565888/bug#14621190 --- storage/innobase/btr/btr0pcur.c | 10 +++++----- storage/innobase/row/row0sel.c | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/storage/innobase/btr/btr0pcur.c b/storage/innobase/btr/btr0pcur.c index ea187305656..09b3715e096 100644 --- a/storage/innobase/btr/btr0pcur.c +++ b/storage/innobase/btr/btr0pcur.c @@ -124,7 +124,6 @@ btr_pcur_store_position( ut_ad(mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_S_FIX) || mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_X_FIX)); - ut_a(cursor->latch_mode != BTR_NO_LATCHES); if (UNIV_UNLIKELY(page_get_n_recs(page) == 0)) { /* It must be an empty index tree; NOTE that in this case @@ -271,6 +270,7 @@ btr_pcur_restore_position_func( cursor->modify_clock, file, line, mtr)) { cursor->pos_state = BTR_PCUR_IS_POSITIONED; + cursor->latch_mode = latch_mode; buf_block_dbg_add_level( btr_pcur_get_block(cursor), @@ -282,9 +282,6 @@ btr_pcur_restore_position_func( const rec_t* rec; const ulint* offsets1; const ulint* offsets2; -#endif /* UNIV_DEBUG */ - cursor->latch_mode = latch_mode; -#ifdef UNIV_DEBUG rec = btr_pcur_get_rec(cursor); heap = mem_heap_create(256); @@ -305,7 +302,10 @@ btr_pcur_restore_position_func( /* This is the same record as stored, may need to be adjusted for BTR_PCUR_BEFORE/AFTER, depending on search mode and direction. */ - cursor->pos_state = BTR_PCUR_IS_POSITIONED_OPTIMISTIC; + if (btr_pcur_is_on_user_rec(cursor)) { + cursor->pos_state + = BTR_PCUR_IS_POSITIONED_OPTIMISTIC; + } return(FALSE); } } diff --git a/storage/innobase/row/row0sel.c b/storage/innobase/row/row0sel.c index c8e293080c1..b8336f88532 100644 --- a/storage/innobase/row/row0sel.c +++ b/storage/innobase/row/row0sel.c @@ -3108,6 +3108,8 @@ sel_restore_position_for_mysql( || pcur->rel_pos == BTR_PCUR_AFTER); } else { ut_ad(pcur->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad((pcur->rel_pos == BTR_PCUR_ON) + == btr_pcur_is_on_user_rec(pcur)); } #endif -- cgit v1.2.1 From a44794d05eb03d8ed996281dfee0161c8bd137a7 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Tue, 29 Oct 2013 17:26:20 +0100 Subject: Bug#17326567 MYSQL SERVER FILESORT IMPLEMENTATION HAS A VERY SERIOUS BUG The filesort implementation needs space for at least 15 records (plus some internal overhead) in its main sort buffer. --- sql/filesort.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sql/filesort.cc b/sql/filesort.cc index 3a2102fa62b..a067f0236ed 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -1,5 +1,5 @@ /* - Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 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 @@ -216,7 +216,10 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length, goto err; memavl= thd->variables.sortbuff_size; - min_sort_memory= max(MIN_SORT_MEMORY, param.sort_length*MERGEBUFF2); + min_sort_memory= + max(MIN_SORT_MEMORY, + ALIGN_SIZE(MERGEBUFF2 * (param.rec_length + sizeof(uchar*)))); + while (memavl >= min_sort_memory) { ulong old_memavl; -- cgit v1.2.1 From f4cf756204c304ebd9b7487409557aefeaad0e0d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Oct 2013 11:39:04 -0500 Subject: Testcase i_innodb.innodb-alter-restart.test fails on some Windows platforms possibly since it was introduced in the patch for Bug#16720368 around 2013-04-30. This fix is simply to adjust the mtr.add_suppression() lines in the testcase and to add a missing "\n" in the error message. Approved by Marko in RB 3746 --- storage/innobase/fil/fil0fil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/fil/fil0fil.c b/storage/innobase/fil/fil0fil.c index be7d43c132d..9dfc3bb1d21 100644 --- a/storage/innobase/fil/fil0fil.c +++ b/storage/innobase/fil/fil0fil.c @@ -3531,7 +3531,7 @@ fil_load_single_table_tablespace( if (check_msg) { fprintf(stderr, - "InnoDB: Error: %s in file %s", + "InnoDB: Error: %s in file %s\n", check_msg, filepath); goto func_exit; } -- cgit v1.2.1 From d73f2a82245b80bba8cb41ebf06c43e7fb01791b Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Wed, 30 Oct 2013 04:07:07 +0100 Subject: Removed non gpl file docs/mysql.info from community packages --- support-files/mysql.spec.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 8fbf9f08b9e..c8b8941af4a 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -956,7 +956,9 @@ fi %doc mysql-release-%{mysql_version}/support-files/ndb-*.ini %endif +%if 0%{?commercial} %doc %attr(644, root, root) %{_infodir}/mysql.info* +%endif %if %{INNODB_BUILD} %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* @@ -1195,6 +1197,9 @@ fi # merging BK trees) ############################################################################## %changelog +* Wed Oct 30 2013 Balasubramanian Kandasamy +- Removed non gpl file docs/mysql.info from community packages + * Mon Sep 09 2013 Balasubramanian Kandasamy - Updated logic to get the correct count of PID files -- cgit v1.2.1 -- cgit v1.2.1 From 19990c92197c64588ac489fda6c23e34702d7db0 Mon Sep 17 00:00:00 2001 From: Venkata Sidagam Date: Thu, 31 Oct 2013 23:02:44 +0530 Subject: Bug #12917164 DROP USER CAN'T DROP USERS WITH LEGACY UPPER CASE HOST NAME ANYMORE Description: It is not possible to drop users with host names with upper case letters in them. i.e DROP USER 'root'@'Tmp_Host_Name'; is failing with error. Analysis: Since the fix 11748570 we came up with lower case hostnames as standard. But in the current bug the hostname is created by mysql_install_db script is still having upper case hostnames. So, if we have the hostname with upper case letters like(Tmp_Host_Name) then we will have as it is stored in the mysql.user table. In this case if use "'DROP USER 'root'@'Tmp_Host_Name';" it gives error because we do compare with the lower case of hostname since the 11748570 fix. Fix: We need to convert the hostname to lower case before storing into the mysql.user table when we run the mysql_install_db script. --- scripts/mysql_system_tables_data.sql | 7 +++---- scripts/mysql_system_tables_fix.sql | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/mysql_system_tables_data.sql b/scripts/mysql_system_tables_data.sql index 7203e250656..82b185ebefc 100644 --- a/scripts/mysql_system_tables_data.sql +++ b/scripts/mysql_system_tables_data.sql @@ -25,8 +25,7 @@ -- Get the hostname, if the hostname has any wildcard character like "_" or "%" -- add escape character in front of wildcard character to convert "_" or "%" to -- a plain character -SET @get_hostname= @@hostname; -SELECT REPLACE((SELECT REPLACE(@get_hostname,'_','\_')),'%','\%') INTO @current_hostname; +SELECT LOWER( REPLACE((SELECT REPLACE(@@hostname,'_','\_')),'%','\%') )INTO @current_hostname; -- Fill "db" table with default grants for anyone to @@ -42,9 +41,9 @@ DROP TABLE tmp_db; -- from local machine if "user" table didn't exist before CREATE TEMPORARY TABLE tmp_user LIKE user; INSERT INTO tmp_user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0); -REPLACE INTO tmp_user SELECT @current_hostname,'root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0 FROM dual WHERE LOWER( @current_hostname) != 'localhost'; +REPLACE INTO tmp_user SELECT @current_hostname,'root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0 FROM dual WHERE @current_hostname != 'localhost'; REPLACE INTO tmp_user VALUES ('127.0.0.1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0); INSERT INTO tmp_user (host,user) VALUES ('localhost',''); -INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE LOWER(@current_hostname ) != 'localhost'; +INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE @current_hostname != 'localhost'; INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0; DROP TABLE tmp_user; diff --git a/scripts/mysql_system_tables_fix.sql b/scripts/mysql_system_tables_fix.sql index 09f66c79c3f..56f6a64211a 100644 --- a/scripts/mysql_system_tables_fix.sql +++ b/scripts/mysql_system_tables_fix.sql @@ -601,6 +601,9 @@ ALTER TABLE db MODIFY Trigger_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT UPDATE user SET Trigger_priv=Super_priv WHERE @hadTriggerPriv = 0; +# Convering the host name to lower case for existing users +UPDATE user SET host=LOWER( host ) WHERE LOWER( host ) <> host; + # Activate the new, possible modified privilege tables # This should not be needed, but gives us some extra testing that the above # changes was correct -- cgit v1.2.1 -- cgit v1.2.1 -- cgit v1.2.1 From e0f3a0fae98bea144b962ef8dbbe62e0935aebb1 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Fri, 1 Nov 2013 16:39:19 +0100 Subject: Bug#17617945 BUFFER OVERFLOW IN GET_MERGE_MANY_BUFFS_COST WITH SMALL SORT_BUFFER_SIZE get_cost_calc_buff_size() could return wrong value for the size of imerge_cost_buff. --- sql/sql_class.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/sql_class.h b/sql/sql_class.h index 9a9b2058e2b..fd83930a8e9 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -2987,11 +2987,13 @@ public: bool get(TABLE *table); static double get_use_cost(uint *buffer, uint nkeys, uint key_size, ulonglong max_in_memory_size); + + // Returns the number of bytes needed in imerge_cost_buf. inline static int get_cost_calc_buff_size(ulong nkeys, uint key_size, ulonglong max_in_memory_size) { register ulonglong max_elems_in_tree= - (1 + max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size)); + (max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size)); return (int) (sizeof(uint)*(1 + nkeys/max_elems_in_tree)); } -- cgit v1.2.1 From 5caddbfd5b4a7ec377f3d40a5830436e0e6e993b Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Tue, 5 Nov 2013 08:03:43 +0100 Subject: Removed non gpl file mysql.info from uln community package --- packaging/rpm-uln/mysql.spec.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/rpm-uln/mysql.spec.sh b/packaging/rpm-uln/mysql.spec.sh index 3fcbd5c1234..34aed51048f 100644 --- a/packaging/rpm-uln/mysql.spec.sh +++ b/packaging/rpm-uln/mysql.spec.sh @@ -858,7 +858,9 @@ fi %files -n mysql-server%{product_suffix} -f release/support-files/plugins.files %defattr(-,root,root) %doc release/support-files/*.cnf -%doc %{_datadir}/info/mysql.info* +%if 0%{?commercial} + %doc %{_datadir}/info/mysql.info* +%endif %doc %{src_dir}/Docs/ChangeLog %doc %{src_dir}/Docs/INFO_SRC* %doc release/Docs/INFO_BIN* @@ -981,6 +983,9 @@ fi %{_mandir}/man1/mysql_client_test.1* %changelog +* Tue Nov 05 2013 Balasubramanian Kandasamy +- Removed non gpl file mysql.info from community packages + * Wed Jul 10 2013 Balasubramanian Kandasamy - Removed directory /usr/share/mysql/solaris/postinstall-solaris to resolve build error -- cgit v1.2.1 From 4d6ee2d1197c0e5ebecd019d6625d7d05bf1cab8 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Dec 2013 14:36:09 +0100 Subject: MDEV-5363: Make parallel replication waits killable Make wait_for_prior_commit killable, and handle the error if killed. --- sql/log.cc | 46 +++++++++++++++++++++++++++++++++++----------- sql/log.h | 2 +- sql/rpl_parallel.cc | 2 +- sql/sql_class.cc | 21 ++++++++++++++++++--- sql/sql_class.h | 13 ++++--------- 5 files changed, 59 insertions(+), 25 deletions(-) diff --git a/sql/log.cc b/sql/log.cc index ee7e22cbe0c..9cddb5a8e75 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -6612,12 +6612,13 @@ MYSQL_BIN_LOG::write_transaction_to_binlog(THD *thd, to commit. If so, we add those to the queue as well, transitively for all waiters. - @retval TRUE If queued as the first entry in the queue (meaning this - is the leader) - @retval FALSE Otherwise + @retval < 0 Error + @retval > 0 If queued as the first entry in the queue (meaning this + is the leader) + @retval 0 Otherwise (queued as participant, leader handles the commit) */ -bool +int MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) { group_commit_entry *entry, *orig_queue; @@ -6641,6 +6642,7 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) /* Do an extra check here, this time safely under lock. */ if (wfc->waiting_for_commit) { + const char *old_msg; /* By setting wfc->opaque_pointer to our own entry, we mark that we are ready to commit, but waiting for another transaction to commit before @@ -6651,16 +6653,36 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) queued_by_other flag is set. */ wfc->opaque_pointer= orig_entry; + old_msg= + orig_entry->thd->enter_cond(&wfc->COND_wait_commit, + &wfc->LOCK_wait_commit, + "Waiting for prior transaction to commit"); DEBUG_SYNC(orig_entry->thd, "group_commit_waiting_for_prior"); - do - { + while (wfc->waiting_for_commit && !orig_entry->thd->check_killed()) mysql_cond_wait(&wfc->COND_wait_commit, &wfc->LOCK_wait_commit); - } while (wfc->waiting_for_commit); wfc->opaque_pointer= NULL; DBUG_PRINT("info", ("After waiting for prior commit, queued_by_other=%d", orig_entry->queued_by_other)); + orig_entry->thd->exit_cond(old_msg); + + if (wfc->waiting_for_commit) + { + /* Interrupted by kill. */ + wfc->wakeup_error= orig_entry->thd->killed_errno(); + if (wfc->wakeup_error) + wfc->wakeup_error= ER_QUERY_INTERRUPTED; + my_message(wfc->wakeup_error, ER(wfc->wakeup_error), MYF(0)); + DBUG_RETURN(-1); + } + } + else + mysql_mutex_unlock(&wfc->LOCK_wait_commit); + + if (wfc->wakeup_error) + { + my_error(ER_PRIOR_COMMIT_FAILED, MYF(0)); + DBUG_RETURN(-1); } - mysql_mutex_unlock(&wfc->LOCK_wait_commit); } /* @@ -6669,7 +6691,7 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) then there is nothing else to do. */ if (orig_entry->queued_by_other) - DBUG_RETURN(false); + DBUG_RETURN(0); /* Now enqueue ourselves in the group commit queue. */ DEBUG_SYNC(orig_entry->thd, "commit_before_enqueue"); @@ -6841,13 +6863,15 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) bool MYSQL_BIN_LOG::write_transaction_to_binlog_events(group_commit_entry *entry) { - bool is_leader= queue_for_group_commit(entry); + int is_leader= queue_for_group_commit(entry); /* The first in the queue handles group commit for all; the others just wait to be signalled when group commit is done. */ - if (is_leader) + if (is_leader < 0) + return true; /* Error */ + else if (is_leader) trx_group_commit_leader(entry); else if (!entry->queued_by_other) entry->thd->wait_for_wakeup_ready(); diff --git a/sql/log.h b/sql/log.h index 73518d2594f..45381152d97 100644 --- a/sql/log.h +++ b/sql/log.h @@ -540,7 +540,7 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG void do_checkpoint_request(ulong binlog_id); void purge(); int write_transaction_or_stmt(group_commit_entry *entry, uint64 commit_id); - bool queue_for_group_commit(group_commit_entry *entry); + int queue_for_group_commit(group_commit_entry *entry); bool write_transaction_to_binlog_events(group_commit_entry *entry); void trx_group_commit_leader(group_commit_entry *leader); bool is_xidlist_idle_nolock(); diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index 109db6ef681..0de164483d4 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -142,7 +142,7 @@ finish_event_group(THD *thd, int err, uint64 sub_id, if (err) wfc->unregister_wait_for_prior_commit(); else - wfc->wait_for_prior_commit(); + err= wfc->wait_for_prior_commit(thd); thd->wait_for_commit_ptr= NULL; /* diff --git a/sql/sql_class.cc b/sql/sql_class.cc index d1edec140b6..1898bae1499 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -5783,13 +5783,28 @@ wait_for_commit::register_wait_for_prior_commit(wait_for_commit *waitee) returns immediately. */ int -wait_for_commit::wait_for_prior_commit2() +wait_for_commit::wait_for_prior_commit2(THD *thd) { + const char *old_msg; + mysql_mutex_lock(&LOCK_wait_commit); - while (waiting_for_commit) + old_msg= thd->enter_cond(&COND_wait_commit, &LOCK_wait_commit, + "Waiting for prior transaction to commit"); + while (waiting_for_commit && !thd->check_killed()) mysql_cond_wait(&COND_wait_commit, &LOCK_wait_commit); - mysql_mutex_unlock(&LOCK_wait_commit); + thd->exit_cond(old_msg); waitee= NULL; + if (!waiting_for_commit) + { + if (wakeup_error) + my_error(ER_PRIOR_COMMIT_FAILED, MYF(0)); + return wakeup_error; + } + /* Wait was interrupted by kill, so give the error. */ + wakeup_error= thd->killed_errno(); + if (!wakeup_error) + wakeup_error= ER_QUERY_INTERRUPTED; + my_message(wakeup_error, ER(wakeup_error), MYF(0)); return wakeup_error; } diff --git a/sql/sql_class.h b/sql/sql_class.h index 9f091ac2c2b..083cf0b8c04 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1627,14 +1627,14 @@ struct wait_for_commit bool wakeup_subsequent_commits_running; void register_wait_for_prior_commit(wait_for_commit *waitee); - int wait_for_prior_commit() + int wait_for_prior_commit(THD *thd) { /* Quick inline check, to avoid function call and locking in the common case where no wakeup is registered, or a registered wait was already signalled. */ if (waiting_for_commit) - return wait_for_prior_commit2(); + return wait_for_prior_commit2(thd); else return wakeup_error; } @@ -1663,7 +1663,7 @@ struct wait_for_commit void wakeup(int wakeup_error); - int wait_for_prior_commit2(); + int wait_for_prior_commit2(THD *thd); void wakeup_subsequent_commits2(int wakeup_error); void unregister_wait_for_prior_commit2(); @@ -3334,12 +3334,7 @@ public: int wait_for_prior_commit() { if (wait_for_commit_ptr) - { - int err= wait_for_commit_ptr->wait_for_prior_commit(); - if (err) - my_error(ER_PRIOR_COMMIT_FAILED, MYF(0)); - return err; - } + return wait_for_commit_ptr->wait_for_prior_commit(this); return 0; } void wakeup_subsequent_commits(int wakeup_error) -- cgit v1.2.1 From b7ae65ef86636e986594d8e44dec83a83311977c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Dec 2013 13:28:23 +0100 Subject: MDEV-5363: Make parallel replication waits killable A couple of more parallel replication waits made killable. --- sql/rpl_parallel.cc | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index 0de164483d4..ff2ad84e037 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -285,21 +285,42 @@ handle_rpl_parallel_thread(void *arg) wait_start_sub_id= rgi->wait_start_sub_id; if (wait_for_sub_id || wait_start_sub_id) { + bool did_enter_cond= false; + const char *old_msg= NULL; + mysql_mutex_lock(&entry->LOCK_parallel_entry); if (wait_start_sub_id) { - while (wait_start_sub_id > entry->last_committed_sub_id) + old_msg= thd->enter_cond(&entry->COND_parallel_entry, + &entry->LOCK_parallel_entry, + "Waiting for prior transaction to commit " + "before starting next transaction"); + did_enter_cond= true; + while (wait_start_sub_id > entry->last_committed_sub_id && + !thd->check_killed()) mysql_cond_wait(&entry->COND_parallel_entry, &entry->LOCK_parallel_entry); + if (wait_start_sub_id > entry->last_committed_sub_id) + { + /* The thread got a kill signal. */ + thd->send_kill_message(); + rgi->is_error= true; + slave_output_error_info(rgi->rli, thd); + rgi->cleanup_context(thd, true); + rgi->rli->abort_slave= true; + } + rgi->wait_start_sub_id= 0; /* No need to check again. */ } - rgi->wait_start_sub_id= 0; /* No need to check again. */ if (wait_for_sub_id > entry->last_committed_sub_id) { wait_for_commit *waitee= &rgi->wait_commit_group_info->commit_orderer; rgi->commit_orderer.register_wait_for_prior_commit(waitee); } - mysql_mutex_unlock(&entry->LOCK_parallel_entry); + if (did_enter_cond) + thd->exit_cond(old_msg); + else + mysql_mutex_unlock(&entry->LOCK_parallel_entry); } if(thd->wait_for_commit_ptr) @@ -753,6 +774,8 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, Relay_log_info *rli= serial_rgi->rli; enum Log_event_type typ; bool is_group_event; + bool did_enter_cond= false; + const char *old_msg= NULL; /* ToDo: what to do with this lock?!? */ mysql_mutex_unlock(&rli->data_lock); @@ -860,6 +883,13 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, } else if (cur_thread->queued_size <= opt_slave_parallel_max_queued) break; // The thread is ready to queue into + else if (rli->sql_driver_thd->check_killed()) + { + mysql_mutex_unlock(&cur_thread->LOCK_rpl_thread); + my_error(ER_CONNECTION_KILLED, MYF(0)); + delete rgi; + return true; + } else { /* @@ -867,6 +897,13 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, use for queuing events, so wait for the thread to consume some of its queue. */ + if (!did_enter_cond) + { + old_msg= rli->sql_driver_thd->enter_cond + (&cur_thread->COND_rpl_thread, &cur_thread->LOCK_rpl_thread, + "Waiting for room in worker thread event queue"); + did_enter_cond= true; + } mysql_cond_wait(&cur_thread->COND_rpl_thread, &cur_thread->LOCK_rpl_thread); } @@ -1016,7 +1053,10 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, */ rli->event_relay_log_pos= rli->future_event_relay_log_pos; cur_thread->enqueue(qev); - mysql_mutex_unlock(&cur_thread->LOCK_rpl_thread); + if (did_enter_cond) + rli->sql_driver_thd->exit_cond(old_msg); + else + mysql_mutex_unlock(&cur_thread->LOCK_rpl_thread); mysql_cond_signal(&cur_thread->COND_rpl_thread); return false; -- cgit v1.2.1 From dbfe5f4774cf35283f7c7378d25fe881c00103c2 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Dec 2013 14:26:51 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add a test case for killing a waiting query in parallel replication. Fix several bugs found: - We should not wakeup_subsequent_commits() in ha_rollback_trans(), since we do not know the right wakeup_error() to give. - When a wait_for_prior_commit() is killed, we must unregister from the waitee so we do not race and get an extra (non-kill) wakeup. - We need to deal with error propagation correctly in queue_for_group_commit when one thread is killed. - Fix one locking issue in queue_for_group_commit(), we could unlock the waitee lock too early and this end up processing wakeup() with insufficient locking. - Fix Xid_log_event::do_apply_event; if commit fails it must not update the in-memory @@gtid_slave_pos state. - Fix and cleanup some things in the rpl_parallel.cc error handling. - Add a missing check for killed in the slave sql driver thread, to avoid a race. --- mysql-test/suite/rpl/r/rpl_parallel.result | 73 ++++++++++++++++ mysql-test/suite/rpl/t/rpl_parallel.test | 121 ++++++++++++++++++++++++++ sql/handler.cc | 8 +- sql/log.cc | 134 ++++++++++++++++++++--------- sql/log_event.cc | 2 +- sql/rpl_parallel.cc | 26 +++--- sql/slave.cc | 11 +++ sql/sql_class.cc | 45 ++++++---- sql/sql_class.h | 19 ++++ 9 files changed, 366 insertions(+), 73 deletions(-) diff --git a/mysql-test/suite/rpl/r/rpl_parallel.result b/mysql-test/suite/rpl/r/rpl_parallel.result index 03b102a1af9..d256a609b53 100644 --- a/mysql-test/suite/rpl/r/rpl_parallel.result +++ b/mysql-test/suite/rpl/r/rpl_parallel.result @@ -7,6 +7,7 @@ SET GLOBAL slave_parallel_threads=10; CHANGE MASTER TO master_use_gtid=slave_pos; include/start_slave.inc *** Test long-running query in domain 1 can run in parallel with short queries in domain 0 *** +ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; CREATE TABLE t1 (a int PRIMARY KEY) ENGINE=MyISAM; CREATE TABLE t2 (a int PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); @@ -259,6 +260,78 @@ SET GLOBAL binlog_format=@old_format; SET GLOBAL slave_parallel_threads=0; SET GLOBAL slave_parallel_threads=10; include/start_slave.inc +*** Test killing slave threads at various wait points *** +*** 1. Test killing transaction waiting in commit for previous transaction to commit *** +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (31, foo(31, +'commit_before_prepare_ordered WAIT_FOR t2_waiting', +'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); +SET debug_sync='now WAIT_FOR master_queued1'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +INSERT INTO t3 VALUES (32, foo(32, +'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', +'')); +INSERT INTO t3 VALUES (33, foo(33, +'group_commit_waiting_for_prior SIGNAL t2_waiting', +'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +COMMIT; +SET debug_sync='now WAIT_FOR master_queued2'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (34, foo(34, +'', +'')); +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +32 32 +33 33 +34 34 +SET sql_log_bin=0; +CALL mtr.add_suppression("Query execution was interrupted"); +CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +SET sql_log_bin=1; +SET debug_sync='now WAIT_FOR t2_query'; +SET debug_sync='now SIGNAL t2_cont'; +SET debug_sync='now WAIT_FOR t1_ready'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR t2_killed'; +SET debug_sync='now SIGNAL t1_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1963] +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +INSERT INTO t3 VALUES (39,0); +include/start_slave.inc +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +32 32 +33 33 +34 34 +39 0 +include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +include/start_slave.inc include/stop_slave.inc SET GLOBAL slave_parallel_threads=@old_parallel_threads; include/start_slave.inc diff --git a/mysql-test/suite/rpl/t/rpl_parallel.test b/mysql-test/suite/rpl/t/rpl_parallel.test index 5709cab19c0..8a6eddbc2e5 100644 --- a/mysql-test/suite/rpl/t/rpl_parallel.test +++ b/mysql-test/suite/rpl/t/rpl_parallel.test @@ -19,6 +19,7 @@ CHANGE MASTER TO master_use_gtid=slave_pos; --echo *** Test long-running query in domain 1 can run in parallel with short queries in domain 0 *** --connection server_1 +ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; CREATE TABLE t1 (a int PRIMARY KEY) ENGINE=MyISAM; CREATE TABLE t2 (a int PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); @@ -333,6 +334,126 @@ SELECT * FROM t2 WHERE a >= 20 ORDER BY a; SELECT * FROM t3 WHERE a >= 20 ORDER BY a; +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +--source include/start_slave.inc + + +--echo *** Test killing slave threads at various wait points *** +--echo *** 1. Test killing transaction waiting in commit for previous transaction to commit *** + +# Set up three transactions on the master that will be group-committed +# together so they can be replicated in parallel on the slave. +--connection con_temp3 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (31, foo(31, + 'commit_before_prepare_ordered WAIT_FOR t2_waiting', + 'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued1'; + +--connection con_temp4 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +# This insert is just so we can get T2 to wait while a query is running that we +# can see in SHOW PROCESSLIST so we can get its thread_id to kill later. +INSERT INTO t3 VALUES (32, foo(32, + 'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', + '')); +# This insert sets up debug_sync points so that T2 will tell when it is at its +# wait point where we want to kill it - and when it has been killed. +INSERT INTO t3 VALUES (33, foo(33, + 'group_commit_waiting_for_prior SIGNAL t2_waiting', + 'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +send COMMIT; + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued2'; + +--connection con_temp5 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (34, foo(34, + '', + '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; + +--connection con_temp3 +REAP; +--connection con_temp4 +REAP; +--connection con_temp5 +REAP; + +--connection server_1 +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; + +--connection server_2 +SET sql_log_bin=0; +CALL mtr.add_suppression("Query execution was interrupted"); +CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +SET sql_log_bin=1; +# Wait until T2 is inside executing its insert of 32, then find it in SHOW +# PROCESSLIST to know its thread id for KILL later. +SET debug_sync='now WAIT_FOR t2_query'; +--let $thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(32%' AND INFO NOT LIKE '%LIKE%'` +SET debug_sync='now SIGNAL t2_cont'; + +# Wait until T2 has entered its wait for T1 to commit, and T1 has +# progressed into its commit phase. +SET debug_sync='now WAIT_FOR t1_ready'; + +# Now kill the transaction T2. +--replace_result $thd_id THD_ID +eval KILL $thd_id; + +# Wait until T2 has reacted on the kill. +SET debug_sync='now WAIT_FOR t2_killed'; + +# Now we can allow T1 to proceed. +SET debug_sync='now SIGNAL t1_cont'; + +--let $slave_sql_errno= 1317,1963 +--source include/wait_for_slave_sql_error.inc +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; + +# Now we have to disable the debug_sync statements, so they do not trigger +# when the events are retried. +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + +--connection server_1 +INSERT INTO t3 VALUES (39,0); +--save_master_pos + +--connection server_2 +--source include/start_slave.inc +--sync_with_master +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; + + --connection server_2 --source include/stop_slave.inc SET GLOBAL binlog_format=@old_format; diff --git a/sql/handler.cc b/sql/handler.cc index 1518f2baaa0..88431d4db32 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -1300,7 +1300,10 @@ int ha_commit_trans(THD *thd, bool all) { /* Free resources and perform other cleanup even for 'empty' transactions. */ if (is_real_trans) + { thd->transaction.cleanup(); + thd->wakeup_subsequent_commits(error); + } DBUG_RETURN(0); } @@ -1334,6 +1337,7 @@ int ha_commit_trans(THD *thd, bool all) thd->variables.lock_wait_timeout)) { ha_rollback_trans(thd, all); + thd->wakeup_subsequent_commits(1); DBUG_RETURN(1); } @@ -1421,6 +1425,7 @@ done: err: error= 1; /* Transaction was rolled back */ ha_rollback_trans(thd, all); + thd->wakeup_subsequent_commits(error); end: if (rw_trans && mdl_request.ticket) @@ -1591,10 +1596,7 @@ int ha_rollback_trans(THD *thd, bool all) /* Always cleanup. Even if nht==0. There may be savepoints. */ if (is_real_trans) - { - thd->wakeup_subsequent_commits(error); thd->transaction.cleanup(); - } if (all) thd->transaction_rollback_request= FALSE; diff --git a/sql/log.cc b/sql/log.cc index 9cddb5a8e75..fbb73acf5d1 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -6622,7 +6622,7 @@ int MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) { group_commit_entry *entry, *orig_queue; - wait_for_commit *list, *cur, *last; + wait_for_commit *cur, *last; wait_for_commit *wfc; DBUG_ENTER("MYSQL_BIN_LOG::queue_for_group_commit"); @@ -6663,17 +6663,39 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) wfc->opaque_pointer= NULL; DBUG_PRINT("info", ("After waiting for prior commit, queued_by_other=%d", orig_entry->queued_by_other)); - orig_entry->thd->exit_cond(old_msg); if (wfc->waiting_for_commit) { - /* Interrupted by kill. */ - wfc->wakeup_error= orig_entry->thd->killed_errno(); - if (wfc->wakeup_error) - wfc->wakeup_error= ER_QUERY_INTERRUPTED; - my_message(wfc->wakeup_error, ER(wfc->wakeup_error), MYF(0)); - DBUG_RETURN(-1); + /* Wait terminated due to kill. */ + wait_for_commit *loc_waitee= wfc->waitee; + mysql_mutex_lock(&loc_waitee->LOCK_wait_commit); + if (loc_waitee->wakeup_subsequent_commits_running || + orig_entry->queued_by_other) + { + /* Our waitee is already waking us up, so ignore the kill. */ + mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); + do + { + mysql_cond_wait(&wfc->COND_wait_commit, &wfc->LOCK_wait_commit); + } while (wfc->waiting_for_commit); + } + else + { + /* We were killed, so remove us from the list of waitee. */ + wfc->remove_from_list(&loc_waitee->subsequent_commits_list); + mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); + + orig_entry->thd->exit_cond(old_msg); + /* Interrupted by kill. */ + DEBUG_SYNC(orig_entry->thd, "group_commit_waiting_for_prior_killed"); + wfc->wakeup_error= orig_entry->thd->killed_errno(); + if (wfc->wakeup_error) + wfc->wakeup_error= ER_QUERY_INTERRUPTED; + my_message(wfc->wakeup_error, ER(wfc->wakeup_error), MYF(0)); + DBUG_RETURN(-1); + } } + orig_entry->thd->exit_cond(old_msg); } else mysql_mutex_unlock(&wfc->LOCK_wait_commit); @@ -6729,9 +6751,8 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) used by the caller or any other function. */ - list= wfc; - cur= list; - last= list; + cur= wfc; + last= wfc; entry= orig_entry; for (;;) { @@ -6757,11 +6778,11 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) */ if (cur->subsequent_commits_list) { - bool have_lock; wait_for_commit *waiter; + wait_for_commit *wakeup_list= NULL; + wait_for_commit **wakeup_next_ptr= &wakeup_list; mysql_mutex_lock(&cur->LOCK_wait_commit); - have_lock= true; /* Grab the list, now safely under lock, and process it if still non-empty. @@ -6802,18 +6823,68 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) For this, we need to set the "wakeup running" flag and release the waitee lock to avoid a deadlock, see comments on THD::wakeup_subsequent_commits2() for details. + + So we need to put these on a list and delay the wakeup until we + have released the lock. + */ + *wakeup_next_ptr= waiter; + wakeup_next_ptr= &waiter->next_subsequent_commit; + } + waiter= next; + } + if (wakeup_list) + { + /* Now release our lock and do the wakeups that were delayed above. */ + cur->wakeup_subsequent_commits_running= true; + mysql_mutex_unlock(&cur->LOCK_wait_commit); + for (;;) + { + wait_for_commit *next; + + /* + ToDo: We wakeup the waiter here, so that it can have the chance to + reach its own commit state and queue up for this same group commit, + if it is still pending. + + One problem with this is that if the waiter does not reach its own + commit state before this group commit starts, and then the group + commit fails (binlog write failure), we do not get to propagate + the error to the waiter. + + A solution for this could be to delay the wakeup until commit is + successful. But then we need to set a flag in the waitee that it is + already queued for group commit, so that the waiter can check this + flag and queue itself if it _does_ reach the commit state in time. + + (But error handling in case of binlog write failure is currently + broken in other ways, as well). */ - if (have_lock) + if (&wakeup_list->next_subsequent_commit == wakeup_next_ptr) { - have_lock= false; - cur->wakeup_subsequent_commits_running= true; - mysql_mutex_unlock(&cur->LOCK_wait_commit); + /* The last one in the list. */ + wakeup_list->wakeup(0); + break; } - waiter->wakeup(0); + /* + Important: don't access wakeup_list->next after the wakeup() call, + it may be invalidated by the other thread. + */ + next= wakeup_list->next_subsequent_commit; + wakeup_list->wakeup(0); + wakeup_list= next; } - waiter= next; + /* + We need a full memory barrier between walking the list and clearing + the flag wakeup_subsequent_commits_running. This barrier is needed + to ensure that no other thread will start to modify the list + pointers before we are done traversing the list. + + But wait_for_commit::wakeup(), which was called above, does a full + memory barrier already (it locks a mutex). + */ + cur->wakeup_subsequent_commits_running= false; } - if (have_lock) + else mysql_mutex_unlock(&cur->LOCK_wait_commit); } if (cur == last) @@ -6827,29 +6898,6 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry) DBUG_ASSERT(entry != NULL); } - /* - Now we need to clear the wakeup_subsequent_commits_running flags. - - We need a full memory barrier between walking the list above, and clearing - the flag wakeup_subsequent_commits_running below. This barrier is needed - to ensure that no other thread will start to modify the list pointers - before we are done traversing the list. - - But wait_for_commit::wakeup(), which was called above for any other thread - that might modify the list in parallel, does a full memory barrier already - (it locks a mutex). - */ - if (list) - { - for (;;) - { - list->wakeup_subsequent_commits_running= false; - if (list == last) - break; - list= list->next_subsequent_commit; - } - } - if (opt_binlog_commit_wait_count > 0) mysql_cond_signal(&COND_prepare_ordered); mysql_mutex_unlock(&LOCK_prepare_ordered); diff --git a/sql/log_event.cc b/sql/log_event.cc index d6c7db1e215..d205a08e708 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -7158,7 +7158,7 @@ int Xid_log_event::do_apply_event(rpl_group_info *rgi) res= trans_commit(thd); /* Automatically rolls back on error. */ thd->mdl_context.release_transactional_locks(); - if (sub_id) + if (!res && sub_id) rpl_global_gtid_slave_state.update_state_hash(sub_id, >id); /* diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index ff2ad84e037..91aa36abc52 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -24,7 +24,7 @@ static int rpt_handle_event(rpl_parallel_thread::queued_event *qev, struct rpl_parallel_thread *rpt) { - int err __attribute__((unused)); + int err; rpl_group_info *rgi= qev->rgi; Relay_log_info *rli= rgi->rli; THD *thd= rgi->thd; @@ -172,6 +172,18 @@ finish_event_group(THD *thd, int err, uint64 sub_id, } +static void +signal_error_to_sql_driver_thread(THD *thd, rpl_group_info *rgi) +{ + rgi->is_error= true; + rgi->cleanup_context(thd, true); + rgi->rli->abort_slave= true; + mysql_mutex_lock(rgi->rli->relay_log.get_log_lock()); + mysql_mutex_unlock(rgi->rli->relay_log.get_log_lock()); + rgi->rli->relay_log.signal_update(); +} + + pthread_handler_t handle_rpl_parallel_thread(void *arg) { @@ -304,10 +316,8 @@ handle_rpl_parallel_thread(void *arg) { /* The thread got a kill signal. */ thd->send_kill_message(); - rgi->is_error= true; slave_output_error_info(rgi->rli, thd); - rgi->cleanup_context(thd, true); - rgi->rli->abort_slave= true; + signal_error_to_sql_driver_thread(thd, rgi); } rgi->wait_start_sub_id= 0; /* No need to check again. */ } @@ -363,10 +373,8 @@ handle_rpl_parallel_thread(void *arg) if (err) { - rgi->is_error= true; slave_output_error_info(rgi->rli, thd); - rgi->cleanup_context(thd, true); - rgi->rli->abort_slave= true; + signal_error_to_sql_driver_thread(thd, rgi); } if (end_of_group) { @@ -405,11 +413,9 @@ handle_rpl_parallel_thread(void *arg) half-processed event group. */ mysql_mutex_unlock(&rpt->LOCK_rpl_thread); - group_rgi->is_error= true; finish_event_group(thd, 1, group_rgi->gtid_sub_id, group_rgi->parallel_entry, &group_rgi->commit_orderer); - group_rgi->cleanup_context(thd, true); - group_rgi->rli->abort_slave= true; + signal_error_to_sql_driver_thread(thd, group_rgi); in_event_group= false; delete group_rgi; group_rgi= NULL; diff --git a/sql/slave.cc b/sql/slave.cc index 4be4a96d142..bddb69d84bb 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -6241,6 +6241,17 @@ static Log_event* next_event(rpl_group_info *rgi, ulonglong *event_size) rli->ignore_log_space_limit= true; } + /* + We have to check sql_slave_killed() here an extra time. + Otherwise we may miss a wakeup, since last check was done + without holding LOCK_log. + */ + if (sql_slave_killed(rgi)) + { + mysql_mutex_unlock(log_lock); + break; + } + /* If the I/O thread is blocked, unblock it. Ok to broadcast after unlock, because the mutex is only destroyed in diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 1898bae1499..11c03191a49 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -5786,25 +5786,49 @@ int wait_for_commit::wait_for_prior_commit2(THD *thd) { const char *old_msg; + wait_for_commit *loc_waitee; mysql_mutex_lock(&LOCK_wait_commit); old_msg= thd->enter_cond(&COND_wait_commit, &LOCK_wait_commit, "Waiting for prior transaction to commit"); while (waiting_for_commit && !thd->check_killed()) mysql_cond_wait(&COND_wait_commit, &LOCK_wait_commit); - thd->exit_cond(old_msg); - waitee= NULL; if (!waiting_for_commit) { if (wakeup_error) my_error(ER_PRIOR_COMMIT_FAILED, MYF(0)); - return wakeup_error; + goto end; + } + /* + Wait was interrupted by kill. We need to unregister our wait and give the + error. But if a wakeup is already in progress, then we must ignore the + kill and not give error, otherwise we get inconsistency between waitee and + waiter as to whether we succeed or fail (eg. we may roll back but waitee + might attempt to commit both us and any subsequent commits waiting for us). + */ + loc_waitee= this->waitee; + mysql_mutex_lock(&loc_waitee->LOCK_wait_commit); + if (loc_waitee->wakeup_subsequent_commits_running) + { + /* We are being woken up; ignore the kill and just wait. */ + mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); + do + { + mysql_cond_wait(&COND_wait_commit, &LOCK_wait_commit); + } while (waiting_for_commit); + goto end; } - /* Wait was interrupted by kill, so give the error. */ + remove_from_list(&loc_waitee->subsequent_commits_list); + mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); + wakeup_error= thd->killed_errno(); if (!wakeup_error) wakeup_error= ER_QUERY_INTERRUPTED; my_message(wakeup_error, ER(wakeup_error), MYF(0)); + +end: + thd->exit_cond(old_msg); + waitee= NULL; return wakeup_error; } @@ -5891,7 +5915,6 @@ wait_for_commit::unregister_wait_for_prior_commit2() if (waiting_for_commit) { wait_for_commit *loc_waitee= this->waitee; - wait_for_commit **next_ptr_ptr, *cur; mysql_mutex_lock(&loc_waitee->LOCK_wait_commit); if (loc_waitee->wakeup_subsequent_commits_running) { @@ -5909,17 +5932,7 @@ wait_for_commit::unregister_wait_for_prior_commit2() else { /* Remove ourselves from the list in the waitee. */ - next_ptr_ptr= &loc_waitee->subsequent_commits_list; - while ((cur= *next_ptr_ptr) != NULL) - { - if (cur == this) - { - *next_ptr_ptr= this->next_subsequent_commit; - break; - } - next_ptr_ptr= &cur->next_subsequent_commit; - } - waiting_for_commit= false; + remove_from_list(&loc_waitee->subsequent_commits_list); mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); } } diff --git a/sql/sql_class.h b/sql/sql_class.h index 083cf0b8c04..a3fc3a7866f 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1660,6 +1660,25 @@ struct wait_for_commit if (waiting_for_commit) unregister_wait_for_prior_commit2(); } + /* + Remove a waiter from the list in the waitee. Used to unregister a wait. + The caller must be holding the locks of both waiter and waitee. + */ + void remove_from_list(wait_for_commit **next_ptr_ptr) + { + wait_for_commit *cur; + + while ((cur= *next_ptr_ptr) != NULL) + { + if (cur == this) + { + *next_ptr_ptr= this->next_subsequent_commit; + break; + } + next_ptr_ptr= &cur->next_subsequent_commit; + } + waiting_for_commit= false; + } void wakeup(int wakeup_error); -- cgit v1.2.1 From f2c4765c167c3c14355042eb265f2c34bb52652b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Dec 2013 13:48:32 +0100 Subject: MDEV-5363: Make parallel replication waits killable Fix locking bug / race introduced by previous patch: If we bail out of next_event() due to kill, there was a small window where we could exit without rli->data_lock held, causing an unlock-twice bug. --- sql/slave.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sql/slave.cc b/sql/slave.cc index bddb69d84bb..dab978be591 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -6181,6 +6181,17 @@ static Log_event* next_event(rpl_group_info *rgi, ulonglong *event_size) DBUG_RETURN(ev); } + /* + We have to check sql_slave_killed() here an extra time. + Otherwise we may miss a wakeup, since last check was done + without holding LOCK_log. + */ + if (sql_slave_killed(rgi)) + { + mysql_mutex_unlock(log_lock); + break; + } + /* We can, and should release data_lock while we are waiting for update. If we do not, show slave status will block @@ -6241,17 +6252,6 @@ static Log_event* next_event(rpl_group_info *rgi, ulonglong *event_size) rli->ignore_log_space_limit= true; } - /* - We have to check sql_slave_killed() here an extra time. - Otherwise we may miss a wakeup, since last check was done - without holding LOCK_log. - */ - if (sql_slave_killed(rgi)) - { - mysql_mutex_unlock(log_lock); - break; - } - /* If the I/O thread is blocked, unblock it. Ok to broadcast after unlock, because the mutex is only destroyed in -- cgit v1.2.1 From 0bf95a0c5d81837709b589abd0ab44d1f4d4fc5f Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Dec 2013 10:50:34 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add another test case. Fix bug found: When one thread aborts, another thread might wrongly advance the relay log position too far, causing the fauling transaction to be skipped and thus lost upon restarting the SQL thread after the failure. --- mysql-test/suite/rpl/r/rpl_parallel.result | 96 ++++++++++++++++++ mysql-test/suite/rpl/t/rpl_parallel.test | 150 +++++++++++++++++++++++++++++ sql/rpl_rli.cc | 6 +- 3 files changed, 249 insertions(+), 3 deletions(-) diff --git a/mysql-test/suite/rpl/r/rpl_parallel.result b/mysql-test/suite/rpl/r/rpl_parallel.result index d256a609b53..3ec6638e55f 100644 --- a/mysql-test/suite/rpl/r/rpl_parallel.result +++ b/mysql-test/suite/rpl/r/rpl_parallel.result @@ -327,6 +327,102 @@ a b 33 33 34 34 39 0 +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; +include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +include/start_slave.inc +*** 2. Same as (1), but without restarting IO thread after kill of SQL threads *** +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (41, foo(41, +'commit_before_prepare_ordered WAIT_FOR t2_waiting', +'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); +SET debug_sync='now WAIT_FOR master_queued1'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +INSERT INTO t3 VALUES (42, foo(42, +'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', +'')); +INSERT INTO t3 VALUES (43, foo(43, +'group_commit_waiting_for_prior SIGNAL t2_waiting', +'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +COMMIT; +SET debug_sync='now WAIT_FOR master_queued2'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (44, foo(44, +'', +'')); +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; +a b +41 41 +42 42 +43 43 +44 44 +SET debug_sync='now WAIT_FOR t2_query'; +SET debug_sync='now SIGNAL t2_cont'; +SET debug_sync='now WAIT_FOR t1_ready'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR t2_killed'; +SET debug_sync='now SIGNAL t1_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1963] +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; +a b +41 41 +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +INSERT INTO t3 VALUES (49,0); +START SLAVE SQL_THREAD; +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; +a b +41 41 +42 42 +43 43 +44 44 +49 0 +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; include/stop_slave.inc SET GLOBAL binlog_format=@old_format; SET GLOBAL slave_parallel_threads=0; diff --git a/mysql-test/suite/rpl/t/rpl_parallel.test b/mysql-test/suite/rpl/t/rpl_parallel.test index 8a6eddbc2e5..73dab48c20a 100644 --- a/mysql-test/suite/rpl/t/rpl_parallel.test +++ b/mysql-test/suite/rpl/t/rpl_parallel.test @@ -452,6 +452,156 @@ INSERT INTO t3 VALUES (39,0); --source include/start_slave.inc --sync_with_master SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +# Restore the foo() function. +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + + +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +--source include/start_slave.inc + + +--echo *** 2. Same as (1), but without restarting IO thread after kill of SQL threads *** + +# Set up three transactions on the master that will be group-committed +# together so they can be replicated in parallel on the slave. +--connection con_temp3 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (41, foo(41, + 'commit_before_prepare_ordered WAIT_FOR t2_waiting', + 'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued1'; + +--connection con_temp4 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +# This insert is just so we can get T2 to wait while a query is running that we +# can see in SHOW PROCESSLIST so we can get its thread_id to kill later. +INSERT INTO t3 VALUES (42, foo(42, + 'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', + '')); +# This insert sets up debug_sync points so that T2 will tell when it is at its +# wait point where we want to kill it - and when it has been killed. +INSERT INTO t3 VALUES (43, foo(43, + 'group_commit_waiting_for_prior SIGNAL t2_waiting', + 'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +send COMMIT; + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued2'; + +--connection con_temp5 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (44, foo(44, + '', + '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; + +--connection con_temp3 +REAP; +--connection con_temp4 +REAP; +--connection con_temp5 +REAP; + +--connection server_1 +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; + +--connection server_2 +# Wait until T2 is inside executing its insert of 42, then find it in SHOW +# PROCESSLIST to know its thread id for KILL later. +SET debug_sync='now WAIT_FOR t2_query'; +--let $thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(42%' AND INFO NOT LIKE '%LIKE%'` +SET debug_sync='now SIGNAL t2_cont'; + +# Wait until T2 has entered its wait for T1 to commit, and T1 has +# progressed into its commit phase. +SET debug_sync='now WAIT_FOR t1_ready'; + +# Now kill the transaction T2. +--replace_result $thd_id THD_ID +eval KILL $thd_id; + +# Wait until T2 has reacted on the kill. +SET debug_sync='now WAIT_FOR t2_killed'; + +# Now we can allow T1 to proceed. +SET debug_sync='now SIGNAL t1_cont'; + +--let $slave_sql_errno= 1317,1963 +--source include/wait_for_slave_sql_error.inc +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; + +# Now we have to disable the debug_sync statements, so they do not trigger +# when the events are retried. +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + +--connection server_1 +INSERT INTO t3 VALUES (49,0); +--save_master_pos + +--connection server_2 +START SLAVE SQL_THREAD; +--sync_with_master +SELECT * FROM t3 WHERE a >= 40 ORDER BY a; +# Restore the foo() function. +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; --connection server_2 diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc index d4db81b79c1..cfa7c0f344f 100644 --- a/sql/rpl_rli.cc +++ b/sql/rpl_rli.cc @@ -886,11 +886,11 @@ void Relay_log_info::inc_group_relay_log_pos(ulonglong log_pos, int cmp= strcmp(group_relay_log_name, event_relay_log_name); if (cmp < 0) { - group_relay_log_pos= event_relay_log_pos; + group_relay_log_pos= rgi->future_event_relay_log_pos; strmake_buf(group_relay_log_name, event_relay_log_name); notify_group_relay_log_name_update(); - } else if (cmp == 0 && group_relay_log_pos < event_relay_log_pos) - group_relay_log_pos= event_relay_log_pos; + } else if (cmp == 0 && group_relay_log_pos < rgi->future_event_relay_log_pos) + group_relay_log_pos= rgi->future_event_relay_log_pos; /* In the parallel case we need to update the master_log_name here, rather -- cgit v1.2.1 From 245ab473a7b2e8aa70ee34562804f33080a6ba41 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Dec 2013 13:24:51 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add another test case. --- mysql-test/suite/rpl/r/rpl_parallel.result | 87 ++++++++++++++++++ mysql-test/suite/rpl/t/rpl_parallel.test | 141 +++++++++++++++++++++++++++++ 2 files changed, 228 insertions(+) diff --git a/mysql-test/suite/rpl/r/rpl_parallel.result b/mysql-test/suite/rpl/r/rpl_parallel.result index 3ec6638e55f..9dc03789714 100644 --- a/mysql-test/suite/rpl/r/rpl_parallel.result +++ b/mysql-test/suite/rpl/r/rpl_parallel.result @@ -428,6 +428,93 @@ SET GLOBAL binlog_format=@old_format; SET GLOBAL slave_parallel_threads=0; SET GLOBAL slave_parallel_threads=10; include/start_slave.inc +*** 3. Same as (2), but not using gtid mode *** +include/stop_slave.inc +CHANGE MASTER TO master_use_gtid=no; +include/start_slave.inc +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (51, foo(51, +'commit_before_prepare_ordered WAIT_FOR t2_waiting', +'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); +SET debug_sync='now WAIT_FOR master_queued1'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +INSERT INTO t3 VALUES (52, foo(52, +'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', +'')); +INSERT INTO t3 VALUES (53, foo(53, +'group_commit_waiting_for_prior SIGNAL t2_waiting', +'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +COMMIT; +SET debug_sync='now WAIT_FOR master_queued2'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (54, foo(54, +'', +'')); +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; +a b +51 51 +52 52 +53 53 +54 54 +SET debug_sync='now WAIT_FOR t2_query'; +SET debug_sync='now SIGNAL t2_cont'; +SET debug_sync='now WAIT_FOR t1_ready'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR t2_killed'; +SET debug_sync='now SIGNAL t1_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1963] +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; +a b +51 51 +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +INSERT INTO t3 VALUES (59,0); +START SLAVE SQL_THREAD; +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; +a b +51 51 +52 52 +53 53 +54 54 +59 0 +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; +include/stop_slave.inc +CHANGE MASTER TO master_use_gtid=slave_pos; +include/start_slave.inc +include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +include/start_slave.inc include/stop_slave.inc SET GLOBAL slave_parallel_threads=@old_parallel_threads; include/start_slave.inc diff --git a/mysql-test/suite/rpl/t/rpl_parallel.test b/mysql-test/suite/rpl/t/rpl_parallel.test index 73dab48c20a..a1eb47f34f8 100644 --- a/mysql-test/suite/rpl/t/rpl_parallel.test +++ b/mysql-test/suite/rpl/t/rpl_parallel.test @@ -604,6 +604,147 @@ CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) SET sql_log_bin=1; +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +--source include/start_slave.inc + + +--echo *** 3. Same as (2), but not using gtid mode *** + +--connection server_2 +--source include/stop_slave.inc +CHANGE MASTER TO master_use_gtid=no; +--source include/start_slave.inc + +--connection server_1 +# Set up three transactions on the master that will be group-committed +# together so they can be replicated in parallel on the slave. +--connection con_temp3 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (51, foo(51, + 'commit_before_prepare_ordered WAIT_FOR t2_waiting', + 'commit_after_prepare_ordered SIGNAL t1_ready WAIT_FOR t1_cont')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued1'; + +--connection con_temp4 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +# This insert is just so we can get T2 to wait while a query is running that we +# can see in SHOW PROCESSLIST so we can get its thread_id to kill later. +INSERT INTO t3 VALUES (52, foo(52, + 'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', + '')); +# This insert sets up debug_sync points so that T2 will tell when it is at its +# wait point where we want to kill it - and when it has been killed. +INSERT INTO t3 VALUES (53, foo(53, + 'group_commit_waiting_for_prior SIGNAL t2_waiting', + 'group_commit_waiting_for_prior_killed SIGNAL t2_killed')); +send COMMIT; + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued2'; + +--connection con_temp5 +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (54, foo(54, + '', + '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; + +--connection con_temp3 +REAP; +--connection con_temp4 +REAP; +--connection con_temp5 +REAP; + +--connection server_1 +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; + +--connection server_2 +# Wait until T2 is inside executing its insert of 52, then find it in SHOW +# PROCESSLIST to know its thread id for KILL later. +SET debug_sync='now WAIT_FOR t2_query'; +--let $thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(52%' AND INFO NOT LIKE '%LIKE%'` +SET debug_sync='now SIGNAL t2_cont'; + +# Wait until T2 has entered its wait for T1 to commit, and T1 has +# progressed into its commit phase. +SET debug_sync='now WAIT_FOR t1_ready'; + +# Now kill the transaction T2. +--replace_result $thd_id THD_ID +eval KILL $thd_id; + +# Wait until T2 has reacted on the kill. +SET debug_sync='now WAIT_FOR t2_killed'; + +# Now we can allow T1 to proceed. +SET debug_sync='now SIGNAL t1_cont'; + +--let $slave_sql_errno= 1317,1963 +--source include/wait_for_slave_sql_error.inc +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; + +# Now we have to disable the debug_sync statements, so they do not trigger +# when the events are retried. +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + +--connection server_1 +INSERT INTO t3 VALUES (59,0); +--save_master_pos + +--connection server_2 +START SLAVE SQL_THREAD; +--sync_with_master +SELECT * FROM t3 WHERE a >= 50 ORDER BY a; +# Restore the foo() function. +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + + +--source include/stop_slave.inc +CHANGE MASTER TO master_use_gtid=slave_pos; +--source include/start_slave.inc --connection server_2 --source include/stop_slave.inc SET GLOBAL binlog_format=@old_format; -- cgit v1.2.1 From 50808b30d26b02837dbd7d0a9c9efbc89f2ff6eb Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 17 Dec 2013 17:26:54 +0100 Subject: MDEV-5396 Assertion `Handlerton: r==0 ' failed (errno=0) on EXPLAIN with TokuDB tables Fix EXPLAIN and CREATE SELECT to join_free() (and, thus, ha_index_end()) before ha_commit_trans(). --- sql/sql_parse.cc | 2 +- sql/sql_select.cc | 10 +++++----- .../mysql-test/tokudb_mariadb/r/commit_5396.result | 16 ++++++++++++++++ .../mysql-test/tokudb_mariadb/t/commit_5396.test | 18 ++++++++++++++++++ 4 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 storage/tokudb/mysql-test/tokudb_mariadb/r/commit_5396.result create mode 100644 storage/tokudb/mysql-test/tokudb_mariadb/t/commit_5396.test diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 41b809774ad..8ebdd3861e7 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -4543,6 +4543,7 @@ finish: DBUG_ASSERT(!thd->in_active_multi_stmt_transaction() || thd->in_multi_stmt_transaction_mode()); + lex->unit.cleanup(); if (! thd->in_sub_stmt) { @@ -4575,7 +4576,6 @@ finish: #endif } - lex->unit.cleanup(); /* Free tables */ thd_proc_info(thd, "closing tables"); close_thread_tables(thd); diff --git a/sql/sql_select.cc b/sql/sql_select.cc index cd475b28783..a224bd77bce 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2258,6 +2258,7 @@ JOIN::exec() In this case JOIN::exec must check for JOIN::having_value, in the same way it checks for JOIN::cond_value. */ + DBUG_ASSERT(error == 0); if (cond_value != Item::COND_FALSE && having_value != Item::COND_FALSE && (!conds || conds->val_int()) && @@ -2268,16 +2269,15 @@ JOIN::exec() procedure->end_of_records()) : result->send_data(fields_list)> 0)) error= 1; else - { - error= (int) result->send_eof(); send_records= ((select_options & OPTION_FOUND_ROWS) ? 1 : thd->sent_row_count); - } } else - { - error=(int) result->send_eof(); send_records= 0; + if (!error) + { + join_free(); // Unlock all cursors + error= (int) result->send_eof(); } } /* Single select (without union) always returns 0 or 1 row */ diff --git a/storage/tokudb/mysql-test/tokudb_mariadb/r/commit_5396.result b/storage/tokudb/mysql-test/tokudb_mariadb/r/commit_5396.result new file mode 100644 index 00000000000..b226abc81d1 --- /dev/null +++ b/storage/tokudb/mysql-test/tokudb_mariadb/r/commit_5396.result @@ -0,0 +1,16 @@ +CREATE TABLE t1 (a VARCHAR(8), INDEX(a)) ENGINE=TokuDB; +INSERT INTO t1 VALUES ('foo'),('bar'); +CREATE TABLE t2 AS SELECT 'qux' IN (SELECT a FROM t1) AS f1; +DROP TABLE t1, t2; +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1),(2); +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (3),(4); +CREATE TABLE t3 (c VARCHAR(3), INDEX(c)) ENGINE=TokuDB; +INSERT INTO t3 VALUES ('foo'),('bar'); +EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT b FROM t2) OR 'qux' IN (SELECT c FROM t3); +id select_type table type possible_keys key key_len ref rows Extra +1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where +3 SUBQUERY t3 index_subquery c c 6 const 0 Using index; Using where +2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 +DROP TABLE t1, t2, t3; diff --git a/storage/tokudb/mysql-test/tokudb_mariadb/t/commit_5396.test b/storage/tokudb/mysql-test/tokudb_mariadb/t/commit_5396.test new file mode 100644 index 00000000000..6df7fb6ac09 --- /dev/null +++ b/storage/tokudb/mysql-test/tokudb_mariadb/t/commit_5396.test @@ -0,0 +1,18 @@ +# +# MDEV-5396 Assertion `Handlerton: r==0 ' failed (errno=0) on EXPLAIN with TokuDB tables +# + +CREATE TABLE t1 (a VARCHAR(8), INDEX(a)) ENGINE=TokuDB; +INSERT INTO t1 VALUES ('foo'),('bar'); +CREATE TABLE t2 AS SELECT 'qux' IN (SELECT a FROM t1) AS f1; +DROP TABLE t1, t2; + +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1),(2); +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (3),(4); +CREATE TABLE t3 (c VARCHAR(3), INDEX(c)) ENGINE=TokuDB; +INSERT INTO t3 VALUES ('foo'),('bar'); +EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT b FROM t2) OR 'qux' IN (SELECT c FROM t3); +DROP TABLE t1, t2, t3; + -- cgit v1.2.1 From 57400ee6819e7dbb601b19f0ac223c491ef7359f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Dec 2013 15:59:51 +0200 Subject: MDEV-5414: RAND() in a subselect : different behavior in MariaDB and MySQL Materialization forced in case if rand() used in view or derived table to avoud several calls of rand for gting value of a field. Fixed set variable uncachable flag from - it shouldbe a side effect not a random value. --- mysql-test/r/derived_view.result | 109 +++++++++++++++++++++++++++++++++++++ mysql-test/r/view.result | 10 ++++ mysql-test/t/derived_view.test | 112 +++++++++++++++++++++++++++++++++++++++ mysql-test/t/view.test | 16 ++++++ sql/sql_derived.cc | 8 +++ sql/sql_lex.cc | 4 +- sql/sql_lex.h | 1 + sql/sql_yacc.yy | 4 +- 8 files changed, 261 insertions(+), 3 deletions(-) diff --git a/mysql-test/r/derived_view.result b/mysql-test/r/derived_view.result index cd582f8ae9b..a37f9480e5c 100644 --- a/mysql-test/r/derived_view.result +++ b/mysql-test/r/derived_view.result @@ -2246,6 +2246,115 @@ Warnings: Note 1003 select 4 AS `a` from `test`.`t1` where (4 > 100) order by 1 DROP VIEW v1; DROP TABLE t1; +CREATE TABLE IF NOT EXISTS `galleries` ( +`id` int(11) NOT NULL AUTO_INCREMENT, +`name` varchar(100) NOT NULL, +`year` int(11) DEFAULT NULL, +PRIMARY KEY (`id`), +UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +Warnings: +Warning 1286 Unknown table engine 'InnoDB' +Warning 1266 Using storage engine MyISAM for table 'galleries' +CREATE TABLE IF NOT EXISTS `pictures` ( +`id` int(11) NOT NULL AUTO_INCREMENT, +`name` varchar(100) NOT NULL, +`width` float DEFAULT NULL, +`height` float DEFAULT NULL, +`year` int(4) DEFAULT NULL, +`technique` varchar(50) DEFAULT NULL, +`comment` varchar(2000) DEFAULT NULL, +`gallery_id` int(11) NOT NULL, +`type` int(11) NOT NULL, +PRIMARY KEY (`id`), +KEY `gallery_id` (`gallery_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; +Warnings: +Warning 1286 Unknown table engine 'InnoDB' +Warning 1266 Using storage engine MyISAM for table 'pictures' +ALTER TABLE `pictures` +ADD CONSTRAINT `pictures_ibfk_1` FOREIGN KEY (`gallery_id`) REFERENCES `galleries` (`id`); +INSERT INTO `galleries` (`id`, `name`, `year`) VALUES +(1, 'Quand le noir et blanc invite le taupe', 2013), +(2, 'Une touche de couleur', 2012), +(3, 'Éclats', 2011), +(4, 'Gris béton', 2010), +(5, 'Expression du spalter', 2010), +(6, 'Zénitude', 2009), +(7, 'La force du rouge', 2008), +(8, 'Sphères', NULL), +(9, 'Centre', 2009), +(10, 'Nébuleuse', NULL); +INSERT INTO `pictures` (`id`, `name`, `width`, `height`, `year`, `technique`, `comment`, `gallery_id`, `type`) VALUES +(1, 'Éclaircie', 72.5, 100, NULL, NULL, NULL, 1, 1), +(2, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1), +(3, 'Nouveau souffle', 72.5, 100, NULL, NULL, NULL, 1, 1), +(4, 'Échanges (2)', 89, 116, NULL, NULL, NULL, 1, 1), +(5, 'Échanges', 89, 116, NULL, NULL, NULL, 1, 1), +(6, 'Fenêtre de vie', 81, 116, NULL, NULL, NULL, 1, 1), +(7, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1), +(8, 'Nouveau souffle (2)', 72.5, 100, NULL, NULL, NULL, 1, 1), +(9, 'Fluidité', 89, 116, NULL, NULL, NULL, 1, 1), +(10, 'Nouveau Monde', 89, 125, NULL, NULL, NULL, 1, 1), +(11, 'Mirage', 73, 100, NULL, NULL, NULL, 1, 1), +(12, 'Équilibre', 72.5, 116, NULL, NULL, NULL, 2, 1), +(13, 'Fusion', 72.5, 116, NULL, NULL, NULL, 2, 1), +(14, 'Étincelles', NULL, NULL, NULL, NULL, NULL, 3, 1), +(15, 'Régénérescence', NULL, NULL, NULL, NULL, NULL, 3, 1), +(16, 'Chaleur', 80, 80, NULL, NULL, NULL, 4, 1), +(17, 'Création', 90, 90, NULL, NULL, NULL, 4, 1), +(18, 'Horizon', 92, 73, NULL, NULL, NULL, 4, 1), +(19, 'Labyrinthe', 81, 100, NULL, NULL, NULL, 4, 1), +(20, 'Miroir', 80, 116, NULL, NULL, NULL, 5, 1), +(21, 'Libération', 81, 116, NULL, NULL, NULL, 5, 1), +(22, 'Éclats', 81, 116, NULL, NULL, NULL, 5, 1), +(23, 'Zénitude', 116, 89, NULL, NULL, NULL, 6, 1), +(24, 'Écritures lointaines', 90, 90, NULL, NULL, NULL, 7, 1), +(25, 'Émergence', 80, 80, NULL, NULL, NULL, 7, 1), +(26, 'Liberté', 50, 50, NULL, NULL, NULL, 7, 1), +(27, 'Silhouettes amérindiennes', 701, 70, NULL, NULL, NULL, 7, 1), +(28, 'Puissance', 81, 100, NULL, NULL, NULL, 8, 1), +(29, 'Source', 73, 116, NULL, NULL, NULL, 8, 1), +(30, 'Comme une ville qui prend vie', 50, 100, 2008, NULL, NULL, 9, 1), +(31, 'Suspension azur', 80, 80, NULL, NULL, NULL, 9, 1), +(32, 'Nébuleuse', 70, 70, NULL, NULL, NULL, 10, 1), +(33, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(34, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(35, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(36, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(37, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(38, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2); +explain +SELECT g.id AS gallery_id, +g.name AS gallery_name, +p.id AS picture_id, +p.name AS picture_name, +g.p_random AS r1, +g.p_random AS r2, +g.p_random AS r3 +FROM +( +SELECT gal.id, +gal.name, +( +SELECT pi.id +FROM pictures pi +WHERE pi.gallery_id = gal.id +ORDER BY RAND() +LIMIT 1 +) AS p_random +FROM galleries gal +) g +LEFT JOIN pictures p +ON p.id = g.p_random +ORDER BY gallery_name ASC +; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE ALL NULL NULL NULL NULL 2 Using filesort +1 SIMPLE p eq_ref PRIMARY PRIMARY 4 g.p_random 1 Using where +2 DERIVED gal ALL NULL NULL NULL NULL 10 +3 DEPENDENT SUBQUERY pi ref gallery_id gallery_id 4 test.gal.id 4 Using temporary; Using filesort +drop table galleries, pictures; # # end of 5.3 tests # diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index c98d8dfd8a4..436b81a20a2 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -4740,6 +4740,16 @@ i1 c1 i1 c1 deallocate prepare stmt; drop view v1; drop table t1,t2; +create table t1 (a int); +insert into t1 values (1),(2); +create view v1 (a,r) as select a,rand() from t1; +create table t2 select a, r as r1, r as r2, r as r3 from v1; +select a, r1 = r2, r2 = r3 from t2; +a r1 = r2 r2 = r3 +1 1 1 +2 1 1 +drop view v1; +drop table t1,t2; # ----------------------------------------------------------------- # -- End of 5.3 tests. # ----------------------------------------------------------------- diff --git a/mysql-test/t/derived_view.test b/mysql-test/t/derived_view.test index 3da58d8ae23..61e11cebad4 100644 --- a/mysql-test/t/derived_view.test +++ b/mysql-test/t/derived_view.test @@ -1591,6 +1591,118 @@ EXPLAIN EXTENDED SELECT a FROM v1 WHERE a > 100 ORDER BY b; DROP VIEW v1; DROP TABLE t1; +# +# MDEV-5414: RAND() in a subselect : different behavior in MariaDB and MySQL +# +CREATE TABLE IF NOT EXISTS `galleries` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `year` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `pictures` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `width` float DEFAULT NULL, + `height` float DEFAULT NULL, + `year` int(4) DEFAULT NULL, + `technique` varchar(50) DEFAULT NULL, + `comment` varchar(2000) DEFAULT NULL, + `gallery_id` int(11) NOT NULL, + `type` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `gallery_id` (`gallery_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; + +ALTER TABLE `pictures` + ADD CONSTRAINT `pictures_ibfk_1` FOREIGN KEY (`gallery_id`) REFERENCES `galleries` (`id`); + +INSERT INTO `galleries` (`id`, `name`, `year`) VALUES +(1, 'Quand le noir et blanc invite le taupe', 2013), +(2, 'Une touche de couleur', 2012), +(3, 'Éclats', 2011), +(4, 'Gris béton', 2010), +(5, 'Expression du spalter', 2010), +(6, 'Zénitude', 2009), +(7, 'La force du rouge', 2008), +(8, 'Sphères', NULL), +(9, 'Centre', 2009), +(10, 'Nébuleuse', NULL); + +INSERT INTO `pictures` (`id`, `name`, `width`, `height`, `year`, `technique`, `comment`, `gallery_id`, `type`) VALUES +(1, 'Éclaircie', 72.5, 100, NULL, NULL, NULL, 1, 1), +(2, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1), +(3, 'Nouveau souffle', 72.5, 100, NULL, NULL, NULL, 1, 1), +(4, 'Échanges (2)', 89, 116, NULL, NULL, NULL, 1, 1), +(5, 'Échanges', 89, 116, NULL, NULL, NULL, 1, 1), +(6, 'Fenêtre de vie', 81, 116, NULL, NULL, NULL, 1, 1), +(7, 'Architecture', 81, 100, NULL, NULL, NULL, 1, 1), +(8, 'Nouveau souffle (2)', 72.5, 100, NULL, NULL, NULL, 1, 1), +(9, 'Fluidité', 89, 116, NULL, NULL, NULL, 1, 1), +(10, 'Nouveau Monde', 89, 125, NULL, NULL, NULL, 1, 1), +(11, 'Mirage', 73, 100, NULL, NULL, NULL, 1, 1), +(12, 'Équilibre', 72.5, 116, NULL, NULL, NULL, 2, 1), +(13, 'Fusion', 72.5, 116, NULL, NULL, NULL, 2, 1), +(14, 'Étincelles', NULL, NULL, NULL, NULL, NULL, 3, 1), +(15, 'Régénérescence', NULL, NULL, NULL, NULL, NULL, 3, 1), +(16, 'Chaleur', 80, 80, NULL, NULL, NULL, 4, 1), +(17, 'Création', 90, 90, NULL, NULL, NULL, 4, 1), +(18, 'Horizon', 92, 73, NULL, NULL, NULL, 4, 1), +(19, 'Labyrinthe', 81, 100, NULL, NULL, NULL, 4, 1), +(20, 'Miroir', 80, 116, NULL, NULL, NULL, 5, 1), +(21, 'Libération', 81, 116, NULL, NULL, NULL, 5, 1), +(22, 'Éclats', 81, 116, NULL, NULL, NULL, 5, 1), +(23, 'Zénitude', 116, 89, NULL, NULL, NULL, 6, 1), +(24, 'Écritures lointaines', 90, 90, NULL, NULL, NULL, 7, 1), +(25, 'Émergence', 80, 80, NULL, NULL, NULL, 7, 1), +(26, 'Liberté', 50, 50, NULL, NULL, NULL, 7, 1), +(27, 'Silhouettes amérindiennes', 701, 70, NULL, NULL, NULL, 7, 1), +(28, 'Puissance', 81, 100, NULL, NULL, NULL, 8, 1), +(29, 'Source', 73, 116, NULL, NULL, NULL, 8, 1), +(30, 'Comme une ville qui prend vie', 50, 100, 2008, NULL, NULL, 9, 1), +(31, 'Suspension azur', 80, 80, NULL, NULL, NULL, 9, 1), +(32, 'Nébuleuse', 70, 70, NULL, NULL, NULL, 10, 1), +(33, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(34, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(35, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(36, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(37, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2), +(38, 'Œuvre commandée 120 P', 114, 195, NULL, NULL, NULL, 1, 2); + +# Now we only lest explain to be sure that table materialized. If +# in the future merged derived table will be processed in a way that +# rand() can be called only once then other way of testing correctness +# of this query should be put here. +explain +SELECT g.id AS gallery_id, + g.name AS gallery_name, + p.id AS picture_id, + p.name AS picture_name, + g.p_random AS r1, + g.p_random AS r2, + g.p_random AS r3 +FROM +( + SELECT gal.id, + gal.name, + ( + SELECT pi.id + FROM pictures pi + WHERE pi.gallery_id = gal.id + ORDER BY RAND() + LIMIT 1 + ) AS p_random + FROM galleries gal +) g +LEFT JOIN pictures p + ON p.id = g.p_random +ORDER BY gallery_name ASC +; + +drop table galleries, pictures; + --echo # --echo # end of 5.3 tests --echo # diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index 2027f22e7c5..319f93664e7 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -4675,6 +4675,22 @@ deallocate prepare stmt; drop view v1; drop table t1,t2; +# +# MDEV-5414: RAND() in a subselect : different behavior in MariaDB and MySQL +# +create table t1 (a int); +insert into t1 values (1),(2); + +create view v1 (a,r) as select a,rand() from t1; + + +create table t2 select a, r as r1, r as r2, r as r3 from v1; + +select a, r1 = r2, r2 = r3 from t2; + +drop view v1; +drop table t1,t2; + --echo # ----------------------------------------------------------------- --echo # -- End of 5.3 tests. --echo # ----------------------------------------------------------------- diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index 9d04beaf73e..5227ec2d958 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -357,6 +357,14 @@ bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived) if (derived->merged) return FALSE; + if (dt_select->uncacheable & UNCACHEABLE_RAND) + { + /* There is random function => fall back to materialization. */ + derived->change_refs_to_fields(); + derived->set_materialized_derived(); + return FALSE; + } + if (thd->lex->sql_command == SQLCOM_UPDATE_MULTI || thd->lex->sql_command == SQLCOM_DELETE_MULTI) thd->save_prep_leaf_list= TRUE; diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 8ba3c671598..ccc51e39785 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -2340,7 +2340,9 @@ bool st_lex::can_be_merged() // TODO: do not forget implement case when select_lex.table_list.elements==0 /* find non VIEW subqueries/unions */ - bool selects_allow_merge= select_lex.next_select() == 0; + bool selects_allow_merge= (select_lex.next_select() == 0 && + !(select_lex.uncacheable & + UNCACHEABLE_RAND)); if (selects_allow_merge) { for (SELECT_LEX_UNIT *tmp_unit= select_lex.first_inner_unit(); diff --git a/sql/sql_lex.h b/sql/sql_lex.h index d5639724d5f..72e8bf87440 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -2002,6 +2002,7 @@ typedef struct st_lex : public Query_tables_list sl->uncacheable|= cause; un->uncacheable|= cause; } + select_lex.uncacheable|= cause; } void set_trg_event_type_for_tables(); diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index b1772536639..1b5b975ccd4 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -8772,7 +8772,7 @@ variable_aux: if ($$ == NULL) MYSQL_YYABORT; LEX *lex= Lex; - lex->uncacheable(UNCACHEABLE_RAND); + lex->uncacheable(UNCACHEABLE_SIDEEFFECT); lex->set_var_list.push_back(item); } | ident_or_text @@ -8781,7 +8781,7 @@ variable_aux: if ($$ == NULL) MYSQL_YYABORT; LEX *lex= Lex; - lex->uncacheable(UNCACHEABLE_RAND); + lex->uncacheable(UNCACHEABLE_SIDEEFFECT); } | '@' opt_var_ident_type ident_or_text opt_component { -- cgit v1.2.1 From 86a2c03b51b2995a0f35ae448e3bf953b90060ad Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Dec 2013 16:26:22 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add another test case. This one for killing a worker while its transaction is waiting to start until the previous transaction has committed. Fix setting reading_or_writing to 0 in worker threads so SHOW SLAVE STATUS can show something more useful than "Reading from net". --- mysql-test/suite/rpl/r/rpl_parallel.result | 115 +++++++++++++++++ mysql-test/suite/rpl/t/rpl_parallel.test | 196 +++++++++++++++++++++++++++++ sql/rpl_parallel.cc | 9 ++ 3 files changed, 320 insertions(+) diff --git a/mysql-test/suite/rpl/r/rpl_parallel.result b/mysql-test/suite/rpl/r/rpl_parallel.result index 9dc03789714..ef88ecfef44 100644 --- a/mysql-test/suite/rpl/r/rpl_parallel.result +++ b/mysql-test/suite/rpl/r/rpl_parallel.result @@ -295,6 +295,7 @@ a b SET sql_log_bin=0; CALL mtr.add_suppression("Query execution was interrupted"); CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +CALL mtr.add_suppression("Slave: Connection was killed"); SET sql_log_bin=1; SET debug_sync='now WAIT_FOR t2_query'; SET debug_sync='now SIGNAL t2_cont'; @@ -513,6 +514,120 @@ include/start_slave.inc include/stop_slave.inc SET GLOBAL binlog_format=@old_format; SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=3; +include/start_slave.inc +*** 4. Test killing thread that is waiting to start transaction until previous transaction commits *** +SET binlog_format=statement; +SET gtid_domain_id=2; +INSERT INTO t3 VALUES (60, foo(60, +'ha_write_row_end SIGNAL d2_query WAIT_FOR d2_cont2', +'rpl_parallel_end_of_group SIGNAL d2_done WAIT_FOR d2_cont')); +SET gtid_domain_id=0; +SET debug_sync='now WAIT_FOR d2_query'; +SET gtid_domain_id=1; +BEGIN; +INSERT INTO t3 VALUES (61, foo(61, +'rpl_parallel_start_waiting_for_prior SIGNAL t3_waiting', +'rpl_parallel_start_waiting_for_prior_killed SIGNAL t3_killed')); +INSERT INTO t3 VALUES (62, foo(62, +'ha_write_row_end SIGNAL d1_query WAIT_FOR d1_cont2', +'rpl_parallel_end_of_group SIGNAL d1_done WAIT_FOR d1_cont')); +COMMIT; +SET gtid_domain_id=0; +SET debug_sync='now WAIT_FOR d1_query'; +SET gtid_domain_id=0; +INSERT INTO t3 VALUES (63, foo(63, +'ha_write_row_end SIGNAL d0_query WAIT_FOR d0_cont2', +'rpl_parallel_end_of_group SIGNAL d0_done WAIT_FOR d0_cont')); +SET debug_sync='now WAIT_FOR d0_query'; +SET debug_sync='now SIGNAL d2_cont2'; +SET debug_sync='now WAIT_FOR d2_done'; +SET debug_sync='now SIGNAL d1_cont2'; +SET debug_sync='now WAIT_FOR d1_done'; +SET debug_sync='now SIGNAL d0_cont2'; +SET debug_sync='now WAIT_FOR d0_done'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (64, foo(64, +'commit_before_prepare_ordered SIGNAL t1_waiting WAIT_FOR t1_cont', '')); +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2 WAIT_FOR master_cont2'; +INSERT INTO t3 VALUES (65, foo(65, '', '')); +SET debug_sync='now WAIT_FOR master_queued2'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +INSERT INTO t3 VALUES (66, foo(66, '', '')); +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued4'; +INSERT INTO t3 VALUES (67, foo(67, '', '')); +SET debug_sync='now WAIT_FOR master_queued4'; +SET debug_sync='now SIGNAL master_cont2'; +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; +a b +60 60 +61 61 +62 62 +63 63 +64 64 +65 65 +66 66 +67 67 +SET debug_sync='now SIGNAL d0_cont'; +SET debug_sync='now WAIT_FOR t1_waiting'; +SET debug_sync='now SIGNAL d1_cont'; +SET debug_sync='now WAIT_FOR t3_waiting'; +SET debug_sync='now SIGNAL d2_cont'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR t3_killed'; +SET debug_sync='now SIGNAL t1_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1927,1963] +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; +a b +60 60 +61 61 +62 62 +63 63 +64 64 +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +INSERT INTO t3 VALUES (69,0); +include/start_slave.inc +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; +a b +60 60 +61 61 +62 62 +63 63 +64 64 +65 65 +66 66 +67 67 +69 0 +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; +include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; SET GLOBAL slave_parallel_threads=10; include/start_slave.inc include/stop_slave.inc diff --git a/mysql-test/suite/rpl/t/rpl_parallel.test b/mysql-test/suite/rpl/t/rpl_parallel.test index a1eb47f34f8..94d3b53974a 100644 --- a/mysql-test/suite/rpl/t/rpl_parallel.test +++ b/mysql-test/suite/rpl/t/rpl_parallel.test @@ -402,6 +402,7 @@ SELECT * FROM t3 WHERE a >= 30 ORDER BY a; SET sql_log_bin=0; CALL mtr.add_suppression("Query execution was interrupted"); CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +CALL mtr.add_suppression("Slave: Connection was killed"); SET sql_log_bin=1; # Wait until T2 is inside executing its insert of 32, then find it in SHOW # PROCESSLIST to know its thread id for KILL later. @@ -745,6 +746,201 @@ SET sql_log_bin=1; --source include/stop_slave.inc CHANGE MASTER TO master_use_gtid=slave_pos; --source include/start_slave.inc + +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=3; +--source include/start_slave.inc + + +--echo *** 4. Test killing thread that is waiting to start transaction until previous transaction commits *** + +# We set up four transactions T1, T2, T3, and T4 on the master. T2, T3, and T4 +# can run in parallel with each other (same group commit and commit id), +# but not in parallel with T1. +# +# We use three worker threads. T1 and T2 will be queued on the first, T3 on +# the second, and T4 on the third. We will delay T1 commit, T3 will wait for +# T1 to commit before it can start. We will kill T3 during this wait, and +# check that everything works correctly. +# +# It is rather tricky to get the correct thread id of the worker to kill. +# We start by injecting three dummy transactions in a debug_sync-controlled +# manner to be able to get known thread ids for the workers in a pool with +# just 3 worker threads. Then we let in each of the real test transactions +# T1-T4 one at a time in a way which allows us to know which transaction +# ends up with which thread id. + +--connection server_1 +SET binlog_format=statement; +SET gtid_domain_id=2; +INSERT INTO t3 VALUES (60, foo(60, + 'ha_write_row_end SIGNAL d2_query WAIT_FOR d2_cont2', + 'rpl_parallel_end_of_group SIGNAL d2_done WAIT_FOR d2_cont')); +SET gtid_domain_id=0; + +--connection server_2 +SET debug_sync='now WAIT_FOR d2_query'; +--let $d2_thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(60%' AND INFO NOT LIKE '%LIKE%'` + +--connection server_1 +SET gtid_domain_id=1; +BEGIN; +# These debug_sync's will linger on and be used to control T3 later. +INSERT INTO t3 VALUES (61, foo(61, + 'rpl_parallel_start_waiting_for_prior SIGNAL t3_waiting', + 'rpl_parallel_start_waiting_for_prior_killed SIGNAL t3_killed')); +INSERT INTO t3 VALUES (62, foo(62, + 'ha_write_row_end SIGNAL d1_query WAIT_FOR d1_cont2', + 'rpl_parallel_end_of_group SIGNAL d1_done WAIT_FOR d1_cont')); +COMMIT; +SET gtid_domain_id=0; + +--connection server_2 +SET debug_sync='now WAIT_FOR d1_query'; +--let $d1_thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(62%' AND INFO NOT LIKE '%LIKE%'` + +--connection server_1 +SET gtid_domain_id=0; +INSERT INTO t3 VALUES (63, foo(63, + 'ha_write_row_end SIGNAL d0_query WAIT_FOR d0_cont2', + 'rpl_parallel_end_of_group SIGNAL d0_done WAIT_FOR d0_cont')); + +--connection server_2 +SET debug_sync='now WAIT_FOR d0_query'; +--let $d0_thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(63%' AND INFO NOT LIKE '%LIKE%'` + +SET debug_sync='now SIGNAL d2_cont2'; +SET debug_sync='now WAIT_FOR d2_done'; +SET debug_sync='now SIGNAL d1_cont2'; +SET debug_sync='now WAIT_FOR d1_done'; +SET debug_sync='now SIGNAL d0_cont2'; +SET debug_sync='now WAIT_FOR d0_done'; + +# Now prepare the real transactions T1, T2, T3, T4 on the master. + +--connection con_temp3 +# Create transaction T1. +SET binlog_format=statement; +INSERT INTO t3 VALUES (64, foo(64, + 'commit_before_prepare_ordered SIGNAL t1_waiting WAIT_FOR t1_cont', '')); + +# Create transaction T2, as a group commit leader on the master. +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2 WAIT_FOR master_cont2'; +send INSERT INTO t3 VALUES (65, foo(65, '', '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued2'; + +--connection con_temp4 +# Create transaction T3, participating in T2's group commit. +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +send INSERT INTO t3 VALUES (66, foo(66, '', '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued3'; + +--connection con_temp5 +# Create transaction T4, participating in group commit with T2 and T3. +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued4'; +send INSERT INTO t3 VALUES (67, foo(67, '', '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued4'; +SET debug_sync='now SIGNAL master_cont2'; + +--connection con_temp3 +REAP; +--connection con_temp4 +REAP; +--connection con_temp5 +REAP; + +--connection server_1 +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; + +--connection server_2 +# Now we have the four transactions pending for replication on the slave. +# Let them be queued for our three worker threads in a controlled fashion. +# We put them at a stage where T1 is delayed and T3 is waiting for T1 to +# commit before T3 can start. Then we kill T3. + +# Make the worker D0 free, and wait for T1 to be queued in it. +SET debug_sync='now SIGNAL d0_cont'; +SET debug_sync='now WAIT_FOR t1_waiting'; + +# T2 will be queued on the same worker D0 as T1. +# Now release worker D1, and wait for T3 to be queued in it. +# T3 will wait for T1 to commit before it can start. +SET debug_sync='now SIGNAL d1_cont'; +SET debug_sync='now WAIT_FOR t3_waiting'; + +# Release worker D2. T4 may or may not have time to be queued on it, but +# it will not be able to complete due to T3 being killed. +SET debug_sync='now SIGNAL d2_cont'; + +# Now we kill the waiting transaction T3 in worker D1. +--replace_result $d1_thd_id THD_ID +eval KILL $d1_thd_id; + +# Wait until T3 has reacted on the kill. +SET debug_sync='now WAIT_FOR t3_killed'; + +# Now we can allow T1 to proceed. +SET debug_sync='now SIGNAL t1_cont'; + +--let $slave_sql_errno= 1317,1927,1963 +--source include/wait_for_slave_sql_error.inc +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; + +# Now we have to disable the debug_sync statements, so they do not trigger +# when the events are retried. +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + +--connection server_1 +INSERT INTO t3 VALUES (69,0); +--save_master_pos + +--connection server_2 +--source include/start_slave.inc +--sync_with_master +SELECT * FROM t3 WHERE a >= 60 ORDER BY a; +# Restore the foo() function. +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + + --connection server_2 --source include/stop_slave.inc SET GLOBAL binlog_format=@old_format; diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index 91aa36abc52..3cdd1f5ec8d 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -2,6 +2,7 @@ #include "rpl_parallel.h" #include "slave.h" #include "rpl_mi.h" +#include "debug_sync.h" /* @@ -219,6 +220,7 @@ handle_rpl_parallel_thread(void *arg) thd->variables.log_slow_filter= global_system_variables.log_slow_filter; set_slave_thread_options(thd); thd->client_capabilities = CLIENT_LOCAL_FILES; + thd->net.reading_or_writing= 0; thd_proc_info(thd, "Waiting for work from main SQL threads"); thd->set_time(); thd->variables.lock_wait_timeout= LONG_TIMEOUT; @@ -308,6 +310,7 @@ handle_rpl_parallel_thread(void *arg) "Waiting for prior transaction to commit " "before starting next transaction"); did_enter_cond= true; + DEBUG_SYNC(thd, "rpl_parallel_start_waiting_for_prior"); while (wait_start_sub_id > entry->last_committed_sub_id && !thd->check_killed()) mysql_cond_wait(&entry->COND_parallel_entry, @@ -315,6 +318,7 @@ handle_rpl_parallel_thread(void *arg) if (wait_start_sub_id > entry->last_committed_sub_id) { /* The thread got a kill signal. */ + DEBUG_SYNC(thd, "rpl_parallel_start_waiting_for_prior_killed"); thd->send_kill_message(); slave_output_error_info(rgi->rli, thd); signal_error_to_sql_driver_thread(thd, rgi); @@ -383,6 +387,7 @@ handle_rpl_parallel_thread(void *arg) &rgi->commit_orderer); delete rgi; group_rgi= rgi= NULL; + DEBUG_SYNC(thd, "rpl_parallel_end_of_group"); } events= next; @@ -843,6 +848,10 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, However, the commit of this event must wait for the commit of the prior event, to preserve binlog commit order and visibility across all servers in the replication hierarchy. + + In addition, we must not start executing this event until we have + finished the previous collection of event groups that group-committed + together; we use rgi->wait_start_sub_id to control this. */ rpl_parallel_thread *rpt= global_rpl_thread_pool.get_thread(e); rgi->wait_commit_sub_id= e->current_sub_id; -- cgit v1.2.1 From 1555f1801d330d07bdaa94f106dbd407a68f3c90 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Dec 2013 12:35:47 +0200 Subject: make 5.1 compiling with modern gcc. --- mysys/md5.c | 2 +- sql/field.cc | 4 ++-- storage/maria/ma_blockrec.c | 2 +- storage/maria/ma_checksum.c | 2 +- storage/maria/ma_key.c | 2 +- storage/myisam/mi_checksum.c | 2 +- storage/myisam/mi_key.c | 2 +- storage/pbxt/src/myxt_xt.cc | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mysys/md5.c b/mysys/md5.c index 2388cebedc4..22a5e409a09 100644 --- a/mysys/md5.c +++ b/mysys/md5.c @@ -176,7 +176,7 @@ my_MD5Final (unsigned char digest[16], my_MD5Context *ctx) putu32(ctx->buf[1], digest + 4); putu32(ctx->buf[2], digest + 8); putu32(ctx->buf[3], digest + 12); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5 diff --git a/sql/field.cc b/sql/field.cc index 7e2db40ccb0..5b864bb7ba0 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -7709,7 +7709,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs) if (!String::needs_conversion(length, cs, field_charset, &dummy_offset)) { Field_blob::store_length(length); - bmove(ptr+packlength,(char*) &from,sizeof(char*)); + bmove(ptr + packlength, &from, sizeof(char*)); return 0; } if (tmpstr.copy(from, length, cs)) @@ -8364,7 +8364,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs) value.copy(from, length, cs); from= value.ptr(); } - bmove(ptr + packlength, (char*) &from, sizeof(char*)); + bmove(ptr + packlength, &from, sizeof(char*)); } return 0; diff --git a/storage/maria/ma_blockrec.c b/storage/maria/ma_blockrec.c index 73b3326fd28..a08cd554615 100644 --- a/storage/maria/ma_blockrec.c +++ b/storage/maria/ma_blockrec.c @@ -7154,7 +7154,7 @@ my_bool _ma_apply_undo_row_delete(MARIA_HA *info, LSN undo_lsn, memcpy(field_pos, field_length_data, size_length); field_length_data+= size_length; - memcpy(field_pos + size_length, &header, sizeof(&header)); + memcpy(field_pos + size_length, &header, sizeof(header)); header+= blob_length; *blob_lengths++= blob_length; break; diff --git a/storage/maria/ma_checksum.c b/storage/maria/ma_checksum.c index 61ec638053a..da2d40d3687 100644 --- a/storage/maria/ma_checksum.c +++ b/storage/maria/ma_checksum.c @@ -58,7 +58,7 @@ ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record) length= _ma_calc_blob_length(blob_size_length, pos); if (length) { - memcpy((char*) &pos, pos + blob_size_length, sizeof(char*)); + memcpy(&pos, pos + blob_size_length, sizeof(char*)); crc= my_checksum(crc, pos, length); } continue; diff --git a/storage/maria/ma_key.c b/storage/maria/ma_key.c index 207ae9a8bda..037e8db2cfb 100644 --- a/storage/maria/ma_key.c +++ b/storage/maria/ma_key.c @@ -583,7 +583,7 @@ static int _ma_put_key_in_record(register MARIA_HA *info, uint keynr, goto err; #endif memcpy(record+keyseg->start+keyseg->bit_start, - (char*) &blob_ptr,sizeof(char*)); + &blob_ptr,sizeof(char*)); memcpy(blob_ptr,key,length); blob_ptr+=length; diff --git a/storage/myisam/mi_checksum.c b/storage/myisam/mi_checksum.c index 8c408ef7ff5..13dd52db22e 100644 --- a/storage/myisam/mi_checksum.c +++ b/storage/myisam/mi_checksum.c @@ -40,7 +40,7 @@ ha_checksum mi_checksum(MI_INFO *info, const uchar *buf) length=_mi_calc_blob_length(column->length- portable_sizeof_char_ptr, buf); - memcpy((char*) &pos, buf+column->length- portable_sizeof_char_ptr, + memcpy(&pos, buf+column->length- portable_sizeof_char_ptr, sizeof(char*)); break; } diff --git a/storage/myisam/mi_key.c b/storage/myisam/mi_key.c index 94f3f34ec58..02254bae68d 100644 --- a/storage/myisam/mi_key.c +++ b/storage/myisam/mi_key.c @@ -419,7 +419,7 @@ static int _mi_put_key_in_record(register MI_INFO *info, uint keynr, goto err; #endif memcpy(record+keyseg->start+keyseg->bit_start, - (char*) &blob_ptr,sizeof(char*)); + &blob_ptr,sizeof(char*)); memcpy(blob_ptr,key,length); blob_ptr+=length; diff --git a/storage/pbxt/src/myxt_xt.cc b/storage/pbxt/src/myxt_xt.cc index b7b81823383..49a22e980ca 100644 --- a/storage/pbxt/src/myxt_xt.cc +++ b/storage/pbxt/src/myxt_xt.cc @@ -937,7 +937,7 @@ xtPublic xtBool myxt_create_row_from_key(XTOpenTablePtr XT_UNUSED(ot), XTIndexPt */ byte *key_ptr = key; // Cannot take the address of a register variable! memcpy(record+keyseg->start+keyseg->bit_start, - (char*) &key_ptr,sizeof(char*)); + &key_ptr,sizeof(char*)); my_store_blob_length(record+keyseg->start, (uint) keyseg->bit_start,length); -- cgit v1.2.1 From f8c7e3477f17488f546ab5d20c4fad6aa0577d01 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Mon, 30 Dec 2013 20:30:29 +0400 Subject: MDEV-5349: Test main.subselect_sj_jcl6 fails sporadically due to insufficient ordering - Add --sorted_result to the query --- mysql-test/r/subselect_sj.result | 4 ++-- mysql-test/r/subselect_sj_jcl6.result | 4 ++-- mysql-test/t/subselect_sj.test | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mysql-test/r/subselect_sj.result b/mysql-test/r/subselect_sj.result index 0e9d8240843..0e028cc7f51 100644 --- a/mysql-test/r/subselect_sj.result +++ b/mysql-test/r/subselect_sj.result @@ -2931,10 +2931,10 @@ CREATE TABLE t3 (c3 VARCHAR(1)) ENGINE=MyISAM; INSERT INTO t3 VALUES ('x'),('d'); SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1; pk c1 c2 -4 NULL x -3 c x 1 v x 2 v x +3 c x +4 NULL x 5 x x # This should show that "t1 left join t3" is still in the semi-join nest: EXPLAIN EXTENDED diff --git a/mysql-test/r/subselect_sj_jcl6.result b/mysql-test/r/subselect_sj_jcl6.result index 4b503dc8bbb..af91cc3eeac 100644 --- a/mysql-test/r/subselect_sj_jcl6.result +++ b/mysql-test/r/subselect_sj_jcl6.result @@ -2945,10 +2945,10 @@ CREATE TABLE t3 (c3 VARCHAR(1)) ENGINE=MyISAM; INSERT INTO t3 VALUES ('x'),('d'); SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1; pk c1 c2 -4 NULL x -3 c x 1 v x 2 v x +3 c x +4 NULL x 5 x x # This should show that "t1 left join t3" is still in the semi-join nest: EXPLAIN EXTENDED diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test index 536606175bb..a6ce3f25617 100644 --- a/mysql-test/t/subselect_sj.test +++ b/mysql-test/t/subselect_sj.test @@ -2634,6 +2634,7 @@ INSERT INTO t2 VALUES ('x'); CREATE TABLE t3 (c3 VARCHAR(1)) ENGINE=MyISAM; INSERT INTO t3 VALUES ('x'),('d'); +--sorted_result SELECT * FROM t1, t2 WHERE pk IN ( SELECT pk FROM t1 LEFT JOIN t3 ON (c1 = c3 ) ) ORDER BY c2, c1; --echo # This should show that "t1 left join t3" is still in the semi-join nest: -- cgit v1.2.1 From c050b5fdf9564e5ffd98ff381c61504efdf69f99 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Thu, 2 Jan 2014 15:51:02 +0200 Subject: Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected results (InnoDB/XtraDB) This only happend when using an ORDER BY on a primary key part, where all other key parts where constant. Remove of duplicated expressions in ORDER BY (as the old code did this in some strange cases) mysql-test/r/group_by.result: Fixed results to take into account that duplicate order by parts are now deleted mysql-test/r/group_by_innodb.result: Ensure extended keys are on mysql-test/r/innodb_ext_key.result: More tests mysql-test/r/order_by.result: More tests mysql-test/t/group_by.test: Fixed results to take into account that duplicate order by parts are now deleted mysql-test/t/group_by_innodb.test: Ensure extended keys are on mysql-test/t/innodb_ext_key.test: More tests mysql-test/t/order_by.test: More tests sql/sql_select.cc: Fixed bug where we looked at extended key parts when we shouldn't Remove of duplicated expressions in ORDER BY sql/table.cc: Indentation fixes --- mysql-test/r/group_by.result | 22 ++++++++++------- mysql-test/r/group_by_innodb.result | 7 ++++-- mysql-test/r/innodb_ext_key.result | 48 +++++++++++++++++++++++++++++++++++++ mysql-test/r/order_by.result | 6 +++++ mysql-test/t/group_by.test | 14 ++++++----- mysql-test/t/group_by_innodb.test | 6 +++++ mysql-test/t/innodb_ext_key.test | 28 ++++++++++++++++++++++ mysql-test/t/order_by.test | 3 +++ sql/sql_select.cc | 35 +++++++++++++++++++-------- sql/table.cc | 17 ++++++------- 10 files changed, 149 insertions(+), 37 deletions(-) diff --git a/mysql-test/r/group_by.result b/mysql-test/r/group_by.result index 9bb22eb8169..553607dc03f 100644 --- a/mysql-test/r/group_by.result +++ b/mysql-test/r/group_by.result @@ -1957,12 +1957,12 @@ UNIQUE INDEX idx (col1)); INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10), (11),(12),(13),(14),(15),(16),(17),(18),(19),(20); EXPLAIN SELECT col1 AS field1, col1 AS field2 -FROM t1 GROUP BY field1, field2;; +FROM t1 GROUP BY field1, field2+0;; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 index NULL idx 5 NULL 20 Using index; Using temporary; Using filesort FLUSH STATUS; SELECT col1 AS field1, col1 AS field2 -FROM t1 GROUP BY field1, field2;; +FROM t1 GROUP BY field1, field2+0;; field1 field2 1 1 2 2 @@ -2054,8 +2054,12 @@ field1 field2 explain select col1 f1, col1 f2 from t1 order by f2, f1; id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 index NULL idx 5 NULL 20 Using index +explain +select col1 f1, col1 f2 from t1 order by f2, f1+0; +id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 index NULL idx 5 NULL 20 Using index; Using filesort -select col1 f1, col1 f2 from t1 order by f2, f1; +select col1 f1, col1 f2 from t1 order by f2, f1+0; f1 f2 1 1 2 2 @@ -2080,7 +2084,7 @@ f1 f2 explain select col1 f1, col1 f2 from t1 group by f2 order by f2, f1; id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 range NULL idx 5 NULL 7 Using index for group-by; Using temporary; Using filesort +1 SIMPLE t1 range NULL idx 5 NULL 7 Using index for group-by select col1 f1, col1 f2 from t1 group by f2 order by f2, f1; f1 f2 1 1 @@ -2106,7 +2110,7 @@ f1 f2 explain select col1 f1, col1 f2 from t1 group by f1, f2 order by f2, f1; id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL idx 5 NULL 20 Using index; Using temporary; Using filesort +1 SIMPLE t1 index NULL idx 5 NULL 20 Using index select col1 f1, col1 f2 from t1 group by f1, f2 order by f2, f1; f1 f2 1 1 @@ -2137,10 +2141,10 @@ INSERT INTO t2(col1, col2) VALUES (1,20),(2,19),(3,18),(4,17),(5,16),(6,15),(7,14),(8,13),(9,12),(10,11), (11,10),(12,9),(13,8),(14,7),(15,6),(16,5),(17,4),(18,3),(19,2),(20,1); explain -select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t2 index NULL idx 10 NULL 20 Using index; Using temporary; Using filesort -select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0; f1 f2 f3 1 20 1 2 19 2 @@ -2163,10 +2167,10 @@ f1 f2 f3 19 2 19 20 1 20 explain -select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t2 index NULL idx 10 NULL 20 Using index; Using filesort -select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0; f1 f2 f3 1 20 1 2 19 2 diff --git a/mysql-test/r/group_by_innodb.result b/mysql-test/r/group_by_innodb.result index d165834cbe3..86d431b00d2 100644 --- a/mysql-test/r/group_by_innodb.result +++ b/mysql-test/r/group_by_innodb.result @@ -1,3 +1,4 @@ +set @save_ext_key_optimizer_switch=@@optimizer_switch; # # MDEV-3992 Server crash or valgrind errors in test_if_skip_sort_order/test_if_cheaper_ordering # on GROUP BY with indexes on InnoDB table @@ -7,13 +8,14 @@ pk INT PRIMARY KEY, a VARCHAR(1) NOT NULL, KEY (pk) ) ENGINE=InnoDB; +set optimizer_switch='extended_keys=on'; INSERT INTO t1 VALUES (1,'a'),(2,'b'); EXPLAIN SELECT COUNT(*), pk field1, pk AS field2 FROM t1 WHERE a = 'r' OR pk = 183 GROUP BY field1, field2; id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index PRIMARY,pk pk 4 NULL 2 Using where +1 SIMPLE t1 index PRIMARY,pk PRIMARY 4 NULL 2 Using where SELECT COUNT(*), pk field1, pk AS field2 FROM t1 WHERE a = 'r' OR pk = 183 GROUP BY field1, field2; @@ -22,9 +24,10 @@ EXPLAIN SELECT COUNT(*), pk field1 FROM t1 WHERE a = 'r' OR pk = 183 GROUP BY field1, field1; id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index PRIMARY,pk pk 4 NULL 2 Using where +1 SIMPLE t1 index PRIMARY,pk PRIMARY 4 NULL 2 Using where SELECT COUNT(*), pk field1 FROM t1 WHERE a = 'r' OR pk = 183 GROUP BY field1, field1; COUNT(*) field1 drop table t1; End of 5.5 tests +set optimizer_switch=@save_ext_key_optimizer_switch; diff --git a/mysql-test/r/innodb_ext_key.result b/mysql-test/r/innodb_ext_key.result index 4a6b902e869..df681f21f3b 100644 --- a/mysql-test/r/innodb_ext_key.result +++ b/mysql-test/r/innodb_ext_key.result @@ -987,6 +987,54 @@ id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t2 ref page_timestamp page_timestamp 4 const 10 Using where 1 SIMPLE t3 eq_ref PRIMARY PRIMARY 4 test.t2.rev_text_id 1 DROP TABLE t1,t2,t3; +# +# MDEV-5424 SELECT using ORDER BY DESC and LIMIT produces unexpected +# results (InnoDB/XtraDB) +# +create table t1 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = myisam default character set utf8; +create table t2 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = innodb default character set utf8; +insert into t1 (b) values (null), (null), (null); +insert into t2 (b) values (null), (null), (null); +set optimizer_switch='extended_keys=on'; +explain select a from t1 where b is null order by a desc limit 2; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ref b b 9 const 2 Using where; Using filesort +select a from t1 where b is null order by a desc limit 2; +a +3 +2 +explain select a from t2 where b is null order by a desc limit 2; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t2 range b b 9 NULL 3 Using where; Using filesort +select a from t2 where b is null order by a desc limit 2; +a +3 +2 +set optimizer_switch='extended_keys=off'; +explain select a from t2 where b is null order by a desc limit 2; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t2 range b b 9 NULL 3 Using where; Using filesort +select a from t2 where b is null order by a desc limit 2; +a +3 +2 +explain select a from t2 where b is null order by a desc; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t2 index b PRIMARY 8 NULL 3 Using where +select a from t2 where b is null order by a desc; +a +3 +2 +1 +explain select a from t2 where b is null order by a desc,a,a; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t2 index b PRIMARY 8 NULL 3 Using where +select a from t2 where b is null order by a desc,a,a; +a +3 +2 +1 +drop table t1, t2; set optimizer_switch=@save_optimizer_switch; set optimizer_switch=@save_ext_key_optimizer_switch; SET SESSION STORAGE_ENGINE=DEFAULT; diff --git a/mysql-test/r/order_by.result b/mysql-test/r/order_by.result index e37d64d6d44..0487f9222e0 100644 --- a/mysql-test/r/order_by.result +++ b/mysql-test/r/order_by.result @@ -357,6 +357,12 @@ id select_type table type possible_keys key key_len ref rows Extra explain select * from t1 where a = 1 order by b desc; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 ref a a 4 const 5 Using where; Using index +explain select * from t1 where a = 2 and b > 0 order by a desc,b desc,b,a; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 range a a 9 NULL 5 Using where; Using index +explain select * from t1 where a = 2 and b < 2 order by a desc,a,b desc,a,b; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 range a a 9 NULL 2 Using where; Using index select * from t1 where a = 1 order by b desc; a b c 1 3 b diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 1ef514d591d..e4120f284de 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -1336,7 +1336,7 @@ INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10), (11),(12),(13),(14),(15),(16),(17),(18),(19),(20); let $query0=SELECT col1 AS field1, col1 AS field2 - FROM t1 GROUP BY field1, field2; + FROM t1 GROUP BY field1, field2+0; # Needs to be range to exercise bug --eval EXPLAIN $query0; @@ -1366,7 +1366,9 @@ LIMIT 3; explain select col1 f1, col1 f2 from t1 order by f2, f1; -select col1 f1, col1 f2 from t1 order by f2, f1; +explain +select col1 f1, col1 f2 from t1 order by f2, f1+0; +select col1 f1, col1 f2 from t1 order by f2, f1+0; explain select col1 f1, col1 f2 from t1 group by f2 order by f2, f1; @@ -1386,12 +1388,12 @@ INSERT INTO t2(col1, col2) VALUES (11,10),(12,9),(13,8),(14,7),(15,6),(16,5),(17,4),(18,3),(19,2),(20,1); explain -select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3; -select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0; +select col1 f1, col2 f2, col1 f3 from t2 group by f1, f2, f3+0; explain -select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3; -select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3; +select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0; +select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0; DROP VIEW v1; DROP TABLE t1, t2; diff --git a/mysql-test/t/group_by_innodb.test b/mysql-test/t/group_by_innodb.test index 0d5e5e9ae30..9733610dde1 100644 --- a/mysql-test/t/group_by_innodb.test +++ b/mysql-test/t/group_by_innodb.test @@ -4,6 +4,8 @@ --source include/have_innodb.inc +set @save_ext_key_optimizer_switch=@@optimizer_switch; + --echo # --echo # MDEV-3992 Server crash or valgrind errors in test_if_skip_sort_order/test_if_cheaper_ordering --echo # on GROUP BY with indexes on InnoDB table @@ -15,6 +17,8 @@ CREATE TABLE t1 ( KEY (pk) ) ENGINE=InnoDB; +set optimizer_switch='extended_keys=on'; + INSERT INTO t1 VALUES (1,'a'),(2,'b'); EXPLAIN @@ -36,3 +40,5 @@ WHERE a = 'r' OR pk = 183 GROUP BY field1, field1; drop table t1; --echo End of 5.5 tests + +set optimizer_switch=@save_ext_key_optimizer_switch; diff --git a/mysql-test/t/innodb_ext_key.test b/mysql-test/t/innodb_ext_key.test index 36414105917..6d1890ac1f9 100644 --- a/mysql-test/t/innodb_ext_key.test +++ b/mysql-test/t/innodb_ext_key.test @@ -662,6 +662,34 @@ ORDER BY rev_timestamp ASC LIMIT 10; DROP TABLE t1,t2,t3; +--echo # +--echo # MDEV-5424 SELECT using ORDER BY DESC and LIMIT produces unexpected +--echo # results (InnoDB/XtraDB) +--echo # + +create table t1 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = myisam default character set utf8; +create table t2 (a bigint not null unique auto_increment, b varchar(10), primary key (a), key (b(2))) engine = innodb default character set utf8; + +insert into t1 (b) values (null), (null), (null); +insert into t2 (b) values (null), (null), (null); + +set optimizer_switch='extended_keys=on'; +explain select a from t1 where b is null order by a desc limit 2; +select a from t1 where b is null order by a desc limit 2; +explain select a from t2 where b is null order by a desc limit 2; +select a from t2 where b is null order by a desc limit 2; +set optimizer_switch='extended_keys=off'; +explain select a from t2 where b is null order by a desc limit 2; +select a from t2 where b is null order by a desc limit 2; + +explain select a from t2 where b is null order by a desc; +select a from t2 where b is null order by a desc; + +explain select a from t2 where b is null order by a desc,a,a; +select a from t2 where b is null order by a desc,a,a; + +drop table t1, t2; + set optimizer_switch=@save_optimizer_switch; set optimizer_switch=@save_ext_key_optimizer_switch; diff --git a/mysql-test/t/order_by.test b/mysql-test/t/order_by.test index 3e20d22d726..35f1a7f744b 100644 --- a/mysql-test/t/order_by.test +++ b/mysql-test/t/order_by.test @@ -261,6 +261,9 @@ desc,b desc; explain select * from t1 where a = 2 and b > 0 order by a desc,b desc; explain select * from t1 where a = 2 and b < 2 order by a desc,b desc; explain select * from t1 where a = 1 order by b desc; +explain select * from t1 where a = 2 and b > 0 order by a desc,b desc,b,a; +explain select * from t1 where a = 2 and b < 2 order by a desc,a,b desc,a,b; + select * from t1 where a = 1 order by b desc; # # Test things when we don't have NULL keys diff --git a/sql/sql_select.cc b/sql/sql_select.cc index a224bd77bce..08da695a12f 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -11038,6 +11038,8 @@ static void update_depend_map_for_order(JOIN *join, ORDER *order) Remove all constants and check if ORDER only contains simple expressions. + We also remove all duplicate expressions, keeping only the first one. + simple_order is set to 1 if sort_order only uses fields from head table and the head table is not a LEFT JOIN table. @@ -11045,9 +11047,10 @@ static void update_depend_map_for_order(JOIN *join, ORDER *order) @param first_order List of SORT or GROUP order @param cond WHERE statement @param change_list Set to 1 if we should remove things from list. - If this is not set, then only simple_order is - calculated. - @param simple_order Set to 1 if we are only using simple expressions + If this is not set, then only simple_order is + calculated. + @param simple_order Set to 1 if we are only using simple + expressions. @return Returns new sort order @@ -11060,7 +11063,7 @@ remove_const(JOIN *join,ORDER *first_order, COND *cond, if (join->table_count == join->const_tables) return change_list ? 0 : first_order; // No need to sort - ORDER *order,**prev_ptr; + ORDER *order,**prev_ptr, *tmp_order; table_map first_table; table_map not_const_tables= ~join->const_table_map; table_map ref; @@ -11074,7 +11077,6 @@ remove_const(JOIN *join,ORDER *first_order, COND *cond, first_is_base_table= TRUE; } - /* Cleanup to avoid interference of calls of this function for ORDER BY and GROUP BY @@ -11143,6 +11145,17 @@ remove_const(JOIN *join,ORDER *first_order, COND *cond, } } } + /* Remove ORDER BY entries that we have seen before */ + for (tmp_order= first_order; + tmp_order != order; + tmp_order= tmp_order->next) + { + if (tmp_order->item[0]->eq(order->item[0],1)) + break; + } + if (tmp_order != order) + continue; // Duplicate order by. Remove + if (change_list) *prev_ptr= order; // use this entry prev_ptr= &order->next; @@ -18829,7 +18842,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx, key as a suffix to the secondary keys. If it has continue to check the primary key as a suffix. */ - if (!on_pk_suffix && + if (!on_pk_suffix && (table->key_info[idx].ext_key_part_map & 1) && (table->file->ha_table_flags() & HA_PRIMARY_KEY_IN_READ_INDEX) && table->s->primary_key != MAX_KEY && table->s->primary_key != idx) @@ -18853,20 +18866,22 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx, (((key_part_map) 1) << pk_part_idx))) break; } + /* Adjust const_key_parts */ const_key_parts&= (((key_part_map) 1) << pk_part_idx) -1; - for (; const_key_parts & 1 ; const_key_parts>>= 1) - key_part++; + for (; const_key_parts & 1 ; const_key_parts>>= 1) + key_part++; /* Test if the primary key parts were all const (i.e. there's one row). The sorting doesn't matter. */ - if (key_part == start+table->key_info[table->s->primary_key].key_parts && + if (key_part == + start+table->key_info[table->s->primary_key].key_parts && reverse == 0) { key_parts= 0; - reverse= 1; + reverse= 1; // Key is ok to use goto ok; } } diff --git a/sql/table.cc b/sql/table.cc index c949112e7ee..b0be0791cd6 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -734,14 +734,10 @@ err_not_open: } -static bool create_key_infos(uchar *strpos, uint keys, KEY *keyinfo, uint new_frm_ver, +static bool create_key_infos(uchar *strpos, uint keys, KEY *keyinfo, + uint new_frm_ver, uint &ext_key_parts, TABLE_SHARE *share, uint len, - KEY *first_keyinfo, char* &keynames - - - - - ) + KEY *first_keyinfo, char* &keynames) { uint i, j, n_length; KEY_PART_INFO *key_part= NULL; @@ -848,7 +844,6 @@ static bool create_key_infos(uchar *strpos, uint keys, KEY *keyinfo, uint new_fr keyinfo->ext_key_part_map= 0; if (share->use_ext_keys && i) { - keyinfo->ext_key_part_map= 0; for (j= 0; j < first_key_parts && keyinfo->ext_key_parts < MAX_REF_PARTS; j++) @@ -1148,7 +1143,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, share->set_use_ext_keys_flag(share->db_type()->flags & HTON_EXTENDED_KEYS); - if (create_key_infos(disk_buff + 6, keys, keyinfo, new_frm_ver, ext_key_parts, + if (create_key_infos(disk_buff + 6, keys, keyinfo, new_frm_ver, + ext_key_parts, share, len, &first_keyinfo, keynames)) goto err; @@ -1242,7 +1238,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, } else { - if (create_key_infos(disk_buff + 6, keys, keyinfo, new_frm_ver, ext_key_parts, + if (create_key_infos(disk_buff + 6, keys, keyinfo, new_frm_ver, + ext_key_parts, share, len, &first_keyinfo, keynames)) goto err; } -- cgit v1.2.1 From c4e76b20a4da6f060b77b22b12c67b4b1f2b512c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 3 Jan 2014 12:20:53 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add another test case. This one for killing the SQL driver thread while it is waiting for room in the list of events queued for a worker thread. Fix bugs found: - Several memory leaks in various error cases. - SQL error code was not set (for SHOW SLAVE STATUS etc.) when killed. --- mysql-test/suite/rpl/r/rpl_parallel.result | 40 +++++++++++++++++ mysql-test/suite/rpl/t/rpl_parallel.test | 69 ++++++++++++++++++++++++++++++ sql/rpl_parallel.cc | 17 ++++++++ 3 files changed, 126 insertions(+) diff --git a/mysql-test/suite/rpl/r/rpl_parallel.result b/mysql-test/suite/rpl/r/rpl_parallel.result index ef88ecfef44..7a9fd69b2fb 100644 --- a/mysql-test/suite/rpl/r/rpl_parallel.result +++ b/mysql-test/suite/rpl/r/rpl_parallel.result @@ -630,6 +630,46 @@ SET GLOBAL binlog_format=@old_format; SET GLOBAL slave_parallel_threads=0; SET GLOBAL slave_parallel_threads=10; include/start_slave.inc +*** 5. Test killing thread that is waiting for queue of max length to shorten *** +SET @old_max_queued= @@GLOBAL.slave_parallel_max_queued; +SET GLOBAL slave_parallel_max_queued=9000; +SET binlog_format=statement; +INSERT INTO t3 VALUES (70, foo(0, +'ha_write_row_end SIGNAL query_waiting WAIT_FOR query_cont', '')); +SET debug_sync='now WAIT_FOR query_waiting'; +SET @old_dbug= @@GLOBAL.debug_dbug; +SET GLOBAL debug_dbug="+d,rpl_parallel_wait_queue_max"; +INSERT INTO t3 VALUES (72, 0); +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; +a b +70 0 +71 10000 +72 0 +SET debug_sync='now WAIT_FOR wait_queue_ready'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR wait_queue_killed'; +SET debug_sync='now SIGNAL query_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1927,1963] +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; +a b +70 0 +71 10000 +SET GLOBAL debug_dbug=@old_dbug; +SET GLOBAL slave_parallel_max_queued= @old_max_queued; +INSERT INTO t3 VALUES (73,0); +include/start_slave.inc +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; +a b +70 0 +71 10000 +72 0 +73 0 +include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +include/start_slave.inc include/stop_slave.inc SET GLOBAL slave_parallel_threads=@old_parallel_threads; include/start_slave.inc diff --git a/mysql-test/suite/rpl/t/rpl_parallel.test b/mysql-test/suite/rpl/t/rpl_parallel.test index 94d3b53974a..a0232ac71e0 100644 --- a/mysql-test/suite/rpl/t/rpl_parallel.test +++ b/mysql-test/suite/rpl/t/rpl_parallel.test @@ -940,6 +940,75 @@ CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) --delimiter ; SET sql_log_bin=1; +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL binlog_format=@old_format; +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +--source include/start_slave.inc + + +--echo *** 5. Test killing thread that is waiting for queue of max length to shorten *** + +--let $wait_condition= SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE '%Slave has read all relay log%' +--source include/wait_condition.inc +--let $thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE '%Slave has read all relay log%'` +SET @old_max_queued= @@GLOBAL.slave_parallel_max_queued; +SET GLOBAL slave_parallel_max_queued=9000; + +--connection server_1 +--let bigstring= `SELECT REPEAT('x', 10000)` +SET binlog_format=statement; +# Create an event that will wait to be signalled. +INSERT INTO t3 VALUES (70, foo(0, + 'ha_write_row_end SIGNAL query_waiting WAIT_FOR query_cont', '')); +--disable_query_log +# Create an event that will fill up the queue. +eval INSERT INTO t3 VALUES (71, LENGTH('$bigstring')); +--enable_query_log + +--connection server_2 +SET debug_sync='now WAIT_FOR query_waiting'; +# Inject that the SQL driver thread will signal `wait_queue_ready' to debug_sync +# as it goes to wait for the event queue to become smaller than the value of +# @@slave_parallel_max_queued. +SET @old_dbug= @@GLOBAL.debug_dbug; +SET GLOBAL debug_dbug="+d,rpl_parallel_wait_queue_max"; + +--connection server_1 +# This event will have to wait for the queue to become shorter before it can +# be queued. We will test that things work when we kill the SQL driver thread +# during this wait. +INSERT INTO t3 VALUES (72, 0); +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; + +--connection server_2 +SET debug_sync='now WAIT_FOR wait_queue_ready'; + +--replace_result $thd_id THD_ID +eval KILL $thd_id; + +SET debug_sync='now WAIT_FOR wait_queue_killed'; +SET debug_sync='now SIGNAL query_cont'; + +--let $slave_sql_errno= 1317,1927,1963 +--source include/wait_for_slave_sql_error.inc +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; + +SET GLOBAL debug_dbug=@old_dbug; +SET GLOBAL slave_parallel_max_queued= @old_max_queued; + +--connection server_1 +INSERT INTO t3 VALUES (73,0); +--save_master_pos + +--connection server_2 +--source include/start_slave.inc +--sync_with_master +SELECT * FROM t3 WHERE a >= 70 ORDER BY a; + --connection server_2 --source include/stop_slave.inc diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index 3cdd1f5ec8d..af44d79038c 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -801,6 +801,7 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, sql_thread_stopping= true; if (sql_thread_stopping) { + delete ev; /* QQ: Need a better comment why we return false here */ return false; } @@ -809,6 +810,7 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, MYF(0)))) { my_error(ER_OUT_OF_RESOURCES, MYF(0)); + delete ev; return true; } qev->ev= ev; @@ -831,6 +833,8 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, { my_error(ER_OUT_OF_RESOURCES, MYF(MY_WME)); delete rgi; + my_free(qev); + delete ev; return true; } rgi->is_parallel_exec = true; @@ -903,6 +907,14 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, mysql_mutex_unlock(&cur_thread->LOCK_rpl_thread); my_error(ER_CONNECTION_KILLED, MYF(0)); delete rgi; + my_free(qev); + delete ev; + DBUG_EXECUTE_IF("rpl_parallel_wait_queue_max", + { + debug_sync_set_action(rli->sql_driver_thd, + STRING_WITH_LEN("now SIGNAL wait_queue_killed")); + };); + slave_output_error_info(rli, rli->sql_driver_thd); return true; } else @@ -918,6 +930,11 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, (&cur_thread->COND_rpl_thread, &cur_thread->LOCK_rpl_thread, "Waiting for room in worker thread event queue"); did_enter_cond= true; + DBUG_EXECUTE_IF("rpl_parallel_wait_queue_max", + { + debug_sync_set_action(rli->sql_driver_thd, + STRING_WITH_LEN("now SIGNAL wait_queue_ready")); + };); } mysql_cond_wait(&cur_thread->COND_rpl_thread, &cur_thread->LOCK_rpl_thread); -- cgit v1.2.1 From 4e9a2d5469cd3baebcd3cce33db9b39d6ec9b67c Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 5 Jan 2014 15:21:58 +0200 Subject: Don't writing entries to slave log about binlog_checksum not existing on master if log_warnings is <=1. This solves the issue of getting a lot of unnecessary errors logged on the slave when connecting to MySQL or an old MariaDB version. sql/slave.cc: Don't write that binlog_checksum doesn't exists on the master if log_warnings <= 1 --- sql/slave.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sql/slave.cc b/sql/slave.cc index afaca619a69..3c17f102a7f 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1670,10 +1670,14 @@ when it try to get the value of TIME_ZONE global variable from master."; if (mysql_errno(mysql) == ER_UNKNOWN_SYSTEM_VARIABLE) { - // this is tolerable as OM -> NS is supported - mi->report(WARNING_LEVEL, mysql_errno(mysql), - "Notifying master by %s failed with " - "error: %s", query, mysql_error(mysql)); + /* Ignore this expected error if not a high error level */ + if (global_system_variables.log_warnings > 1) + { + // this is tolerable as OM -> NS is supported + mi->report(WARNING_LEVEL, mysql_errno(mysql), + "Notifying master by %s failed with " + "error: %s", query, mysql_error(mysql)); + } } else { -- cgit v1.2.1 From cee925185186b02ec89bf988918fe958053da139 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 Jan 2014 16:05:52 +0100 Subject: MDEV-5363: Make parallel replication waits killable Add another test case. This one for killing a query that is waiting for a prior commit, when --log-slave-updates=0 (in this case the wait happens in different code from --log-slave-updates=1). --- .../rpl/r/rpl_parallel_no_log_slave_updates.result | 122 +++++++++++++ .../t/rpl_parallel_no_log_slave_updates-slave.opt | 1 + .../rpl/t/rpl_parallel_no_log_slave_updates.test | 199 +++++++++++++++++++++ sql/handler.cc | 10 +- sql/sql_class.cc | 2 + 5 files changed, 332 insertions(+), 2 deletions(-) create mode 100644 mysql-test/suite/rpl/r/rpl_parallel_no_log_slave_updates.result create mode 100644 mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates-slave.opt create mode 100644 mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates.test diff --git a/mysql-test/suite/rpl/r/rpl_parallel_no_log_slave_updates.result b/mysql-test/suite/rpl/r/rpl_parallel_no_log_slave_updates.result new file mode 100644 index 00000000000..067d92a962f --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_parallel_no_log_slave_updates.result @@ -0,0 +1,122 @@ +include/rpl_init.inc [topology=1->2] +*** Test killing transaction waiting in commit for previous transaction to commit, when not using 2-phase commit *** +SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads; +include/stop_slave.inc +SET GLOBAL slave_parallel_threads=10; +CHANGE MASTER TO master_use_gtid=slave_pos; +include/start_slave.inc +ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; +SET sql_log_bin=0; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +CREATE TABLE t3 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB; +SET sql_log_bin=0; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (31, foo(31, +'ha_commit_one_phase WAIT_FOR t2_waiting', +'commit_one_phase_2 SIGNAL t1_ready WAIT_FOR t1_cont')); +SET debug_sync='now WAIT_FOR master_queued1'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +INSERT INTO t3 VALUES (32, foo(32, +'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', +'')); +INSERT INTO t3 VALUES (33, foo(33, +'wait_for_prior_commit_waiting SIGNAL t2_waiting', +'wait_for_prior_commit_killed SIGNAL t2_killed')); +COMMIT; +SET debug_sync='now WAIT_FOR master_queued2'; +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +INSERT INTO t3 VALUES (34, foo(34, +'', +'')); +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +32 32 +33 33 +34 34 +SET sql_log_bin=0; +CALL mtr.add_suppression("Query execution was interrupted"); +CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +CALL mtr.add_suppression("Slave: Connection was killed"); +SET sql_log_bin=1; +SET debug_sync='now WAIT_FOR t2_query'; +SET debug_sync='now SIGNAL t2_cont'; +SET debug_sync='now WAIT_FOR t1_ready'; +KILL THD_ID; +SET debug_sync='now WAIT_FOR t2_killed'; +SET debug_sync='now SIGNAL t1_cont'; +include/wait_for_slave_sql_error.inc [errno=1317,1927,1963] +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +RETURN x; +END +|| +SET sql_log_bin=1; +INSERT INTO t3 VALUES (39,0); +include/start_slave.inc +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +a b +31 31 +32 32 +33 33 +34 34 +39 0 +SET sql_log_bin=0; +DROP FUNCTION foo; +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) +RETURNS INT DETERMINISTIC +BEGIN +IF d1 != '' THEN +SET debug_sync = d1; +END IF; +IF d2 != '' THEN +SET debug_sync = d2; +END IF; +RETURN x; +END +|| +SET sql_log_bin=1; +include/stop_slave.inc +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +include/start_slave.inc +include/stop_slave.inc +SET GLOBAL slave_parallel_threads=@old_parallel_threads; +include/start_slave.inc +DROP function foo; +DROP TABLE t3; +include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates-slave.opt b/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates-slave.opt new file mode 100644 index 00000000000..acd68493e0a --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates-slave.opt @@ -0,0 +1 @@ +--log-slave-updates=0 diff --git a/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates.test b/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates.test new file mode 100644 index 00000000000..98f919e4727 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_parallel_no_log_slave_updates.test @@ -0,0 +1,199 @@ +--source include/have_innodb.inc +--source include/have_debug.inc +--source include/have_debug_sync.inc +--source include/have_binlog_format_statement.inc +--let $rpl_topology=1->2 +--source include/rpl_init.inc + +--echo *** Test killing transaction waiting in commit for previous transaction to commit, when not using 2-phase commit *** + +--connection server_2 +SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads; +--source include/stop_slave.inc +SET GLOBAL slave_parallel_threads=10; +CHANGE MASTER TO master_use_gtid=slave_pos; +--source include/start_slave.inc + +--connection server_1 +ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB; +# Use a stored function to inject a debug_sync into the appropriate THD. +# The function does nothing on the master, and on the slave it injects the +# desired debug_sync action(s). +SET sql_log_bin=0; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; +CREATE TABLE t3 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB; +--save_master_pos + +--connection server_2 +SET sql_log_bin=0; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; +--sync_with_master + + +# Set up three transactions on the master that will be group-committed +# together so they can be replicated in parallel on the slave. +--connect (con_temp3,127.0.0.1,root,,test,$SERVER_MYPORT_1,) +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued1 WAIT_FOR master_cont1'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (31, foo(31, + 'ha_commit_one_phase WAIT_FOR t2_waiting', + 'commit_one_phase_2 SIGNAL t1_ready WAIT_FOR t1_cont')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued1'; + +--connect (con_temp4,127.0.0.1,root,,test,$SERVER_MYPORT_1,) +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued2'; +SET binlog_format=statement; +BEGIN; +# This insert is just so we can get T2 to wait while a query is running that we +# can see in SHOW PROCESSLIST so we can get its thread_id to kill later. +INSERT INTO t3 VALUES (32, foo(32, + 'ha_write_row_end SIGNAL t2_query WAIT_FOR t2_cont', + '')); +# This insert sets up debug_sync points so that T2 will tell when it is at its +# wait point where we want to kill it - and when it has been killed. +INSERT INTO t3 VALUES (33, foo(33, + 'wait_for_prior_commit_waiting SIGNAL t2_waiting', + 'wait_for_prior_commit_killed SIGNAL t2_killed')); +send COMMIT; + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued2'; + +--connect (con_temp5,127.0.0.1,root,,test,$SERVER_MYPORT_1,) +SET debug_sync='commit_after_release_LOCK_prepare_ordered SIGNAL master_queued3'; +SET binlog_format=statement; +send INSERT INTO t3 VALUES (34, foo(34, + '', + '')); + +--connection server_1 +SET debug_sync='now WAIT_FOR master_queued3'; +SET debug_sync='now SIGNAL master_cont1'; + +--connection con_temp3 +REAP; +--connection con_temp4 +REAP; +--connection con_temp5 +REAP; + +--connection server_1 +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; + +--connection server_2 +SET sql_log_bin=0; +CALL mtr.add_suppression("Query execution was interrupted"); +CALL mtr.add_suppression("Commit failed due to failure of an earlier commit on which this one depends"); +CALL mtr.add_suppression("Slave: Connection was killed"); +SET sql_log_bin=1; +# Wait until T2 is inside executing its insert of 32, then find it in SHOW +# PROCESSLIST to know its thread id for KILL later. +SET debug_sync='now WAIT_FOR t2_query'; +--let $thd_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO LIKE '%foo(32%' AND INFO NOT LIKE '%LIKE%'` +SET debug_sync='now SIGNAL t2_cont'; + +# Wait until T2 has entered its wait for T1 to commit, and T1 has +# progressed into its commit phase. +SET debug_sync='now WAIT_FOR t1_ready'; + +# Now kill the transaction T2. +--replace_result $thd_id THD_ID +eval KILL $thd_id; + +# Wait until T2 has reacted on the kill. +SET debug_sync='now WAIT_FOR t2_killed'; + +# Now we can allow T1 to proceed. +SET debug_sync='now SIGNAL t1_cont'; + +--let $slave_sql_errno= 1317,1927,1963 +--source include/wait_for_slave_sql_error.inc +STOP SLAVE IO_THREAD; +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; + +# Now we have to disable the debug_sync statements, so they do not trigger +# when the events are retried. +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + +--connection server_1 +INSERT INTO t3 VALUES (39,0); +--save_master_pos + +--connection server_2 +--source include/start_slave.inc +--sync_with_master +SELECT * FROM t3 WHERE a >= 30 ORDER BY a; +# Restore the foo() function. +SET sql_log_bin=0; +DROP FUNCTION foo; +--delimiter || +CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500)) + RETURNS INT DETERMINISTIC + BEGIN + IF d1 != '' THEN + SET debug_sync = d1; + END IF; + IF d2 != '' THEN + SET debug_sync = d2; + END IF; + RETURN x; + END +|| +--delimiter ; +SET sql_log_bin=1; + + +--connection server_2 +# Respawn all worker threads to clear any left-over debug_sync or other stuff. +--source include/stop_slave.inc +SET GLOBAL slave_parallel_threads=0; +SET GLOBAL slave_parallel_threads=10; +--source include/start_slave.inc + + +--connection server_2 +--source include/stop_slave.inc +SET GLOBAL slave_parallel_threads=@old_parallel_threads; +--source include/start_slave.inc + +--connection server_1 +DROP function foo; +DROP TABLE t3; + +--source include/rpl_end.inc diff --git a/sql/handler.cc b/sql/handler.cc index 88431d4db32..1c5d643ed96 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -1471,8 +1471,12 @@ int ha_commit_one_phase(THD *thd, bool all) bool is_real_trans=all || thd->transaction.all.ha_list == 0; int res; DBUG_ENTER("ha_commit_one_phase"); - if (is_real_trans && (res= thd->wait_for_prior_commit())) - DBUG_RETURN(res); + if (is_real_trans) + { + DEBUG_SYNC(thd, "ha_commit_one_phase"); + if ((res= thd->wait_for_prior_commit())) + DBUG_RETURN(res); + } res= commit_one_phase_2(thd, all, trans, is_real_trans); DBUG_RETURN(res); } @@ -1484,6 +1488,8 @@ commit_one_phase_2(THD *thd, bool all, THD_TRANS *trans, bool is_real_trans) int error= 0; Ha_trx_info *ha_info= trans->ha_list, *ha_info_next; DBUG_ENTER("commit_one_phase_2"); + if (is_real_trans) + DEBUG_SYNC(thd, "commit_one_phase_2"); if (ha_info) { for (; ha_info; ha_info= ha_info_next) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 11c03191a49..8abdd53469f 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -5789,6 +5789,7 @@ wait_for_commit::wait_for_prior_commit2(THD *thd) wait_for_commit *loc_waitee; mysql_mutex_lock(&LOCK_wait_commit); + DEBUG_SYNC(thd, "wait_for_prior_commit_waiting"); old_msg= thd->enter_cond(&COND_wait_commit, &LOCK_wait_commit, "Waiting for prior transaction to commit"); while (waiting_for_commit && !thd->check_killed()) @@ -5821,6 +5822,7 @@ wait_for_commit::wait_for_prior_commit2(THD *thd) remove_from_list(&loc_waitee->subsequent_commits_list); mysql_mutex_unlock(&loc_waitee->LOCK_wait_commit); + DEBUG_SYNC(thd, "wait_for_prior_commit_killed"); wakeup_error= thd->killed_errno(); if (!wakeup_error) wakeup_error= ER_QUERY_INTERRUPTED; -- cgit v1.2.1 From 3aa370bb693ba734131fc2d581da538b9d2a2aa7 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Jan 2014 21:30:42 +0200 Subject: MDEV-5515: 2nd execution of a prepared statement returns wrong results update_used_tables() should be called after handling derived tables in any case. --- mysql-test/r/view.result | 40 ++++++++++++++++++++++++++++++++++++++++ mysql-test/t/view.test | 29 +++++++++++++++++++++++++++++ sql/sql_select.cc | 3 ++- 3 files changed, 71 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index 436b81a20a2..cec6adafdce 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -4750,6 +4750,46 @@ a r1 = r2 r2 = r3 2 1 1 drop view v1; drop table t1,t2; +# +# MDEV-5515: 2nd execution of a prepared statement returns wrong results +# +CREATE TABLE t1 (i1 INT, j1 INT NOT NULL, PRIMARY KEY (i1)); +INSERT INTO t1 VALUES (30,300),(40,400); +CREATE TABLE t2 (i2 INT); +INSERT INTO t2 VALUES (50),(60); +CREATE TABLE t3 (c3 VARCHAR(20), i3 INT); +INSERT INTO t3 VALUES ('a',10),('b',2); +CREATE TABLE t4 (i4 INT); +INSERT INTO t4 VALUES (1),(2); +DROP VIEW IF EXISTS v1; +Warnings: +Note 1051 Unknown table 'test.v1' +CREATE VIEW v1 AS select coalesce(j1,i3) AS v1_field1 from t2 join t3 left join t1 on ( i1 = i2 ); +CREATE VIEW v2 AS select v1_field1 from t4 join v1; +prepare my_stmt from "select v1_field1 from v2"; +execute my_stmt; +v1_field1 +10 +10 +10 +10 +2 +2 +2 +2 +execute my_stmt; +v1_field1 +10 +10 +10 +10 +2 +2 +2 +2 +deallocate prepare my_stmt; +DROP VIEW v1,v2; +DROP TABLE t1,t2,t3,t4; # ----------------------------------------------------------------- # -- End of 5.3 tests. # ----------------------------------------------------------------- diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index 319f93664e7..d3a7e098ad8 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -4691,6 +4691,35 @@ select a, r1 = r2, r2 = r3 from t2; drop view v1; drop table t1,t2; +--echo # +--echo # MDEV-5515: 2nd execution of a prepared statement returns wrong results +--echo # +CREATE TABLE t1 (i1 INT, j1 INT NOT NULL, PRIMARY KEY (i1)); + +INSERT INTO t1 VALUES (30,300),(40,400); + +CREATE TABLE t2 (i2 INT); +INSERT INTO t2 VALUES (50),(60); + +CREATE TABLE t3 (c3 VARCHAR(20), i3 INT); +INSERT INTO t3 VALUES ('a',10),('b',2); + +CREATE TABLE t4 (i4 INT); +INSERT INTO t4 VALUES (1),(2); + +DROP VIEW IF EXISTS v1; +CREATE VIEW v1 AS select coalesce(j1,i3) AS v1_field1 from t2 join t3 left join t1 on ( i1 = i2 ); + +CREATE VIEW v2 AS select v1_field1 from t4 join v1; + +prepare my_stmt from "select v1_field1 from v2"; +execute my_stmt; +execute my_stmt; +deallocate prepare my_stmt; + +DROP VIEW v1,v2; +DROP TABLE t1,t2,t3,t4; + --echo # ----------------------------------------------------------------- --echo # -- End of 5.3 tests. --echo # ----------------------------------------------------------------- diff --git a/sql/sql_select.cc b/sql/sql_select.cc index d38363f15d1..28c2b86ffdf 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -939,8 +939,9 @@ JOIN::optimize() if (select_lex->handle_derived(thd->lex, DT_MERGE)) DBUG_RETURN(TRUE); table_count= select_lex->leaf_tables.elements; - select_lex->update_used_tables(); } + // Update used tables after all handling derived table procedures + select_lex->update_used_tables(); if (transform_max_min_subquery()) DBUG_RETURN(1); /* purecov: inspected */ -- cgit v1.2.1 From 283af34a6d9ac9cdd378a67ccd22da8bcdc577ec Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 20 Jan 2014 19:09:01 +0100 Subject: MDEV-5543 MyISAM repair unsafe usage of TMD files --- mysql-test/r/repair_symlink-5543.result | 14 ++++++++++++++ mysql-test/t/repair_symlink-5543.test | 26 ++++++++++++++++++++++++++ storage/maria/ha_maria.cc | 3 ++- storage/myisam/ha_myisam.cc | 3 ++- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 mysql-test/r/repair_symlink-5543.result create mode 100644 mysql-test/t/repair_symlink-5543.test diff --git a/mysql-test/r/repair_symlink-5543.result b/mysql-test/r/repair_symlink-5543.result new file mode 100644 index 00000000000..051c9ca3472 --- /dev/null +++ b/mysql-test/r/repair_symlink-5543.result @@ -0,0 +1,14 @@ +create table t1 (a int) engine=myisam data directory='MYSQL_TMP_DIR'; +insert t1 values (1); +repair table t1; +Table Op Msg_type Msg_text +test.t1 repair error Can't create new tempfile: 'MYSQL_TMP_DIR/t1.TMD' +test.t1 repair status Operation failed +drop table t1; +create table t2 (a int) engine=aria data directory='MYSQL_TMP_DIR'; +insert t2 values (1); +repair table t2; +Table Op Msg_type Msg_text +test.t2 repair error Can't create new tempfile: 'MYSQL_TMP_DIR/t2.TMD' +test.t2 repair status Operation failed +drop table t2; diff --git a/mysql-test/t/repair_symlink-5543.test b/mysql-test/t/repair_symlink-5543.test new file mode 100644 index 00000000000..bad65a4175a --- /dev/null +++ b/mysql-test/t/repair_symlink-5543.test @@ -0,0 +1,26 @@ +# +# MDEV-5543 MyISAM repair unsafe usage of TMD files +# +--source include/have_symlink.inc +--source include/not_windows.inc +--source include/have_maria.inc + +--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR +eval create table t1 (a int) engine=myisam data directory='$MYSQL_TMP_DIR'; +insert t1 values (1); +--system ln -s $MYSQL_TMP_DIR/foobar5543 $MYSQL_TMP_DIR/t1.TMD +--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR +repair table t1; +drop table t1; + +--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR +eval create table t2 (a int) engine=aria data directory='$MYSQL_TMP_DIR'; +insert t2 values (1); +--system ln -s $MYSQL_TMP_DIR/foobar5543 $MYSQL_TMP_DIR/t2.TMD +--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR +repair table t2; +drop table t2; + +--list_files $MYSQL_TMP_DIR foobar5543 +--system rm $MYSQL_TMP_DIR/t1.TMD $MYSQL_TMP_DIR/t2.TMD + diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc index ce308887516..f1cb53a43cf 100644 --- a/storage/maria/ha_maria.cc +++ b/storage/maria/ha_maria.cc @@ -1,5 +1,6 @@ /* Copyright (C) 2004-2008 MySQL AB & MySQL Finland AB & TCX DataKonsult AB Copyright (C) 2008-2009 Sun Microsystems, Inc. + Copyright (c) 2009, 2014, SkySQL 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 @@ -1467,7 +1468,7 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize) param->db_name= table->s->db.str; param->table_name= table->alias; - param->tmpfile_createflag= O_RDWR | O_TRUNC; + param->tmpfile_createflag= O_RDWR | O_TRUNC | O_EXCL; param->using_global_keycache= 1; param->thd= thd; param->tmpdir= &mysql_tmpdir_list; diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index 2be71dadf4b..aa56077469b 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -1,5 +1,6 @@ /* Copyright (c) 2000, 2011, Oracle and/or its affiliates + Copyright (c) 2009, 2014, SkySQL 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 @@ -1138,7 +1139,7 @@ int ha_myisam::repair(THD *thd, HA_CHECK ¶m, bool do_optimize) param.db_name= table->s->db.str; param.table_name= table->alias; - param.tmpfile_createflag = O_RDWR | O_TRUNC; + param.tmpfile_createflag= O_RDWR | O_TRUNC | O_EXCL; param.using_global_keycache = 1; param.thd= thd; param.tmpdir= &mysql_tmpdir_list; -- cgit v1.2.1 From c0065d153938eea2a7c2729e7e65d624affc040e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 20 Jan 2014 20:53:39 +0100 Subject: fix a warning --- mysql-test/mysql-test-run.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index e4beae1c10b..60725b4448e 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -478,7 +478,7 @@ sub main { } } - if ( not defined @$completed ) { + if ( not @$completed ) { mtr_error("Test suite aborted"); } -- cgit v1.2.1 From 5e02635eb846214b462ed4ab45b2142a08dc5a91 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Tue, 21 Jan 2014 17:27:36 +0400 Subject: MDEV-4974: memory leak in 5.5.32-MariaDB-1~wheezy-log - When a JOIN has both "optimization tabs" (JOIN_TABs used to read the base tables and do the join operation) and also has "execution tabs" (a JOIN_TAB that is to produce result set that is sent to the client), do not forget to call JOIN_TAB::cleanup() for the execution JOIN_TAB. --- mysql-test/r/order_by.result | 24 ++++++++++++++++++++++++ mysql-test/t/order_by.test | 29 +++++++++++++++++++++++++++++ sql/sql_select.cc | 10 ++++++++++ 3 files changed, 63 insertions(+) diff --git a/mysql-test/r/order_by.result b/mysql-test/r/order_by.result index 0487f9222e0..6ce12651dba 100644 --- a/mysql-test/r/order_by.result +++ b/mysql-test/r/order_by.result @@ -2026,4 +2026,28 @@ id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 index NULL PRIMARY 4 NULL 8 Using index 1 SIMPLE t2 ref i_a i_a 5 test.t1.a 2 Using index DROP TABLE t1,t2; +# +# MDEV-4974 memory leak in 5.5.32-MariaDB-1~wheezy-log +# +set sort_buffer_size=default; +set max_sort_length=default; +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +create table t2 (b int, +col1 varchar(255), +col2 varchar(255) +) character set utf8; +insert into t2 select +A.a+10*B.a, +concat('wow-wow-col1-value-', A.a+10*B.a+100*C.a), +concat('wow-wow-col2-value-', A.a+10*B.a+100*C.a) +from +t1 A, t1 B, t1 C where C.a < 8; +create table t3 as +select distinct A.col1 as XX, B.col1 as YY +from +t2 A, t2 B +where A.b = B.b +order by A.col2, B.col2 limit 10, 1000000; +drop table t1,t2,t3; End of 5.5 tests diff --git a/mysql-test/t/order_by.test b/mysql-test/t/order_by.test index 35f1a7f744b..2ebf8ba5af1 100644 --- a/mysql-test/t/order_by.test +++ b/mysql-test/t/order_by.test @@ -1717,6 +1717,35 @@ SELECT t1.a FROM t1 LEFT JOIN t2 ON t1.a=t2.a ORDER BY t1.a LIMIT 100; DROP TABLE t1,t2; +--echo # +--echo # MDEV-4974 memory leak in 5.5.32-MariaDB-1~wheezy-log +--echo # +set sort_buffer_size=default; +set max_sort_length=default; +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); + +create table t2 (b int, + col1 varchar(255), + col2 varchar(255) + ) character set utf8; + +insert into t2 select + A.a+10*B.a, + concat('wow-wow-col1-value-', A.a+10*B.a+100*C.a), + concat('wow-wow-col2-value-', A.a+10*B.a+100*C.a) +from + t1 A, t1 B, t1 C where C.a < 8; + +create table t3 as +select distinct A.col1 as XX, B.col1 as YY +from + t2 A, t2 B +where A.b = B.b +order by A.col2, B.col2 limit 10, 1000000; + +drop table t1,t2,t3; + --echo End of 5.5 tests diff --git a/sql/sql_select.cc b/sql/sql_select.cc index d4cf72ede42..dfbf5e144e5 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -10819,6 +10819,16 @@ void JOIN::cleanup(bool full) { tab->cleanup(); } + + if (tabs_kind == WALK_OPTIMIZATION_TABS && + first_breadth_first_tab(this, WALK_OPTIMIZATION_TABS) != + first_breadth_first_tab(this, WALK_EXECUTION_TABS)) + { + JOIN_TAB *jt= first_breadth_first_tab(this, WALK_EXECUTION_TABS); + /* We've walked optimization tabs. do execution ones too */ + if (jt) + jt->cleanup(); + } } cleaned= true; -- cgit v1.2.1 From 04bee0af2e8d663fd06e5dc4ecdc2b64b30440ea Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Wed, 22 Jan 2014 15:16:57 +0200 Subject: Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. mysql_upgrade --help now also prints out --default options and variable values. mysql_upgrade now prints permission errors. mysql_upgrade doesn't print some non essential info if --silent is used. Added handler error message about incompatible versions Fixed that mysqlbug and mysql_install_db have the executable flag set. Removed executable flag for some non executable files. Changed in mysql_install_db askmonty.org to mariadb.com. Ensured that all client executables prints --default options the same way. Allow REPAIR ... USE_FRM for old .frm files if the are still compatible. Extended shown error for storage engine messages. client/mysql.cc: print_defaults() should be first (as in all other programs) client/mysql_upgrade.c: --help now also prints out --default options and variable values Print out error if wrong permissions Don't print info if --silent client/mysqladmin.cc: print_defaults() should be first (as in all other programs) client/mysqlbinlog.cc: Added print_defaults() to --help client/mysqlcheck.c: Added empty line in --help client/mysqlimport.c: Added empty line in --help client/mysqlshow.c: Made --help compatible client/mysqlslap.c: Made --help compatible client/mysqltest.cc: Added print_defaults() to --help include/handler_ername.h: Added handler error message include/my_base.h: Added handler error message mysql-test/r/mysql_upgrade.result: Updated results mysql-test/r/repair.result: Added test case for better error messages mysql-test/std_data/host_old.MYD: Added test case for better error messages mysql-test/std_data/host_old.MYI: Added test case for better error messages mysql-test/std_data/host_old.frm: Added test case for better error messages mysql-test/t/repair.test: Added test case for better error messages mysys/my_handler_errors.h: Added handler error message scripts/CMakeLists.txt: Fixed that mysqlbug and mysql_install_db have the executable flag set scripts/mysql_install_db.sh: askmonty.org -> mariadb.com sql/ha_partition.cc: Sometimes table_type() can be called for errors even if partition didn't manage to open any files sql/handler.cc: Write clear text for not handled, but defined error messages. sql/share/errmsg-utf8.txt: Extended shown error for storage engine messages sql/sql_admin.cc: Allow REPAIR ... USE_FRM for old .frm files if the are still compatible storage/myisam/ha_myisam.cc: Use new error message --- client/mysql.cc | 3 ++- client/mysql_upgrade.c | 35 +++++++++++++++++++++++--------- client/mysqladmin.cc | 3 ++- client/mysqlbinlog.cc | 2 ++ client/mysqlcheck.c | 1 + client/mysqldump.c | 3 ++- client/mysqlimport.c | 3 ++- client/mysqlshow.c | 1 + client/mysqlslap.c | 2 ++ client/mysqltest.cc | 3 ++- include/handler_ername.h | 1 + include/my_base.h | 3 ++- mysql-test/r/mysql_upgrade.result | 3 +++ mysql-test/r/repair.result | 34 ++++++++++++++++++++++++++----- mysql-test/std_data/host_old.MYD | 0 mysql-test/std_data/host_old.MYI | Bin 0 -> 1024 bytes mysql-test/std_data/host_old.frm | Bin 0 -> 8958 bytes mysql-test/t/mysql_upgrade.test | 5 +++++ mysql-test/t/repair.test | 20 ++++++++++++++++++ mysys/my_handler_errors.h | 3 ++- scripts/CMakeLists.txt | 8 ++++++++ scripts/mysql_install_db.sh | 8 ++++---- scripts/mysql_secure_installation.pl.in | 0 scripts/mytop.sh | 0 sql/ha_partition.cc | 2 +- sql/handler.cc | 13 +++++++++++- sql/share/errmsg-utf8.txt | 20 +++++++++--------- sql/sql_admin.cc | 5 +++-- storage/myisam/ha_myisam.cc | 2 +- 29 files changed, 142 insertions(+), 41 deletions(-) create mode 100644 mysql-test/std_data/host_old.MYD create mode 100644 mysql-test/std_data/host_old.MYI create mode 100644 mysql-test/std_data/host_old.frm mode change 100755 => 100644 scripts/mysql_secure_installation.pl.in mode change 100755 => 100644 scripts/mytop.sh diff --git a/client/mysql.cc b/client/mysql.cc index a37392c7fc5..c2bfdce2f74 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1672,8 +1672,9 @@ static void usage(int version) return; puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000")); printf("Usage: %s [OPTIONS] [database]\n", my_progname); - my_print_help(my_long_options); print_defaults("my", load_default_groups); + puts(""); + my_print_help(my_long_options); my_print_variables(my_long_options); } diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c index 9e39b7273ea..8529ab91015 100644 --- a/client/mysql_upgrade.c +++ b/client/mysql_upgrade.c @@ -22,7 +22,7 @@ #include /* ORACLE_WELCOME_COPYRIGHT_NOTICE */ -#define VER "1.3" +#define VER "1.3a" #ifdef HAVE_SYS_WAIT_H #include @@ -164,6 +164,15 @@ static struct my_option my_long_options[]= }; +static const char *load_default_groups[]= +{ + "client", /* Read settings how to connect to server */ + "mysql_upgrade", /* Read special settings for mysql_upgrade */ + "client-server", /* Reads settings common between client & server */ + "client-mariadb", /* Read mariadb unique client settings */ + 0 +}; + static void free_used_memory(void) { /* Free memory allocated by 'load_defaults' */ @@ -180,6 +189,7 @@ static void die(const char *fmt, ...) DBUG_ENTER("die"); /* Print the error message */ + fflush(stdout); va_start(args, fmt); if (fmt) { @@ -259,8 +269,11 @@ get_one_option(int optid, const struct my_option *opt, printf("%s Ver %s Distrib %s, for %s (%s)\n", my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE); puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000")); - puts("MariaDB utility for upgrading databases to new MariaDB versions.\n"); + puts("MariaDB utility for upgrading databases to new MariaDB versions."); + print_defaults("my", load_default_groups); + puts(""); my_print_help(my_long_options); + my_print_variables(my_long_options); die(0); break; @@ -736,6 +749,7 @@ static int run_mysqlcheck_upgrade(void) !opt_silent || opt_verbose ? "--verbose": "", opt_silent ? "--silent": "", opt_write_binlog ? "--write-binlog" : "--skip-write-binlog", + "2>&1", NULL); } @@ -754,6 +768,7 @@ static int run_mysqlcheck_fixnames(void) opt_verbose ? "--verbose": "", opt_silent ? "--silent": "", opt_write_binlog ? "--write-binlog" : "--skip-write-binlog", + "2>&1", NULL); } @@ -855,14 +870,11 @@ static int run_sql_fix_privilege_tables(void) } -static const char *load_default_groups[]= +static void print_error(const char *error_msg, DYNAMIC_STRING *output) { - "client", /* Read settings how to connect to server */ - "mysql_upgrade", /* Read special settings for mysql_upgrade */ - "client-server", /* Reads settings common between client & server */ - "client-mariadb", /* Read mariadb unique client settings */ - 0 -}; + fprintf(stderr, "%s\n", error_msg); + fprintf(stderr, "%s", output->str); +} /* Convert the specified version string into the numeric format. */ @@ -895,6 +907,8 @@ static int check_version_match(void) &ds_version, FALSE) || extract_variable_from_show(&ds_version, version_str)) { + print_error("Version check failed. Got the following error when calling " + "the 'mysql' command line client", &ds_version); dynstr_free(&ds_version); return 1; /* Query failed */ } @@ -963,7 +977,8 @@ int main(int argc, char **argv) } else { - printf("The --upgrade-system-tables option was used, databases won't be touched.\n"); + if (!opt_silent) + printf("The --upgrade-system-tables option was used, databases won't be touched.\n"); } /* diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc index e4a45d52f83..dd35547a2c2 100644 --- a/client/mysqladmin.cc +++ b/client/mysqladmin.cc @@ -1179,9 +1179,10 @@ static void usage(void) puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000")); puts("Administration program for the mysqld daemon."); printf("Usage: %s [OPTIONS] command command....\n", my_progname); + print_defaults("my",load_default_groups); + puts(""); my_print_help(my_long_options); my_print_variables(my_long_options); - print_defaults("my",load_default_groups); puts("\nWhere command is a one or more of: (Commands may be shortened)\n\ create databasename Create a new database\n\ debug Instruct server to write debug information to log\n\ diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index 408a7c36139..990fadadae2 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -1542,6 +1542,8 @@ static void usage() Dumps a MySQL binary log in a format usable for viewing or for piping to\n\ the mysql command line client.\n\n"); printf("Usage: %s [options] log-files\n", my_progname); + print_defaults("my",load_groups); + puts(""); my_print_help(my_options); my_print_variables(my_options); } diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 7462c7561f6..b9053c3a142 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -250,6 +250,7 @@ static void usage(void) puts("http://kb.askmonty.org/v/mysqlcheck for latest information about"); puts("this program."); print_defaults("my", load_default_groups); + puts(""); my_print_help(my_long_options); my_print_variables(my_long_options); DBUG_VOID_RETURN; diff --git a/client/mysqldump.c b/client/mysqldump.c index bf3697f2b84..88aae2d4321 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -612,7 +612,8 @@ static void usage(void) puts("Dumping structure and contents of MySQL databases and tables."); short_usage_sub(); print_defaults("my",load_default_groups); - my_print_help(my_long_options); + puts(""); +my_print_help(my_long_options); my_print_variables(my_long_options); } /* usage */ diff --git a/client/mysqlimport.c b/client/mysqlimport.c index 77d0cd0a7d3..686f26cebeb 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -216,8 +216,9 @@ If one uses sockets to connect to the MySQL server, the server will open and\n\ read the text file directly. In other cases the client will open the text\n\ file. The SQL command 'LOAD DATA INFILE' is used to import the rows.\n"); - printf("\nUsage: %s [OPTIONS] database textfile...",my_progname); + printf("\nUsage: %s [OPTIONS] database textfile...\n",my_progname); print_defaults("my",load_default_groups); + puts(""); my_print_help(my_long_options); my_print_variables(my_long_options); } diff --git a/client/mysqlshow.c b/client/mysqlshow.c index 323c4282ff4..5bcdd911cfd 100644 --- a/client/mysqlshow.c +++ b/client/mysqlshow.c @@ -279,6 +279,7 @@ If no table is given, then all matching tables in database are shown.\n\ If no column is given, then all matching columns and column types in table\n\ are shown."); print_defaults("my",load_default_groups); + puts(""); my_print_help(my_long_options); my_print_variables(my_long_options); } diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 202fcf7950f..536535be294 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -732,7 +732,9 @@ static void usage(void) puts("Run a query multiple times against the server.\n"); printf("Usage: %s [OPTIONS]\n",my_progname); print_defaults("my",load_default_groups); + puts(""); my_print_help(my_long_options); + my_print_variables(my_long_options); } diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 22645c89067..68d220b26c0 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -7003,8 +7003,9 @@ void usage() puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000")); printf("Runs a test against the mysql server and compares output with a results file.\n\n"); printf("Usage: %s [OPTIONS] [database] < test_file\n", my_progname); + print_defaults("my",load_default_groups); + puts(""); my_print_help(my_long_options); - printf(" --no-defaults Don't read default options from any options file.\n"); my_print_variables(my_long_options); } diff --git a/include/handler_ername.h b/include/handler_ername.h index 91780be553d..50f7f535806 100644 --- a/include/handler_ername.h +++ b/include/handler_ername.h @@ -78,3 +78,4 @@ { "HA_ERR_ROW_NOT_VISIBLE", HA_ERR_ROW_NOT_VISIBLE, "" }, { "HA_ERR_ABORTED_BY_USER", HA_ERR_ABORTED_BY_USER, "" }, { "HA_ERR_DISK_FULL", HA_ERR_DISK_FULL, "" }, +{ "HA_ERR_INCOMPATIBLE_DEFINITION", HA_ERR_INCOMPATIBLE_DEFINITION, "" }, diff --git a/include/my_base.h b/include/my_base.h index e072bb7e2b1..36c97d61cb9 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -466,7 +466,8 @@ enum ha_base_keytype { #define HA_ERR_ROW_NOT_VISIBLE 182 #define HA_ERR_ABORTED_BY_USER 183 #define HA_ERR_DISK_FULL 184 -#define HA_ERR_LAST 184 /* Copy of last error nr */ +#define HA_ERR_INCOMPATIBLE_DEFINITION 185 +#define HA_ERR_LAST 185 /* Copy of last error nr */ /* Number of different errors */ #define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1) diff --git a/mysql-test/r/mysql_upgrade.result b/mysql-test/r/mysql_upgrade.result index 7c745d83e5d..285b00ae27f 100644 --- a/mysql-test/r/mysql_upgrade.result +++ b/mysql-test/r/mysql_upgrade.result @@ -108,6 +108,9 @@ test Phase 3/3: Running 'mysql_fix_privilege_tables'... OK DROP USER mysqltest1@'%'; +Version check failed. Got the following error when calling the 'mysql' command line client +ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES) +FATAL ERROR: Upgrade failed Run mysql_upgrade with a non existing server socket mysqlcheck: Got error: 2005: Unknown MySQL server host 'not_existing_host' (errno) when trying to connect FATAL ERROR: Upgrade failed diff --git a/mysql-test/r/repair.result b/mysql-test/r/repair.result index 1a98f2f0f36..52ae9c38792 100644 --- a/mysql-test/r/repair.result +++ b/mysql-test/r/repair.result @@ -130,26 +130,25 @@ test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" or dum # REPAIR old table USE_FRM should fail REPAIR TABLE t1 USE_FRM; Table Op Msg_type Msg_text -t1 repair error Failed repairing incompatible .frm file +test.t1 repair warning Number of rows changed from 0 to 1 +test.t1 repair status OK # Run REPAIR TABLE to upgrade .frm file REPAIR TABLE t1; Table Op Msg_type Msg_text test.t1 repair status OK SHOW TABLE STATUS LIKE 't1'; Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment -t1 MyISAM 10 Fixed 2 7 14 1970324836974591 1024 0 NULL # # NULL latin1_swedish_ci NULL +t1 MyISAM 10 Fixed 1 7 7 1970324836974591 1024 0 NULL # # NULL latin1_swedish_ci NULL SELECT * FROM t1; id 1 -2 REPAIR TABLE t1 USE_FRM; Table Op Msg_type Msg_text -test.t1 repair warning Number of rows changed from 0 to 2 +test.t1 repair warning Number of rows changed from 0 to 1 test.t1 repair status OK SELECT * FROM t1; id 1 -2 DROP TABLE t1; DROP TABLE IF EXISTS tt1; CREATE TEMPORARY TABLE tt1 (c1 INT); @@ -183,3 +182,28 @@ test.t1 repair status OK test.t2 repair status OK set @@autocommit= default; drop tables t1, t2; +# +# Check that we have decent error messages when using crashed +# .frm file from MySQL 3.23 +# +# Test with a saved table from 3.23 +select count(*) from t1; +ERROR HY000: Got error 185 'Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this' from MyISAM +check table t1; +Table Op Msg_type Msg_text +test.t1 check Error Got error 185 'Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this' from MyISAM +test.t1 check error Corrupt +repair table t1; +Table Op Msg_type Msg_text +test.t1 repair Error Got error 185 'Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this' from MyISAM +test.t1 repair error Corrupt +repair table t1 use_frm; +Table Op Msg_type Msg_text +test.t1 repair status OK +select count(*) from t1; +count(*) +0 +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK +drop table t1; diff --git a/mysql-test/std_data/host_old.MYD b/mysql-test/std_data/host_old.MYD new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mysql-test/std_data/host_old.MYI b/mysql-test/std_data/host_old.MYI new file mode 100644 index 00000000000..c4c3f225e25 Binary files /dev/null and b/mysql-test/std_data/host_old.MYI differ diff --git a/mysql-test/std_data/host_old.frm b/mysql-test/std_data/host_old.frm new file mode 100644 index 00000000000..10ef3ec58be Binary files /dev/null and b/mysql-test/std_data/host_old.frm differ diff --git a/mysql-test/t/mysql_upgrade.test b/mysql-test/t/mysql_upgrade.test index 3bdaf4ceadb..820144216ab 100644 --- a/mysql-test/t/mysql_upgrade.test +++ b/mysql-test/t/mysql_upgrade.test @@ -40,6 +40,11 @@ GRANT ALL ON *.* TO mysqltest1@'%'; DROP USER mysqltest1@'%'; +# +# check that we get proper error messages if wrong user + +--error 1 +--exec $MYSQL_UPGRADE --force --user=mysqltest1 --password=sakila 2>&1 # # Bug #26639 mysql_upgrade exits successfully even if external command failed diff --git a/mysql-test/t/repair.test b/mysql-test/t/repair.test index 3c55f06ff4c..337b73f37d1 100644 --- a/mysql-test/t/repair.test +++ b/mysql-test/t/repair.test @@ -188,3 +188,23 @@ set @@autocommit= 0; repair table t1, t2; set @@autocommit= default; drop tables t1, t2; + +--echo # +--echo # Check that we have decent error messages when using crashed +--echo # .frm file from MySQL 3.23 +--echo # + +--echo # Test with a saved table from 3.23 +let $MYSQLD_DATADIR= `select @@datadir`; +--copy_file std_data/host_old.frm $MYSQLD_DATADIR/test/t1.frm +--copy_file std_data/host_old.MYD $MYSQLD_DATADIR/test/t1.MYD +--copy_file std_data/host_old.MYI $MYSQLD_DATADIR/test/t1.MYI + +--error ER_GET_ERRMSG +select count(*) from t1; +check table t1; +repair table t1; +repair table t1 use_frm; +select count(*) from t1; +check table t1; +drop table t1; diff --git a/mysys/my_handler_errors.h b/mysys/my_handler_errors.h index 8b3b359ea95..bcc1ba9c476 100644 --- a/mysys/my_handler_errors.h +++ b/mysys/my_handler_errors.h @@ -86,7 +86,8 @@ static const char *handler_error_messages[]= "Table is being used in foreign key check", "Row is not visible by the current transaction", "Operation was interrupted by end user (probably kill command?)", - "Disk full" + "Disk full", + "Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this" }; #endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */ diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 76e92899c2a..cd4cfc858d8 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -172,6 +172,10 @@ ENDIF() CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysqlbug.sh ${CMAKE_CURRENT_BINARY_DIR}/mysqlbug ESCAPE_QUOTES @ONLY) + EXECUTE_PROCESS( + COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/mysqlbug + ) + INSTALL_SCRIPT(${CMAKE_CURRENT_BINARY_DIR}/mysqlbug DESTINATION ${INSTALL_BINDIR} COMPONENT Server @@ -205,6 +209,10 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) SET(DEST ${INSTALL_SCRIPTDIR}) SET(EXT) + EXECUTE_PROCESS( + COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db + ) + INSTALL_SCRIPT( "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db" DESTINATION ${DEST} diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index a481aa836c6..10038d2cf58 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -90,7 +90,7 @@ link_to_help() { echo echo "The latest information about mysql_install_db is available at" - echo "http://kb.askmonty.org/v/installing-system-tables-mysql_install_db." + echo "https://mariadb.com/kb/en/installing-system-tables-mysql_install_db" } parse_arg() @@ -492,7 +492,7 @@ then echo "databases and anonymous user created by default. This is" echo "strongly recommended for production servers." echo - echo "See the MariaDB Knowledgebase at http://kb.askmonty.org or the" + echo "See the MariaDB Knowledgebase at http://mariadb.com/kb or the" echo "MySQL manual for more instructions." if test "$in_rpm" -eq 0 @@ -512,9 +512,9 @@ then echo "You can find additional information about the MySQL part at:" echo "http://dev.mysql.com" echo "Support MariaDB development by buying support/new features from" - echo "Monty Program Ab. You can contact us about this at sales@montyprogram.com". + echo "SkySQL Ab. You can contact us about this at sales@skysql.com". echo "Alternatively consider joining our community based development effort:" - echo "http://kb.askmonty.org/en/contributing-to-the-mariadb-project/" + echo "http://mariadb.com/kb/en/contributing-to-the-mariadb-project/" echo fi diff --git a/scripts/mysql_secure_installation.pl.in b/scripts/mysql_secure_installation.pl.in old mode 100755 new mode 100644 diff --git a/scripts/mytop.sh b/scripts/mytop.sh old mode 100755 new mode 100644 diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index f65ab41908d..feda3460c9f 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -305,7 +305,7 @@ void ha_partition::init_handler_variables() const char *ha_partition::table_type() const { // we can do this since we only support a single engine type - return m_file[0]->table_type(); + return m_file && m_file[0] ? m_file[0]->table_type() : "Unknown"; } diff --git a/sql/handler.cc b/sql/handler.cc index 59ed31f6076..e6981689d19 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -44,6 +44,7 @@ #include "probes_mysql.h" #include "debug_sync.h" // DEBUG_SYNC #include "sql_audit.h" +#include "../mysys/my_handler_errors.h" #ifdef WITH_PARTITION_STORAGE_ENGINE #include "ha_partition.h" @@ -3139,8 +3140,18 @@ void handler::print_error(int error, myf errflag) my_error(ER_GET_ERRMSG, errflag, error, str.c_ptr(), engine); } } + else if (error >= HA_ERR_FIRST && error <= HA_ERR_LAST) + { + const char* engine= table_type(); + const char *errmsg= handler_error_messages[error - HA_ERR_FIRST]; + my_error(ER_GET_ERRMSG, errflag, error, errmsg, engine); + SET_FATAL_ERROR; + } else - my_error(ER_GET_ERRNO,errflag,error); + { + my_error(ER_GET_ERRNO, errflag,error); + /* SET_FATAL_ERROR; */ + } DBUG_VOID_RETURN; } } diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt index 4f22ffb04de..3259fccebd4 100644 --- a/sql/share/errmsg-utf8.txt +++ b/sql/share/errmsg-utf8.txt @@ -5067,17 +5067,17 @@ ER_UNSUPPORTED_PS eng "This command is not supported in the prepared statement protocol yet" ger "Dieser Befehl wird im Protokoll für vorbereitete Anweisungen noch nicht unterstützt" ER_GET_ERRMSG - dan "Modtog fejl %d '%-.100s' fra %s" - eng "Got error %d '%-.100s' from %s" - ger "Fehler %d '%-.100s' von %s" - nor "Mottok feil %d '%-.100s' fa %s" - norwegian-ny "Mottok feil %d '%-.100s' fra %s" + dan "Modtog fejl %d '%-.200s' fra %s" + eng "Got error %d '%-.200s' from %s" + ger "Fehler %d '%-.200s' von %s" + nor "Mottok feil %d '%-.200s' fa %s" + norwegian-ny "Mottok feil %d '%-.200s' fra %s" ER_GET_TEMPORARY_ERRMSG - dan "Modtog temporary fejl %d '%-.100s' fra %s" - eng "Got temporary error %d '%-.100s' from %s" - ger "Temporärer Fehler %d '%-.100s' von %s" - nor "Mottok temporary feil %d '%-.100s' fra %s" - norwegian-ny "Mottok temporary feil %d '%-.100s' fra %s" + dan "Modtog temporary fejl %d '%-.200s' fra %s" + eng "Got temporary error %d '%-.200s' from %s" + ger "Temporärer Fehler %d '%-.200s' von %s" + nor "Mottok temporary feil %d '%-.200s' fra %s" + norwegian-ny "Mottok temporary feil %d '%-.200s' fra %s" ER_UNKNOWN_TIME_ZONE eng "Unknown or incorrect time zone: '%-.64s'" ger "Unbekannte oder falsche Zeitzone: '%-.64s'" diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc index b8a7afbd6c5..9beeca06945 100644 --- a/sql/sql_admin.cc +++ b/sql/sql_admin.cc @@ -162,10 +162,11 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list, - Run a normal repair using the new index file and the old data file */ - if (table->s->frm_version != FRM_VER_TRUE_VARCHAR) + if (table->s->frm_version != FRM_VER_TRUE_VARCHAR && + table->s->varchar_fields) { error= send_check_errmsg(thd, table_list, "repair", - "Failed repairing incompatible .frm file"); + "Failed repairing a very old .frm file as the data file format has changed between versions. Please dump the table in your old system with mysqldump and read it into this system with mysql or mysqlimport"); goto end; } diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index 893f3d92caf..cb023c25776 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -762,7 +762,7 @@ int ha_myisam::open(const char *name, int mode, uint test_if_locked) true, table)) { /* purecov: begin inspected */ - my_errno= HA_ERR_CRASHED; + my_errno= HA_ERR_INCOMPATIBLE_DEFINITION; goto err; /* purecov: end */ } -- cgit v1.2.1 From e3d90769109f7c4107aa3a04a4941c4eec9aa693 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 21 Jan 2014 17:20:44 +0100 Subject: remove an unused error message --- sql/share/errmsg-utf8.txt | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt index 3259fccebd4..e8d44071a43 100644 --- a/sql/share/errmsg-utf8.txt +++ b/sql/share/errmsg-utf8.txt @@ -1822,31 +1822,8 @@ ER_WRONG_AUTO_KEY 42000 S1009 spa "Puede ser solamente un campo automatico y este debe ser definido como una clave" swe "Det får finnas endast ett AUTO_INCREMENT-fält och detta måste vara en nyckel" ukr "Невірне визначення таблиці; Може бути лише один автоматичний стовбець, що повинен бути визначений як ключ" -ER_READY - cze "%s: p-Břipraven na spojení\nVersion: '%s' socket: '%s' port: %d"" - dan "%s: klar til tilslutninger\nVersion: '%s' socket: '%s' port: %d"" - nla "%s: klaar voor verbindingen\nVersion: '%s' socket: '%s' port: %d"" - eng "%s: ready for connections.\nVersion: '%s' socket: '%s' port: %d" - jps "%s: 準備完了¥nVersion: '%s' socket: '%s' port: %d"", - est "%s: ootab ühendusi\nVersion: '%s' socket: '%s' port: %d"" - fre "%s: Prêt pour des connexions\nVersion: '%s' socket: '%s' port: %d"" - ger "%s: Bereit für Verbindungen.\nVersion: '%s' Socket: '%s' Port: %d" - greek "%s: σε αναμονή συνδέσεων\nVersion: '%s' socket: '%s' port: %d"" - hun "%s: kapcsolatra kesz\nVersion: '%s' socket: '%s' port: %d"" - ita "%s: Pronto per le connessioni\nVersion: '%s' socket: '%s' port: %d"" - jpn "%s: 準備完了\nVersion: '%s' socket: '%s' port: %d"" - kor "%s: 연결 준비중입니다\nVersion: '%s' socket: '%s' port: %d"" - nor "%s: klar for tilkoblinger\nVersion: '%s' socket: '%s' port: %d"" - norwegian-ny "%s: klar for tilkoblingar\nVersion: '%s' socket: '%s' port: %d"" - pol "%s: gotowe do poł?czenia\nVersion: '%s' socket: '%s' port: %d"" - por "%s: Pronto para conexões\nVersion: '%s' socket: '%s' port: %d"" - rum "%s: sint gata pentru conectii\nVersion: '%s' socket: '%s' port: %d"" - rus "%s: Готов принимать соединения.\nВерсия: '%s' сокет: '%s' порт: %d" - serbian "%s: Spreman za konekcije\nVersion: '%s' socket: '%s' port: %d"" - slo "%s: pripravený na spojenie\nVersion: '%s' socket: '%s' port: %d"" - spa "%s: preparado para conexiones\nVersion: '%s' socket: '%s' port: %d"" - swe "%s: klar att ta emot klienter\nVersion: '%s' socket: '%s' port: %d"" - ukr "%s: Готовий для з'єднань!\nVersion: '%s' socket: '%s' port: %d"" +ER_UNUSED_2 + eng "You should never see it" ER_NORMAL_SHUTDOWN cze "%s: norm-Bální ukončení\n" dan "%s: Normal nedlukning\n" -- cgit v1.2.1 From e8f6f402922295ec36aab42976f3e494455407d4 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 21 Jan 2014 17:20:51 +0100 Subject: clarify plugin-load usage in tokudb.cnf file --- storage/tokudb/tokudb.cnf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/tokudb/tokudb.cnf b/storage/tokudb/tokudb.cnf index 84f98e6d9b9..11e5e832bab 100644 --- a/storage/tokudb/tokudb.cnf +++ b/storage/tokudb/tokudb.cnf @@ -5,5 +5,11 @@ # See https://mariadb.com/kb/en/tokudb-differences/ for differences # between TokuDB in MariaDB and TokuDB from http://www.tokutek.com/ +# Note, that only one plugin-load option will be recognized by the +# MariaDB server. If you uncomment the line below, make sure that +# you don't also have plugin-load options in your other +# my.cnf files. Otherwise, add ha_tokudb.so to the existing +# plugin-load option, instead of uncommenting the line below. + #plugin-load=ha_tokudb.so -- cgit v1.2.1 From 15b4441dcbdf6960a7ed9a15f8f03c01a24451e4 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 22 Jan 2014 10:03:32 +0100 Subject: Percona-Server-5.5.35-rel33.0.tar.gz --- btr/btr0cur.c | 31 ++++++++++----- btr/btr0pcur.c | 46 +++++++++------------ buf/buf0buf.c | 6 ++- buf/buf0flu.c | 10 +++++ dict/dict0dict.c | 13 ++++++ fil/fil0fil.c | 3 +- handler/ha_innodb.cc | 80 ++++++++++++++++++++++--------------- handler/i_s.cc | 4 ++ ibuf/ibuf0ibuf.c | 29 +++++++++++--- include/btr0cur.h | 15 +++++++ include/btr0pcur.h | 44 +++++++++++---------- include/btr0pcur.ic | 4 +- include/btr0sea.h | 2 - include/dict0types.h | 5 +++ include/ibuf0ibuf.h | 5 --- include/log0log.h | 2 + include/univ.i | 2 +- log/log0log.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++- log/log0online.c | 19 +++++++-- row/row0sel.c | 103 ++++++++++++++++++++++++++++++++++------------- trx/trx0trx.c | 8 ++++ 21 files changed, 405 insertions(+), 136 deletions(-) diff --git a/btr/btr0cur.c b/btr/btr0cur.c index 9adea11f895..ccecbfd64de 100644 --- a/btr/btr0cur.c +++ b/btr/btr0cur.c @@ -61,6 +61,7 @@ Created 10/16/1994 Heikki Tuuri #include "row0upd.h" #include "trx0rec.h" #include "trx0roll.h" /* trx_is_recv() */ +#include "trx0undo.h" #include "que0que.h" #include "row0row.h" #include "srv0srv.h" @@ -1757,7 +1758,7 @@ btr_cur_upd_lock_and_undo( /***********************************************************//** Writes a redo log record of updating a record in-place. */ -UNIV_INLINE +UNIV_INTERN void btr_cur_update_in_place_log( /*========================*/ @@ -1785,18 +1786,30 @@ btr_cur_update_in_place_log( return; } - /* The code below assumes index is a clustered index: change index to - the clustered index if we are updating a secondary index record (or we - could as well skip writing the sys col values to the log in this case - because they are not needed for a secondary index record update) */ - - index = dict_table_get_first_index(index->table); + /* For secondary indexes, we could skip writing the dummy system fields + to the redo log but we have to change redo log parsing of + MLOG_REC_UPDATE_IN_PLACE/MLOG_COMP_REC_UPDATE_IN_PLACE or we have to add + new redo log record. For now, just write dummy sys fields to the redo + log if we are updating a secondary index record. + */ mach_write_to_1(log_ptr, flags); log_ptr++; - log_ptr = row_upd_write_sys_vals_to_log(index, trx, roll_ptr, log_ptr, - mtr); + if (dict_index_is_clust(index)) { + log_ptr = row_upd_write_sys_vals_to_log( + index, trx, roll_ptr, log_ptr, mtr); + } else { + /* Dummy system fields for a secondary index */ + /* TRX_ID Position */ + log_ptr += mach_write_compressed(log_ptr, 0); + /* ROLL_PTR */ + trx_write_roll_ptr(log_ptr, 0); + log_ptr += DATA_ROLL_PTR_LEN; + /* TRX_ID */ + log_ptr += mach_ull_write_compressed(log_ptr, 0); + } + mach_write_to_2(log_ptr, page_offset(rec)); log_ptr += 2; diff --git a/btr/btr0pcur.c b/btr/btr0pcur.c index 3929c4a9c2d..d1b3dc4a3e6 100644 --- a/btr/btr0pcur.c +++ b/btr/btr0pcur.c @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2012, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -111,7 +111,7 @@ btr_pcur_store_position( page_t* page; ulint offs; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); block = btr_pcur_get_block(cursor); @@ -128,7 +128,6 @@ btr_pcur_store_position( ut_ad(mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_S_FIX) || mtr_memo_contains(mtr, block, MTR_MEMO_PAGE_X_FIX)); - ut_a(cursor->latch_mode != BTR_NO_LATCHES); if (UNIV_UNLIKELY(page_get_n_recs(page) == 0)) { /* It must be an empty index tree; NOTE that in this case @@ -239,21 +238,12 @@ btr_pcur_restore_position_func( ut_ad(mtr); ut_ad(mtr->state == MTR_ACTIVE); + ut_ad(cursor->old_stored == BTR_PCUR_OLD_STORED); + ut_ad(cursor->pos_state == BTR_PCUR_WAS_POSITIONED + || cursor->pos_state == BTR_PCUR_IS_POSITIONED); index = btr_cur_get_index(btr_pcur_get_btr_cur(cursor)); - if (UNIV_UNLIKELY(cursor->old_stored != BTR_PCUR_OLD_STORED) - || UNIV_UNLIKELY(cursor->pos_state != BTR_PCUR_WAS_POSITIONED - && cursor->pos_state != BTR_PCUR_IS_POSITIONED)) { - ut_print_buf(stderr, cursor, sizeof(btr_pcur_t)); - putc('\n', stderr); - if (cursor->trx_if_known) { - trx_print(stderr, cursor->trx_if_known, 0); - } - - ut_error; - } - if (UNIV_UNLIKELY (cursor->rel_pos == BTR_PCUR_AFTER_LAST_IN_TREE || cursor->rel_pos == BTR_PCUR_BEFORE_FIRST_IN_TREE)) { @@ -277,14 +267,14 @@ btr_pcur_restore_position_func( if (UNIV_LIKELY(latch_mode == BTR_SEARCH_LEAF) || UNIV_LIKELY(latch_mode == BTR_MODIFY_LEAF)) { - /* Try optimistic restoration */ + /* Try optimistic restoration. */ - if (UNIV_LIKELY(buf_page_optimistic_get( - latch_mode, - cursor->block_when_stored, - cursor->modify_clock, - file, line, mtr))) { + if (buf_page_optimistic_get(latch_mode, + cursor->block_when_stored, + cursor->modify_clock, + file, line, mtr)) { cursor->pos_state = BTR_PCUR_IS_POSITIONED; + cursor->latch_mode = latch_mode; buf_block_dbg_add_level( btr_pcur_get_block(cursor), @@ -296,9 +286,6 @@ btr_pcur_restore_position_func( const rec_t* rec; const ulint* offsets1; const ulint* offsets2; -#endif /* UNIV_DEBUG */ - cursor->latch_mode = latch_mode; -#ifdef UNIV_DEBUG rec = btr_pcur_get_rec(cursor); heap = mem_heap_create(256); @@ -316,7 +303,13 @@ btr_pcur_restore_position_func( #endif /* UNIV_DEBUG */ return(TRUE); } - + /* This is the same record as stored, + may need to be adjusted for BTR_PCUR_BEFORE/AFTER, + depending on search mode and direction. */ + if (btr_pcur_is_on_user_rec(cursor)) { + cursor->pos_state + = BTR_PCUR_IS_POSITIONED_OPTIMISTIC; + } return(FALSE); } } @@ -418,7 +411,7 @@ btr_pcur_move_to_next_page( buf_block_t* next_block; page_t* next_page; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); ut_ad(btr_pcur_is_after_last_on_page(cursor)); @@ -484,7 +477,6 @@ btr_pcur_move_backward_from_page( ulint latch_mode; ulint latch_mode2; - ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED); ut_ad(cursor->latch_mode != BTR_NO_LATCHES); ut_ad(btr_pcur_is_before_first_on_page(cursor)); ut_ad(!btr_pcur_is_before_first_in_tree(cursor, mtr)); diff --git a/buf/buf0buf.c b/buf/buf0buf.c index 5d82cebe87a..c0909715972 100644 --- a/buf/buf0buf.c +++ b/buf/buf0buf.c @@ -4754,12 +4754,16 @@ buf_get_latched_pages_number_instance( case BUF_BLOCK_FILE_PAGE: /* uncompressed page */ break; + case BUF_BLOCK_REMOVE_HASH: + /* We hold flush list but not LRU list mutex here. + Thus encountering BUF_BLOCK_REMOVE_HASH pages is + possible. */ + break; case BUF_BLOCK_ZIP_FREE: case BUF_BLOCK_ZIP_PAGE: case BUF_BLOCK_NOT_USED: case BUF_BLOCK_READY_FOR_USE: case BUF_BLOCK_MEMORY: - case BUF_BLOCK_REMOVE_HASH: ut_error; break; } diff --git a/buf/buf0flu.c b/buf/buf0flu.c index fea665eba40..d47f2d6fa9a 100644 --- a/buf/buf0flu.c +++ b/buf/buf0flu.c @@ -1605,6 +1605,16 @@ buf_flush_page_and_try_neighbors( ut_ad(block_mutex); } + if (UNIV_UNLIKELY(buf_page_get_state(bpage) + == BUF_BLOCK_REMOVE_HASH)) { + + /* In case we don't hold the LRU list mutex, we may see a page + that is about to be relocated on the flush list. Do not + attempt to flush it. */ + ut_ad(flush_type == BUF_FLUSH_LIST); + return (flushed); + } + ut_a(buf_page_in_file(bpage)); if (buf_flush_ready_for_flush(bpage, flush_type)) { diff --git a/dict/dict0dict.c b/dict/dict0dict.c index 5760bc75e34..30f63d569cd 100644 --- a/dict/dict0dict.c +++ b/dict/dict0dict.c @@ -36,6 +36,11 @@ UNIV_INTERN dict_index_t* dict_ind_redundant; /** dummy index for ROW_FORMAT=COMPACT supremum and infimum records */ UNIV_INTERN dict_index_t* dict_ind_compact; +#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG +/** Flag to control insert buffer debugging. */ +UNIV_INTERN uint ibuf_debug; +#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ + #ifndef UNIV_HOTBACKUP #include "buf0buf.h" #include "data0type.h" @@ -4855,6 +4860,8 @@ dict_update_statistics( dict_index_t* index; ulint sum_of_index_sizes = 0; + DBUG_EXECUTE_IF("skip_innodb_statistics", return;); + if (table->ibd_file_missing) { ut_print_timestamp(stderr); fprintf(stderr, @@ -4916,6 +4923,12 @@ dict_update_statistics( continue; } +#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG + if (ibuf_debug && !dict_index_is_clust(index)) { + goto fake_statistics; + } +#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ + if (UNIV_LIKELY (srv_force_recovery < SRV_FORCE_NO_IBUF_MERGE || (srv_force_recovery < SRV_FORCE_NO_LOG_REDO diff --git a/fil/fil0fil.c b/fil/fil0fil.c index f886f347b2f..2ab74b1595d 100644 --- a/fil/fil0fil.c +++ b/fil/fil0fil.c @@ -4369,7 +4369,7 @@ fil_load_single_table_tablespace( if (check_msg) { fprintf(stderr, - "InnoDB: Error: %s in file %s", + "InnoDB: Error: %s in file %s\n", check_msg, filepath); goto func_exit; } @@ -4967,6 +4967,7 @@ fil_extend_space_to_desired_size( space->size += (size_after_extend - start_page_no); os_has_said_disk_full = FALSE; } + fil_node_complete_io(node, fil_system, OS_FILE_READ); goto complete_io; } #endif diff --git a/handler/ha_innodb.cc b/handler/ha_innodb.cc index 6c78c78bafe..ef11a9f2979 100644 --- a/handler/ha_innodb.cc +++ b/handler/ha_innodb.cc @@ -55,6 +55,7 @@ this program; if not, write to the Free Software Foundation, Inc., #include #include #include +#include #ifdef MYSQL_SERVER #include @@ -8810,6 +8811,10 @@ ha_innobase::records_in_range( /* There exists possibility of not being able to find requested index due to inconsistency between MySQL and InoDB dictionary info. Necessary message should have been printed in innobase_get_index() */ + if (prebuilt->table->ibd_file_missing) { + n_rows = HA_POS_ERROR; + goto func_exit; + } if (UNIV_UNLIKELY(!index)) { n_rows = HA_POS_ERROR; goto func_exit; @@ -9533,8 +9538,7 @@ int ha_innobase::check( /*===============*/ THD* thd, /*!< in: user thread handle */ - HA_CHECK_OPT* check_opt) /*!< in: check options, currently - ignored */ + HA_CHECK_OPT* check_opt) /*!< in: check options */ { dict_index_t* index; ulint n_rows; @@ -9591,11 +9595,6 @@ ha_innobase::check( do additional check */ prebuilt->table->corrupted = FALSE; - /* Enlarge the fatal lock wait timeout during CHECK TABLE. */ - mutex_enter(&kernel_mutex); - srv_fatal_semaphore_wait_threshold += SRV_SEMAPHORE_WAIT_EXTENSION; - mutex_exit(&kernel_mutex); - for (index = dict_table_get_first_index(prebuilt->table); index != NULL; index = dict_table_get_next_index(index)) { @@ -9608,20 +9607,41 @@ ha_innobase::check( /* If this is an index being created, break */ if (*index->name == TEMP_INDEX_PREFIX) { - break; - } else if (!btr_validate_index(index, prebuilt->trx)) { - is_ok = FALSE; + continue; + } + if (!(check_opt->flags & T_QUICK)) { + /* Enlarge the fatal lock wait timeout during + CHECK TABLE. */ + mutex_enter(&kernel_mutex); + srv_fatal_semaphore_wait_threshold += + SRV_SEMAPHORE_WAIT_EXTENSION; + mutex_exit(&kernel_mutex); + + ibool valid = TRUE; + valid = btr_validate_index(index, prebuilt->trx); + + /* Restore the fatal lock wait timeout after + CHECK TABLE. */ + mutex_enter(&kernel_mutex); + srv_fatal_semaphore_wait_threshold -= + SRV_SEMAPHORE_WAIT_EXTENSION; + mutex_exit(&kernel_mutex); + + if (!valid) { + is_ok = FALSE; - innobase_format_name( - index_name, sizeof index_name, - prebuilt->index->name, TRUE); + innobase_format_name( + index_name, sizeof index_name, + index->name, TRUE); + push_warning_printf(thd, + MYSQL_ERROR::WARN_LEVEL_WARN, + ER_NOT_KEYFILE, + "InnoDB: The B-tree of" + " index %s is corrupted.", + index_name); - push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, - ER_NOT_KEYFILE, - "InnoDB: The B-tree of" - " index %s is corrupted.", - index_name); - continue; + continue; + } } /* Instead of invoking change_active_index(), set up @@ -9725,21 +9745,17 @@ ha_innobase::check( /* Restore the original isolation level */ prebuilt->trx->isolation_level = old_isolation_level; - /* We validate also the whole adaptive hash index for all tables - at every CHECK TABLE */ +#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG + /* We validate the whole adaptive hash index for all tables + at every CHECK TABLE only when QUICK flag is not present. */ - if (!btr_search_validate()) { + if (!(check_opt->flags & T_QUICK) && !btr_search_validate()) { push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, ER_NOT_KEYFILE, "InnoDB: The adaptive hash index is corrupted."); is_ok = FALSE; } - - /* Restore the fatal lock wait timeout after CHECK TABLE. */ - mutex_enter(&kernel_mutex); - srv_fatal_semaphore_wait_threshold -= SRV_SEMAPHORE_WAIT_EXTENSION; - mutex_exit(&kernel_mutex); - +#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */ prebuilt->trx->op_info = ""; if (thd_killed(user_thd)) { my_error(ER_QUERY_INTERRUPTED, MYF(0)); @@ -10623,6 +10639,7 @@ innodb_show_status( const long MAX_STATUS_SIZE = 1048576; ulint trx_list_start = ULINT_UNDEFINED; ulint trx_list_end = ULINT_UNDEFINED; + bool ret_val; DBUG_ENTER("innodb_show_status"); DBUG_ASSERT(hton == innodb_hton_ptr); @@ -10687,12 +10704,13 @@ innodb_show_status( mutex_exit(&srv_monitor_file_mutex); - stat_print(thd, innobase_hton_name, (uint) strlen(innobase_hton_name), - STRING_WITH_LEN(""), str, flen); + ret_val= stat_print(thd, innobase_hton_name, + (uint) strlen(innobase_hton_name), + STRING_WITH_LEN(""), str, flen); my_free(str); - DBUG_RETURN(FALSE); + DBUG_RETURN(ret_val); } /************************************************************************//** diff --git a/handler/i_s.cc b/handler/i_s.cc index 5316c9d69ed..751efc4dd3f 100644 --- a/handler/i_s.cc +++ b/handler/i_s.cc @@ -48,14 +48,18 @@ extern "C" { #include "btr0types.h" #include "buf0buddy.h" #include "buf0buf.h" +#include "buf0lru.h" #include "ibuf0ibuf.h" #include "dict0mem.h" #include "dict0types.h" #include "dict0boot.h" +#include "dict0load.h" #include "ha_prototypes.h" #include "srv0start.h" +#include "srv0srv.h" #include "trx0i_s.h" #include "trx0rseg.h" +#include "trx0trx.h" #include "trx0undo.h" #include "log0online.h" #include "btr0btr.h" diff --git a/ibuf/ibuf0ibuf.c b/ibuf/ibuf0ibuf.c index 65489d13285..e04b6ac3ba6 100644 --- a/ibuf/ibuf0ibuf.c +++ b/ibuf/ibuf0ibuf.c @@ -194,11 +194,6 @@ access order rules. */ /** Operations that can currently be buffered. */ UNIV_INTERN ibuf_use_t ibuf_use = IBUF_USE_ALL; -#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG -/** Flag to control insert buffer debugging. */ -UNIV_INTERN uint ibuf_debug; -#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ - /** The insert buffer control structure */ UNIV_INTERN ibuf_t* ibuf = NULL; @@ -2693,6 +2688,12 @@ ibuf_contract_ext( return(0); } +#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG + if (ibuf_debug) { + return(0); + } +#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ + ibuf_mtr_start(&mtr); /* Open a cursor to a randomly chosen leaf of the tree, at a random @@ -4066,6 +4067,24 @@ updated_in_place: to btr_cur_update_in_place(). */ row_upd_rec_in_place(rec, index, offsets, update, page_zip); + + /* Log the update in place operation. During recovery + MLOG_COMP_REC_UPDATE_IN_PLACE/MLOG_REC_UPDATE_IN_PLACE + expects trx_id, roll_ptr for secondary indexes. So we + just write dummy trx_id(0), roll_ptr(0) */ + btr_cur_update_in_place_log(BTR_KEEP_SYS_FLAG, rec, + index, update, + NULL, 0, mtr); + DBUG_EXECUTE_IF( + "crash_after_log_ibuf_upd_inplace", + log_buffer_flush_to_disk(); + fprintf(stderr, + "InnoDB: Wrote log record for ibuf " + "update in place operation\n"); + DBUG_SUICIDE(); + ); + + goto updated_in_place; } diff --git a/include/btr0cur.h b/include/btr0cur.h index 97929d44159..7b56c1bbb6e 100644 --- a/include/btr0cur.h +++ b/include/btr0cur.h @@ -637,6 +637,21 @@ btr_cur_set_deleted_flag_for_ibuf( uncompressed */ ibool val, /*!< in: value to set */ mtr_t* mtr); /*!< in/out: mini-transaction */ + +/***********************************************************//** +Writes a redo log record of updating a record in-place. */ +UNIV_INTERN +void +btr_cur_update_in_place_log( +/*========================*/ + ulint flags, /*!< in: flags */ + rec_t* rec, /*!< in: record */ + dict_index_t* index, /*!< in: index where cursor positioned */ + const upd_t* update, /*!< in: update vector */ + trx_t* trx, /*!< in: transaction */ + roll_ptr_t roll_ptr, /*!< in: roll ptr */ + mtr_t* mtr); /*!< in: mtr */ + /*######################################################################*/ /** In the pessimistic delete, if the page data size drops below this diff --git a/include/btr0pcur.h b/include/btr0pcur.h index 4312f73ca4a..d9ce02283d7 100644 --- a/include/btr0pcur.h +++ b/include/btr0pcur.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -447,6 +447,27 @@ btr_pcur_move_to_prev_on_page( /*==========================*/ btr_pcur_t* cursor);/*!< in/out: persistent cursor */ +/** Position state of persistent B-tree cursor. */ +enum pcur_pos_t { + /** The persistent cursor is not positioned. */ + BTR_PCUR_NOT_POSITIONED = 0, + /** The persistent cursor was previously positioned. + TODO: currently, the state can be BTR_PCUR_IS_POSITIONED, + though it really should be BTR_PCUR_WAS_POSITIONED, + because we have no obligation to commit the cursor with + mtr; similarly latch_mode may be out of date. This can + lead to problems if btr_pcur is not used the right way; + all current code should be ok. */ + BTR_PCUR_WAS_POSITIONED, + /** The persistent cursor is positioned by optimistic get to the same + record as it was positioned at. Not used for rel_pos == BTR_PCUR_ON. + It may need adjustment depending on previous/current search direction + and rel_pos. */ + BTR_PCUR_IS_POSITIONED_OPTIMISTIC, + /** The persistent cursor is positioned by index search. + Or optimistic get for rel_pos == BTR_PCUR_ON. */ + BTR_PCUR_IS_POSITIONED +}; /* The persistent B-tree cursor structure. This is used mainly for SQL selects, updates, and deletes. */ @@ -480,10 +501,8 @@ struct btr_pcur_struct{ ib_uint64_t modify_clock; /*!< the modify clock value of the buffer block when the cursor position was stored */ - ulint pos_state; /*!< see TODO note below! - BTR_PCUR_IS_POSITIONED, - BTR_PCUR_WAS_POSITIONED, - BTR_PCUR_NOT_POSITIONED */ + enum pcur_pos_t pos_state; /*!< btr_pcur_store_position() and + btr_pcur_restore_position() state. */ ulint search_mode; /*!< PAGE_CUR_G, ... */ trx_t* trx_if_known; /*!< the transaction, if we know it; otherwise this field is not defined; @@ -499,21 +518,6 @@ struct btr_pcur_struct{ is not NULL */ }; -#define BTR_PCUR_IS_POSITIONED 1997660512 /* TODO: currently, the state - can be BTR_PCUR_IS_POSITIONED, - though it really should be - BTR_PCUR_WAS_POSITIONED, - because we have no obligation - to commit the cursor with - mtr; similarly latch_mode may - be out of date. This can - lead to problems if btr_pcur - is not used the right way; - all current code should be - ok. */ -#define BTR_PCUR_WAS_POSITIONED 1187549791 -#define BTR_PCUR_NOT_POSITIONED 1328997689 - #define BTR_PCUR_OLD_STORED 908467085 #define BTR_PCUR_OLD_NOT_STORED 122766467 diff --git a/include/btr0pcur.ic b/include/btr0pcur.ic index 696dfc728dc..647e8d0cde9 100644 --- a/include/btr0pcur.ic +++ b/include/btr0pcur.ic @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. 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 @@ -379,7 +379,7 @@ btr_pcur_commit_specify_mtr( btr_pcur_t* pcur, /*!< in: persistent cursor */ mtr_t* mtr) /*!< in: mtr to commit */ { - ut_a(pcur->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad(pcur->pos_state == BTR_PCUR_IS_POSITIONED); pcur->latch_mode = BTR_NO_LATCHES; diff --git a/include/btr0sea.h b/include/btr0sea.h index 6fa7a2d87bf..39c0a66fb9a 100644 --- a/include/btr0sea.h +++ b/include/btr0sea.h @@ -196,8 +196,6 @@ UNIV_INTERN ibool btr_search_validate(void); /*======================*/ -#else -# define btr_search_validate() TRUE #endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */ /********************************************************************//** diff --git a/include/dict0types.h b/include/dict0types.h index 330e6a25114..22407e2408e 100644 --- a/include/dict0types.h +++ b/include/dict0types.h @@ -63,4 +63,9 @@ typedef enum dict_err_ignore dict_err_ignore_t; #define TEMP_TABLE_PREFIX "#sql" #define TEMP_TABLE_PATH_PREFIX "/" TEMP_TABLE_PREFIX +#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG +/** Flag to control insert buffer debugging. */ +extern uint ibuf_debug; +#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ + #endif diff --git a/include/ibuf0ibuf.h b/include/ibuf0ibuf.h index 03ea0629af4..d0d09d3c753 100644 --- a/include/ibuf0ibuf.h +++ b/include/ibuf0ibuf.h @@ -63,11 +63,6 @@ typedef enum { /** Operations that can currently be buffered. */ extern ibuf_use_t ibuf_use; -#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG -/** Flag to control insert buffer debugging. */ -extern uint ibuf_debug; -#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */ - /** The insert buffer control structure */ extern ibuf_t* ibuf; diff --git a/include/log0log.h b/include/log0log.h index b67f362bd98..9e5d0143e18 100644 --- a/include/log0log.h +++ b/include/log0log.h @@ -822,6 +822,8 @@ struct log_struct{ later; this is advanced when a flush operation is completed to all the log groups */ + volatile ibool is_extending; /*!< this is set to true during extend + the log buffer size */ ib_uint64_t written_to_some_lsn; /*!< first log sequence number not yet written to any log group; for this to diff --git a/include/univ.i b/include/univ.i index 7224a496dc7..0ecc38ed0f7 100644 --- a/include/univ.i +++ b/include/univ.i @@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */ (INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR) #ifndef PERCONA_INNODB_VERSION -#define PERCONA_INNODB_VERSION 29.3 +#define PERCONA_INNODB_VERSION 33.0 #endif #define INNODB_VERSION_STR MYSQL_SERVER_VERSION "-" IB_TO_STR(PERCONA_INNODB_VERSION) diff --git a/log/log0log.c b/log/log0log.c index 919fca5527b..74bafa6d27a 100644 --- a/log/log0log.c +++ b/log/log0log.c @@ -262,6 +262,85 @@ log_check_tracking_margin( return tracked_lsn_age + lsn_advance > log_sys->max_checkpoint_age; } +/** Extends the log buffer. +@param[in] len requested minimum size in bytes */ +static +void +log_buffer_extend( + ulint len) +{ + ulint move_start; + ulint move_end; + byte tmp_buf[OS_FILE_LOG_BLOCK_SIZE]; + + mutex_enter(&(log_sys->mutex)); + + while (log_sys->is_extending) { + /* Another thread is trying to extend already. + Needs to wait for. */ + mutex_exit(&(log_sys->mutex)); + + log_buffer_flush_to_disk(); + + mutex_enter(&(log_sys->mutex)); + + if (srv_log_buffer_size > len / UNIV_PAGE_SIZE) { + /* Already extended enough by the others */ + mutex_exit(&(log_sys->mutex)); + return; + } + } + + log_sys->is_extending = TRUE; + + while (log_sys->n_pending_writes != 0 + || ut_calc_align_down(log_sys->buf_free, + OS_FILE_LOG_BLOCK_SIZE) + != ut_calc_align_down(log_sys->buf_next_to_write, + OS_FILE_LOG_BLOCK_SIZE)) { + /* Buffer might have >1 blocks to write still. */ + mutex_exit(&(log_sys->mutex)); + + log_buffer_flush_to_disk(); + + mutex_enter(&(log_sys->mutex)); + } + + move_start = ut_calc_align_down( + log_sys->buf_free, + OS_FILE_LOG_BLOCK_SIZE); + move_end = log_sys->buf_free; + + /* store the last log block in buffer */ + ut_memcpy(tmp_buf, log_sys->buf + move_start, + move_end - move_start); + + log_sys->buf_free -= move_start; + log_sys->buf_next_to_write -= move_start; + + /* reallocate log buffer */ + srv_log_buffer_size = len / UNIV_PAGE_SIZE + 1; + mem_free(log_sys->buf_ptr); + log_sys->buf_ptr = mem_alloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE); + log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE); + log_sys->buf_size = LOG_BUFFER_SIZE; + memset(log_sys->buf, '\0', LOG_BUFFER_SIZE); + log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO + - LOG_BUF_FLUSH_MARGIN; + + /* restore the last log block */ + ut_memcpy(log_sys->buf, tmp_buf, move_end - move_start); + + ut_ad(log_sys->is_extending); + log_sys->is_extending = FALSE; + + mutex_exit(&(log_sys->mutex)); + + fprintf(stderr, + "InnoDB: innodb_log_buffer_size was extended to %lu.\n", + LOG_BUFFER_SIZE); +} + /************************************************************//** Opens the log for log_write_low. The log must be closed with log_close. @return start lsn of the log record */ @@ -279,10 +358,38 @@ log_open( #endif /* UNIV_LOG_ARCHIVE */ ulint count = 0; - ut_a(len < log->buf_size / 2); + if (len >= log->buf_size / 2) { + DBUG_EXECUTE_IF("ib_log_buffer_is_short_crash", + DBUG_SUICIDE();); + + /* log_buffer is too small. try to extend instead of crash. */ + ut_print_timestamp(stderr); + fprintf(stderr, + " InnoDB: Warning: " + "The transaction log size is too large" + " for innodb_log_buffer_size (%lu >= %lu / 2). " + "Trying to extend it.\n", + len, LOG_BUFFER_SIZE); + + log_buffer_extend((len + 1) * 2); + } loop: ut_ad(!recv_no_log_write); + if (log->is_extending) { + + mutex_exit(&(log->mutex)); + + /* Log buffer size is extending. Writing up to the next block + should wait for the extending finished. */ + + os_thread_sleep(100000); + + ut_ad(++count < 50); + + goto loop; + } + /* Calculate an upper limit for the space the string may take in the log buffer */ @@ -899,6 +1006,7 @@ log_init(void) log_sys->buf = ut_align(log_sys->buf_ptr, OS_FILE_LOG_BLOCK_SIZE); log_sys->buf_size = LOG_BUFFER_SIZE; + log_sys->is_extending = FALSE; memset(log_sys->buf, '\0', LOG_BUFFER_SIZE); diff --git a/log/log0online.c b/log/log0online.c index 5dfe08a4b65..d195a881348 100644 --- a/log/log0online.c +++ b/log/log0online.c @@ -1790,7 +1790,8 @@ log_online_purge_changed_page_bitmaps( mutex_enter(&log_bmp_sys->mutex); } - if (!log_online_setup_bitmap_file_range(&bitmap_files, 0, lsn)) { + if (!log_online_setup_bitmap_file_range(&bitmap_files, 0, + IB_ULONGLONG_MAX)) { if (srv_track_changed_pages) { mutex_exit(&log_bmp_sys->mutex); } @@ -1805,8 +1806,20 @@ log_online_purge_changed_page_bitmaps( } for (i = 0; i < bitmap_files.count; i++) { - if (bitmap_files.files[i].seq_num == 0 - || bitmap_files.files[i].start_lsn >= lsn) { + + /* We consider the end LSN of the current bitmap, derived from + the start LSN of the subsequent bitmap file, to determine + whether to remove the current bitmap. Note that bitmap_files + does not contain an entry for the bitmap past the given LSN so + we must check the boundary conditions as well. For example, + consider 1_0.xdb and 2_10.xdb and querying LSN 5. bitmap_files + will only contain 1_0.xdb and we must not delete it since it + represents LSNs 0-9. */ + if ((i + 1 == bitmap_files.count + || bitmap_files.files[i + 1].seq_num == 0 + || bitmap_files.files[i + 1].start_lsn > lsn) + && (lsn != IB_ULONGLONG_MAX)) { + break; } if (!os_file_delete_if_exists(bitmap_files.files[i].name)) { diff --git a/row/row0sel.c b/row/row0sel.c index a2bc44f5894..91af615a543 100644 --- a/row/row0sel.c +++ b/row/row0sel.c @@ -3099,48 +3099,78 @@ sel_restore_position_for_mysql( mtr_t* mtr) /*!< in: mtr; CAUTION: may commit mtr temporarily! */ { - ibool success; - ulint relative_position; - - relative_position = pcur->rel_pos; + ibool success; success = btr_pcur_restore_position(latch_mode, pcur, mtr); *same_user_rec = success; - if (relative_position == BTR_PCUR_ON) { - if (success) { - return(FALSE); - } - - if (moves_up) { - btr_pcur_move_to_next(pcur, mtr); - } - - return(TRUE); + ut_ad(!success || pcur->rel_pos == BTR_PCUR_ON); +#ifdef UNIV_DEBUG + if (pcur->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC) { + ut_ad(pcur->rel_pos == BTR_PCUR_BEFORE + || pcur->rel_pos == BTR_PCUR_AFTER); + } else { + ut_ad(pcur->pos_state == BTR_PCUR_IS_POSITIONED); + ut_ad((pcur->rel_pos == BTR_PCUR_ON) + == btr_pcur_is_on_user_rec(pcur)); } +#endif - if (relative_position == BTR_PCUR_AFTER - || relative_position == BTR_PCUR_AFTER_LAST_IN_TREE) { + /* The position may need be adjusted for rel_pos and moves_up. */ - if (moves_up) { + switch (pcur->rel_pos) { + case BTR_PCUR_ON: + if (!success && moves_up) { +next: + btr_pcur_move_to_next(pcur, mtr); return(TRUE); } - - if (btr_pcur_is_on_user_rec(pcur)) { + return(!success); + case BTR_PCUR_AFTER_LAST_IN_TREE: + case BTR_PCUR_BEFORE_FIRST_IN_TREE: + return(TRUE); + case BTR_PCUR_AFTER: + /* positioned to record after pcur->old_rec. */ + pcur->pos_state = BTR_PCUR_IS_POSITIONED; +prev: + if (btr_pcur_is_on_user_rec(pcur) && !moves_up) { btr_pcur_move_to_prev(pcur, mtr); } - return(TRUE); + case BTR_PCUR_BEFORE: + /* For non optimistic restoration: + The position is now set to the record before pcur->old_rec. + + For optimistic restoration: + The position also needs to take the previous search_mode into + consideration. */ + + switch (pcur->pos_state) { + case BTR_PCUR_IS_POSITIONED_OPTIMISTIC: + pcur->pos_state = BTR_PCUR_IS_POSITIONED; + if (pcur->search_mode == PAGE_CUR_GE) { + /* Positioned during Greater or Equal search + with BTR_PCUR_BEFORE. Optimistic restore to + the same record. If scanning for lower then + we must move to previous record. + This can happen with: + HANDLER READ idx a = (const); + HANDLER READ idx PREV; */ + goto prev; + } + return(TRUE); + case BTR_PCUR_IS_POSITIONED: + if (moves_up && btr_pcur_is_on_user_rec(pcur)) { + goto next; + } + return(TRUE); + case BTR_PCUR_WAS_POSITIONED: + case BTR_PCUR_NOT_POSITIONED: + break; + } } - - ut_ad(relative_position == BTR_PCUR_BEFORE - || relative_position == BTR_PCUR_BEFORE_FIRST_IN_TREE); - - if (moves_up && btr_pcur_is_on_user_rec(pcur)) { - btr_pcur_move_to_next(pcur, mtr); - } - + ut_ad(0); return(TRUE); } @@ -4141,6 +4171,14 @@ wrong_offs: btr_pcur_store_position(pcur, &mtr); + /* The found record was not a match, but may be used + as NEXT record (index_next). Set the relative position + to BTR_PCUR_BEFORE, to reflect that the position of + the persistent cursor is before the found/stored row + (pcur->old_rec). */ + ut_ad(pcur->rel_pos == BTR_PCUR_ON); + pcur->rel_pos = BTR_PCUR_BEFORE; + err = DB_RECORD_NOT_FOUND; /* ut_print_name(stderr, index->name); fputs(" record not found 3\n", stderr); */ @@ -4180,6 +4218,14 @@ wrong_offs: btr_pcur_store_position(pcur, &mtr); + /* The found record was not a match, but may be used + as NEXT record (index_next). Set the relative position + to BTR_PCUR_BEFORE, to reflect that the position of + the persistent cursor is before the found/stored row + (pcur->old_rec). */ + ut_ad(pcur->rel_pos == BTR_PCUR_ON); + pcur->rel_pos = BTR_PCUR_BEFORE; + err = DB_RECORD_NOT_FOUND; /* ut_print_name(stderr, index->name); fputs(" record not found 4\n", stderr); */ @@ -4757,6 +4803,7 @@ normal_return: if (prebuilt->n_fetch_cached > 0) { row_sel_pop_cached_row_for_mysql(buf, prebuilt); + DEBUG_SYNC_C("row_search_cached_row"); err = DB_SUCCESS; } diff --git a/trx/trx0trx.c b/trx/trx0trx.c index 385a2c9d4f1..09f425cfa55 100644 --- a/trx/trx0trx.c +++ b/trx/trx0trx.c @@ -1306,7 +1306,15 @@ trx_cleanup_at_db_startup( } trx->state = TRX_NOT_STARTED; + + /* This code is executed in a single threaded context, but we acquire + kernel_mutex to satisfy a debug assertion in + trx_release_descriptor(). */ + + mutex_enter(&kernel_mutex); trx_release_descriptor(trx); + mutex_exit(&kernel_mutex); + trx->rseg = NULL; trx->undo_no = 0; trx->last_sql_stat_start.least_undo_no = 0; -- cgit v1.2.1 From c7a5314cb26a2d083b895bab09d9750f76292d3c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 22 Jan 2014 23:59:21 +0100 Subject: update test results, broken by MDEV-5547 fix --- mysql-test/r/plugin_auth.result | 1 - 1 file changed, 1 deletion(-) diff --git a/mysql-test/r/plugin_auth.result b/mysql-test/r/plugin_auth.result index 824d0f6b0ee..8c9657f4d39 100644 --- a/mysql-test/r/plugin_auth.result +++ b/mysql-test/r/plugin_auth.result @@ -302,7 +302,6 @@ FLUSH PRIVILEGES; mysqld is alive # Executing 'mysqldump' # Executing 'mysql_upgrade' -The --upgrade-system-tables option was used, databases won't be touched. # # Bug #59657: Move the client authentication_pam plugin into the # server repository -- cgit v1.2.1 From 3b5f66dbf99c3b640fcc481eab31f5a426a8c42c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 00:02:08 +0100 Subject: fix XtraDB to compile on Windows --- storage/xtradb/log/log0log.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/storage/xtradb/log/log0log.c b/storage/xtradb/log/log0log.c index 2ec50332779..493fa0202f8 100644 --- a/storage/xtradb/log/log0log.c +++ b/storage/xtradb/log/log0log.c @@ -36,6 +36,12 @@ Created 12/9/1995 Heikki Tuuri #include "log0log.ic" #endif +#ifdef HAVE_ALLOCA_H +#include "alloca.h" +#elif defined(HAVE_MALLOC_H) +#include "malloc.h" +#endif + #ifndef UNIV_HOTBACKUP #include "mem0mem.h" #include "buf0buf.h" @@ -273,7 +279,7 @@ log_buffer_extend( { ulint move_start; ulint move_end; - byte tmp_buf[OS_FILE_LOG_BLOCK_SIZE]; + byte *tmp_buf=alloca(OS_FILE_LOG_BLOCK_SIZE); mutex_enter(&(log_sys->mutex)); -- cgit v1.2.1 From b85ab1d464d193b5b75c8e857461c71cc126f5a2 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 00:02:22 +0100 Subject: update debian patches to match the current code state --- .../33_scripts__mysql_create_system_tables__no_test.dpatch | 10 +++++----- debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch | 6 +++--- debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch | 4 ++-- debian/patches/44_scripts__mysql_config__libs.dpatch | 2 +- debian/patches/50_mysql-test__db_test.dpatch | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/debian/patches/33_scripts__mysql_create_system_tables__no_test.dpatch b/debian/patches/33_scripts__mysql_create_system_tables__no_test.dpatch index 4c84e14bf06..a52c198da8d 100755 --- a/debian/patches/33_scripts__mysql_create_system_tables__no_test.dpatch +++ b/debian/patches/33_scripts__mysql_create_system_tables__no_test.dpatch @@ -10,7 +10,7 @@ @DPATCH@ --- old/scripts/mysql_system_tables_data.sql 2008-12-04 22:59:44.000000000 +0100 +++ new/scripts/mysql_system_tables_data.sql 2008-12-04 23:00:07.000000000 +0100 -@@ -26,8 +26,6 @@ +@@ -30,8 +30,6 @@ SELECT LOWER( REPLACE((SELECT REPLACE(@@ -- Fill "db" table with default grants for anyone to -- access database 'test' and 'test_%' if "db" table didn't exist CREATE TEMPORARY TABLE tmp_db LIKE db; @@ -19,12 +19,12 @@ INSERT INTO db SELECT * FROM tmp_db WHERE @had_db_table=0; DROP TABLE tmp_db; -@@ -40,8 +38,6 @@ - REPLACE INTO tmp_user SELECT @current_hostname,'root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'','' FROM dual WHERE LOWER( @current_hostname) != 'localhost'; +@@ -43,8 +41,6 @@ INSERT INTO tmp_user VALUES ('localhost' + REPLACE INTO tmp_user SELECT @current_hostname,'root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'','' FROM dual WHERE @current_hostname != 'localhost'; REPLACE INTO tmp_user VALUES ('127.0.0.1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''); REPLACE INTO tmp_user VALUES ('::1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''); -INSERT INTO tmp_user (host,user) VALUES ('localhost',''); --INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE LOWER(@current_hostname ) != 'localhost'; +-INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE @current_hostname != 'localhost'; INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0; DROP TABLE tmp_user; - + diff --git a/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch b/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch index 81c1baf4375..5a9c3a59698 100755 --- a/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch +++ b/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch @@ -9,7 +9,7 @@ --- a/scripts/mysqld_safe.sh 2013-01-11 16:02:41 +0000 +++ b/scripts/mysqld_safe.sh 2013-01-11 16:03:14 +0000 -@@ -30,7 +30,6 @@ +@@ -32,7 +32,6 @@ err_log= syslog_tag_mysqld=mysqld syslog_tag_mysqld_safe=mysqld_safe @@ -17,7 +17,7 @@ # MySQL-specific environment variable. First off, it's not really a umask, # it's the desired mode. Second, it follows umask(2), not umask(3) in that -@@ -156,7 +155,7 @@ +@@ -163,7 +162,7 @@ eval_log_error () { # sed buffers output (only GNU sed supports a -u (unbuffered) option) # which means that messages may not get sent to syslog until the # mysqld process quits. @@ -26,7 +26,7 @@ ;; *) echo "Internal program error (non-fatal):" \ -@@ -758,6 +757,13 @@ +@@ -805,6 +804,13 @@ then fi # diff --git a/debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch b/debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch index d4e67b321b0..5ab8ab3d3d7 100755 --- a/debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch +++ b/debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch @@ -9,12 +9,12 @@ --- mysql-dfsg-5.1-5.1.23rc.orig/scripts/mysql_install_db.sh 2008-01-29 22:41:20.000000000 +0100 +++ mysql-dfsg-5.1-5.1.23rc/scripts/mysql_install_db.sh 2008-02-28 10:08:11.000000000 +0100 -@@ -306,7 +306,7 @@ +@@ -372,7 +372,7 @@ then fi # Create database directories -for dir in "$ldata" "$ldata/mysql" "$ldata/test" +for dir in "$ldata" "$ldata/mysql" do - if test ! -d $dir + if test ! -d "$dir" then diff --git a/debian/patches/44_scripts__mysql_config__libs.dpatch b/debian/patches/44_scripts__mysql_config__libs.dpatch index 1c15200aead..a8569617dba 100755 --- a/debian/patches/44_scripts__mysql_config__libs.dpatch +++ b/debian/patches/44_scripts__mysql_config__libs.dpatch @@ -8,7 +8,7 @@ diff -Nur mysql-dfsg-5.1-5.1.31.orig/scripts/mysql_config.sh mysql-dfsg-5.1-5.1.31/scripts/mysql_config.sh --- mysql-dfsg-5.1-5.1.31.orig/scripts/mysql_config.sh 2009-01-19 17:30:55.000000000 +0100 +++ mysql-dfsg-5.1-5.1.31/scripts/mysql_config.sh 2009-02-08 17:17:48.000000000 +0100 -@@ -110,10 +110,10 @@ +@@ -106,10 +106,10 @@ fi # Create options # We intentionally add a space to the beginning and end of lib strings, simplifies replace later diff --git a/debian/patches/50_mysql-test__db_test.dpatch b/debian/patches/50_mysql-test__db_test.dpatch index fe356ae46ef..670afbf14ac 100755 --- a/debian/patches/50_mysql-test__db_test.dpatch +++ b/debian/patches/50_mysql-test__db_test.dpatch @@ -10,9 +10,9 @@ --- old/mysql-test/mysql-test-run.pl 2009-06-16 14:24:09.000000000 +0200 +++ new/mysql-test/mysql-test-run.pl 2009-07-04 00:03:34.000000000 +0200 -@@ -2717,6 +2717,11 @@ +@@ -3578,6 +3578,11 @@ sub mysql_install_db { mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql", - $bootstrap_sql_file); + $bootstrap_sql_file); + mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n"); + mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n"); -- cgit v1.2.1 From 4fadce7ec61ec03f4b394c99b22b76dc80bdf9ac Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 00:02:37 +0100 Subject: Change our INSTALL_DEBUG_SYMBOLS cmake function to be less picky and support MySQL CMakeLists.txt files --- cmake/install_macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake index f2e474395dc..b1af0bbdf39 100644 --- a/cmake/install_macros.cmake +++ b/cmake/install_macros.cmake @@ -25,10 +25,10 @@ FUNCTION (INSTALL_DEBUG_SYMBOLS) ) IF(NOT ARG_COMPONENT) - MESSAGE(FATAL_ERROR "No COMPONENT passed to INSTALL_DEBUG_SYMBOLS") + SET(ARG_COMPONENT DebugBinaries) ENDIF() IF(NOT ARG_INSTALL_LOCATION) - MESSAGE(FATAL_ERROR "No INSTALL_LOCATION passed to INSTALL_DEBUG_SYMBOLS") + SET(ARG_INSTALL_LOCATION lib) ENDIF() SET(targets ${ARG_DEFAULT_ARGS}) FOREACH(target ${targets}) -- cgit v1.2.1 From 8d2fba9331011b5e52965cef5428e851796e8fc7 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 00:02:52 +0100 Subject: MDEV-5550 Invalid cmake variable in mysql-test/CMakeLists.txt --- mysql-test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/CMakeLists.txt b/mysql-test/CMakeLists.txt index 16eb2a6f166..227e490331f 100644 --- a/mysql-test/CMakeLists.txt +++ b/mysql-test/CMakeLists.txt @@ -74,7 +74,7 @@ ENDIF() IF(WITH_EMBEDDED_SERVER) SET(TEST_EMBEDDED ${MTR_FORCE} --comment=embedded --timer --embedded-server - --skip-rpl --skip-ndbcluster $(EXP)) + --skip-rpl --skip-ndbcluster ${EXP}) ELSE() SET(TEST_EMBEDDED echo "Can not test embedded, not compiled in") ENDIF() -- cgit v1.2.1 From 0cdf1573b698bad3a2de5b726eaab8a6a015e12a Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 00:03:05 +0100 Subject: MDEV-5421 Assertion `! is_set()' fails on INSERT IGNORE when a table has no partition for a value make print_no_partition_found() to respect MYF(errflag) mysql-test/suite/parts/t/insert_ignore-5421.test: mdev:5421 --- mysql-test/suite/parts/r/insert_ignore-5421.result | 9 +++++++++ mysql-test/suite/parts/t/insert_ignore-5421.test | 12 ++++++++++++ sql/ha_partition.cc | 2 +- sql/partition_info.cc | 6 +++--- sql/partition_info.h | 2 +- 5 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 mysql-test/suite/parts/r/insert_ignore-5421.result create mode 100644 mysql-test/suite/parts/t/insert_ignore-5421.test diff --git a/mysql-test/suite/parts/r/insert_ignore-5421.result b/mysql-test/suite/parts/r/insert_ignore-5421.result new file mode 100644 index 00000000000..6cbb21fe2d7 --- /dev/null +++ b/mysql-test/suite/parts/r/insert_ignore-5421.result @@ -0,0 +1,9 @@ +CREATE TABLE t1 (i INT) ENGINE=MyISAM +PARTITION BY RANGE (i) ( +PARTITION p00 VALUES LESS THAN (1), +PARTITION p01 VALUES LESS THAN (2) +); +INSERT IGNORE INTO t1 VALUES (3); +Warnings: +Warning 1526 Table has no partition for value 3 +DROP TABLE t1; diff --git a/mysql-test/suite/parts/t/insert_ignore-5421.test b/mysql-test/suite/parts/t/insert_ignore-5421.test new file mode 100644 index 00000000000..889f2ccae7b --- /dev/null +++ b/mysql-test/suite/parts/t/insert_ignore-5421.test @@ -0,0 +1,12 @@ +# +# MDEV-5421 Assertion `! is_set()' fails on INSERT IGNORE when a table has no partition for a value +# + +--source include/have_partition.inc +CREATE TABLE t1 (i INT) ENGINE=MyISAM +PARTITION BY RANGE (i) ( + PARTITION p00 VALUES LESS THAN (1), + PARTITION p01 VALUES LESS THAN (2) +); +INSERT IGNORE INTO t1 VALUES (3); +DROP TABLE t1; diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index cdb8690ba62..84a48cfed07 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -7207,7 +7207,7 @@ void ha_partition::print_error(int error, myf errflag) { if (!(thd->lex->alter_info.flags & ALTER_TRUNCATE_PARTITION)) { - m_part_info->print_no_partition_found(table); + m_part_info->print_no_partition_found(table, errflag); DBUG_VOID_RETURN; } } diff --git a/sql/partition_info.cc b/sql/partition_info.cc index 8513ed854b7..1bfa8864cb9 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -1330,7 +1330,7 @@ end: RETURN VALUES */ -void partition_info::print_no_partition_found(TABLE *table_arg) +void partition_info::print_no_partition_found(TABLE *table_arg, myf errflag) { char buf[100]; char *buf_ptr= (char*)&buf; @@ -1344,7 +1344,7 @@ void partition_info::print_no_partition_found(TABLE *table_arg) SELECT_ACL, &table_list, TRUE)) { my_message(ER_NO_PARTITION_FOR_GIVEN_VALUE, - ER(ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT), MYF(0)); + ER(ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT), errflag); } else { @@ -1360,7 +1360,7 @@ void partition_info::print_no_partition_found(TABLE *table_arg) part_expr->unsigned_flag ? 10 : -10); dbug_tmp_restore_column_map(table_arg->read_set, old_map); } - my_error(ER_NO_PARTITION_FOR_GIVEN_VALUE, MYF(0), buf_ptr); + my_error(ER_NO_PARTITION_FOR_GIVEN_VALUE, errflag, buf_ptr); } } diff --git a/sql/partition_info.h b/sql/partition_info.h index d3706c8abf4..ffd6e25c45c 100644 --- a/sql/partition_info.h +++ b/sql/partition_info.h @@ -288,7 +288,7 @@ public: bool check_partition_info(THD *thd, handlerton **eng_type, handler *file, HA_CREATE_INFO *info, bool check_partition_function); - void print_no_partition_found(TABLE *table); + void print_no_partition_found(TABLE *table, myf errflag); void print_debug(const char *str, uint*); Item* get_column_item(Item *item, Field *field); int fix_partition_values(THD *thd, -- cgit v1.2.1 From 5f5f7befe37e942d4fff0771ac79d143ca4500c6 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 23 Jan 2014 11:11:01 +0200 Subject: MDEV-5356: Server crashes in Item_equal::contains on 2nd execution of a PS THD::thd->activate_stmt_arena_if_needed() should be used to temporary activating statement arena instead of direct usage of THD::set_n_backup_active_arena() because possible such scenario: 1) func1 saves current arena and activates copy1 of statement arena 2) func2 saves copy1 of statement arena setup by func1 and activates copy2 3) some changes made for copy 2 4) func2 stores changed copy2 back to statenet arena and activates copy1 5) func1 store unchanged copy1 back to statemnt arena (rewrite changed copy 2 so changes become lost) and activates arena which was before. --- sql/sql_base.cc | 7 ++----- sql/sql_select.cc | 7 ++----- sql/sql_view.cc | 6 +----- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 283d56f6d48..2b0f0daf554 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -7843,12 +7843,9 @@ bool setup_tables(THD *thd, Name_resolution_context *context, { DBUG_ASSERT(table_list->view && table_list->effective_algorithm == VIEW_ALGORITHM_MERGE); - Query_arena *arena= thd->stmt_arena, backup; + Query_arena *arena, backup; + arena= thd->activate_stmt_arena_if_needed(&backup); bool res; - if (arena->is_conventional()) - arena= 0; // For easier test - else - thd->set_n_backup_active_arena(arena, &backup); res= table_list->setup_underlying(thd); if (arena) thd->restore_active_arena(arena, &backup); diff --git a/sql/sql_select.cc b/sql/sql_select.cc index d8bbabd5f63..6434c045da0 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -882,11 +882,8 @@ JOIN::optimize() MEMROOT for prepared statements and stored procedures. */ - Query_arena *arena= thd->stmt_arena, backup; - if (arena->is_conventional()) - arena= 0; // For easier test - else - thd->set_n_backup_active_arena(arena, &backup); + Query_arena *arena, backup; + arena= thd->activate_stmt_arena_if_needed(&backup); sel->first_cond_optimization= 0; diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 27bdfed6bea..8dde595f401 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -1121,11 +1121,7 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table, will be TRUE as far as we make new table cache). */ old_lex= thd->lex; - arena= thd->stmt_arena; - if (arena->is_conventional()) - arena= 0; - else - thd->set_n_backup_active_arena(arena, &backup); + arena= thd->activate_stmt_arena_if_needed(&backup); /* init timestamp */ if (!table->timestamp.str) -- cgit v1.2.1 From 2ff76f67506ec056910835d577e6eb88de106b09 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 23 Jan 2014 11:04:59 +0100 Subject: MDEV-5406 add index to an innodb table with a uniqueness violation crashes mysqld After table->file->add_index() in mysql_alter_table() the table in the engine has the intermediate temporary structure, it's neither the original nor the final table structure (it'll be final after successful table->file->drop_index() call). So, when add_index() fails with a unique key violation, we cannot simply get the failed key number and easily map it to the key name and key structure via table->key_info[key_no]. For now we'll create this "intermediate temporary structure", emulating InnoDB internal rules. This bug and the fix will go away in 10.0 that uses completely different online alter table code. mysql-test/t/alter_table_trans.test: mdev:5406 --- mysql-test/r/alter_table_trans.result | 12 ++++++++++++ mysql-test/t/alter_table_trans.test | 20 +++++++++++++++++++ sql/sql_table.cc | 37 +++++++++++++++++++++++++++-------- 3 files changed, 61 insertions(+), 8 deletions(-) diff --git a/mysql-test/r/alter_table_trans.result b/mysql-test/r/alter_table_trans.result index 3dd5c00d3d8..67ae4075d57 100644 --- a/mysql-test/r/alter_table_trans.result +++ b/mysql-test/r/alter_table_trans.result @@ -4,3 +4,15 @@ ALTER TABLE t1 RENAME TO t2, DISABLE KEYS; Warnings: Note 1031 Table storage engine for 't1' doesn't have this option DROP TABLE t2; +CREATE TABLE t1 ( +col4 text NOT NULL, +col2 int(11) NOT NULL DEFAULT '0', +col3 int(11) DEFAULT NULL, +extra int(11) DEFAULT NULL, +KEY idx (col4(10)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +insert t1 values (repeat('1', 8193),3,1,1); +insert t1 values (repeat('3', 8193),3,1,1); +ALTER TABLE t1 ADD PRIMARY KEY (col4(10)) , ADD UNIQUE KEY uidx (col3); +ERROR 23000: Duplicate entry '1' for key 'uidx' +DROP TABLE t1; diff --git a/mysql-test/t/alter_table_trans.test b/mysql-test/t/alter_table_trans.test index 9096a392af4..29b9b4c212f 100644 --- a/mysql-test/t/alter_table_trans.test +++ b/mysql-test/t/alter_table_trans.test @@ -13,3 +13,23 @@ drop table if exists t1,t2; CREATE TABLE t1 (a INT, INDEX(a)) engine=innodb; ALTER TABLE t1 RENAME TO t2, DISABLE KEYS; DROP TABLE t2; + +# +# MDEV-5406 add index to an innodb table with a uniqueness violation crashes mysqld +# + +CREATE TABLE t1 ( + col4 text NOT NULL, + col2 int(11) NOT NULL DEFAULT '0', + col3 int(11) DEFAULT NULL, + extra int(11) DEFAULT NULL, + KEY idx (col4(10)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +insert t1 values (repeat('1', 8193),3,1,1); +insert t1 values (repeat('3', 8193),3,1,1); +--error ER_DUP_ENTRY +ALTER TABLE t1 ADD PRIMARY KEY (col4(10)) , ADD UNIQUE KEY uidx (col3); +DROP TABLE t1; + + diff --git a/sql/sql_table.cc b/sql/sql_table.cc index eda178fcc64..c9f754a204f 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -6893,14 +6893,35 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, /* Only report error if handler has not already reported an error */ if (!thd->is_error()) { - /* - Exchange the key_info for the error message. If we exchange - key number by key name in the message later, we need correct info. - */ - KEY *save_key_info= table->key_info; - table->key_info= key_info; - table->file->print_error(error, MYF(0)); - table->key_info= save_key_info; + /* + HACK HACK HACK + Prepare the list of keys for an error message. + It must match what the engine does internally in ::add_index(). + Here we emulate what innobase_create_key_def() does. + Luckily, in 10.0 this will go away. + */ + KEY *save_key_info= table->key_info; + uint add_cnt= index_add_count, old_cnt= table->s->keys; + KEY *merged= (KEY*)thd->alloc((old_cnt + add_cnt) * sizeof(KEY)); +#define is_PK(K) (!my_strcasecmp(system_charset_info, (K)->name, "PRIMARY")) + + if (is_PK(key_info)) + { + merged[0]= key_info[0]; + if (is_PK(table->key_info)) + { + old_cnt--; + table->key_info++; + } + memcpy(merged + 1, table->key_info, old_cnt * sizeof(KEY)); + memcpy(merged + old_cnt + 1, key_info + 1, (add_cnt - 1) * sizeof(KEY)); + } + else + merged= key_info; + + table->key_info= merged; + table->file->print_error(error, MYF(0)); + table->key_info= save_key_info; } goto err_new_table_cleanup; } -- cgit v1.2.1 From f0fa66a26de19d4f31a0b5466ac064650c81464a Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Thu, 23 Jan 2014 15:41:51 +0400 Subject: MDEV-5368: Server crashes in Item_in_subselect::optimize on ... - convert_subq_to_sj() must connect child select's tables into parent select's TABLE_LIST::next_local chain. - The problem was that it took child's leaf_tables.head() which is different. This could cause certain tables (in this bug's case, child select's non-merged semi-join) not to be present in TABLE_LIST::next_local chain. Which would cause non-merged semi-join not to be initialized in setup_tables(), which would lead to NULL pointer dereference. --- mysql-test/r/subselect_mat.result | 18 ++++++++++++++++++ mysql-test/r/subselect_sj_mat.result | 18 ++++++++++++++++++ mysql-test/t/subselect_sj_mat.test | 20 ++++++++++++++++++++ sql/opt_subselect.cc | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/subselect_mat.result b/mysql-test/r/subselect_mat.result index 62ec0955e88..ce93f70df63 100644 --- a/mysql-test/r/subselect_mat.result +++ b/mysql-test/r/subselect_mat.result @@ -2058,6 +2058,24 @@ CA ML CA ML CA ML RO ML DROP TABLE t1,t2; set join_cache_level=@tmp_mdev5056; +# +# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +# execution of PS with IN subqueries, materialization+semijoin +# +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; +EXECUTE stmt; +a +EXECUTE stmt; +a +DROP TABLE t1, t2; +DROP VIEW v2; # End of 5.5 tests set @subselect_mat_test_optimizer_switch_value=null; set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off'; diff --git a/mysql-test/r/subselect_sj_mat.result b/mysql-test/r/subselect_sj_mat.result index 38ab07882de..2ccb108eb38 100644 --- a/mysql-test/r/subselect_sj_mat.result +++ b/mysql-test/r/subselect_sj_mat.result @@ -2098,4 +2098,22 @@ CA ML CA ML CA ML RO ML DROP TABLE t1,t2; set join_cache_level=@tmp_mdev5056; +# +# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +# execution of PS with IN subqueries, materialization+semijoin +# +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; +EXECUTE stmt; +a +EXECUTE stmt; +a +DROP TABLE t1, t2; +DROP VIEW v2; # End of 5.5 tests diff --git a/mysql-test/t/subselect_sj_mat.test b/mysql-test/t/subselect_sj_mat.test index 58831c4ffb3..4194c0a9e00 100644 --- a/mysql-test/t/subselect_sj_mat.test +++ b/mysql-test/t/subselect_sj_mat.test @@ -1750,5 +1750,25 @@ WHERE ( alias2.c2, alias1.c1 ) IN ( SELECT c4, c3 FROM t2 ) AND alias1.c1 IN ( S DROP TABLE t1,t2; set join_cache_level=@tmp_mdev5056; +--echo # +--echo # MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +--echo # execution of PS with IN subqueries, materialization+semijoin +--echo # +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); + +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); + +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; + +EXECUTE stmt; +EXECUTE stmt; +DROP TABLE t1, t2; +DROP VIEW v2; + --echo # End of 5.5 tests diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc index ec56994f16a..b8780b4c4ca 100644 --- a/sql/opt_subselect.cc +++ b/sql/opt_subselect.cc @@ -1525,7 +1525,7 @@ static bool convert_subq_to_sj(JOIN *parent_join, Item_in_subselect *subq_pred) for (tl= (TABLE_LIST*)(parent_lex->table_list.first); tl->next_local; tl= tl->next_local) {} - tl->next_local= subq_lex->leaf_tables.head(); + tl->next_local= subq_lex->join->tables_list; /* A theory: no need to re-connect the next_global chain */ -- cgit v1.2.1 From 519c7305ac4e1e4bafe0acc56764fa40a0e621ab Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Thu, 23 Jan 2014 21:26:04 +0400 Subject: MDEV-5368: Server crashes in Item_in_subselect::optimize on ... - convert_subq_to_sj() must connect child select's tables into parent select's TABLE_LIST::next_local chain. - The problem was that it took child's leaf_tables.head() which is different. This could cause certain tables (in this bug's case, child select's non-merged semi-join) not to be present in TABLE_LIST::next_local chain. Which would cause non-merged semi-join not to be initialized in setup_tables(), which would lead to NULL pointer dereference. --- mysql-test/r/subselect_mat.result | 18 ++++++++++++++++++ mysql-test/r/subselect_sj_mat.result | 18 ++++++++++++++++++ mysql-test/t/subselect_sj_mat.test | 20 ++++++++++++++++++++ sql/opt_subselect.cc | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/subselect_mat.result b/mysql-test/r/subselect_mat.result index 66b94af5d44..c47881d5434 100644 --- a/mysql-test/r/subselect_mat.result +++ b/mysql-test/r/subselect_mat.result @@ -2023,6 +2023,24 @@ INSERT INTO t1 VALUES (1,3,5),(2,4,6); SELECT * FROM t1 WHERE 8 IN (SELECT MIN(pk) FROM t1) AND (pk = a OR pk = b); pk a b DROP TABLE t1; +# +# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +# execution of PS with IN subqueries, materialization+semijoin +# +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; +EXECUTE stmt; +a +EXECUTE stmt; +a +DROP TABLE t1, t2; +DROP VIEW v2; # End of 5.3 tests set @subselect_mat_test_optimizer_switch_value=null; set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off'; diff --git a/mysql-test/r/subselect_sj_mat.result b/mysql-test/r/subselect_sj_mat.result index 61ebe3cf5c3..f267f32c887 100644 --- a/mysql-test/r/subselect_sj_mat.result +++ b/mysql-test/r/subselect_sj_mat.result @@ -2063,4 +2063,22 @@ INSERT INTO t1 VALUES (1,3,5),(2,4,6); SELECT * FROM t1 WHERE 8 IN (SELECT MIN(pk) FROM t1) AND (pk = a OR pk = b); pk a b DROP TABLE t1; +# +# MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +# execution of PS with IN subqueries, materialization+semijoin +# +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; +EXECUTE stmt; +a +EXECUTE stmt; +a +DROP TABLE t1, t2; +DROP VIEW v2; # End of 5.3 tests diff --git a/mysql-test/t/subselect_sj_mat.test b/mysql-test/t/subselect_sj_mat.test index 840e5436a56..bf5360dd4a7 100644 --- a/mysql-test/t/subselect_sj_mat.test +++ b/mysql-test/t/subselect_sj_mat.test @@ -1706,4 +1706,24 @@ INSERT INTO t1 VALUES (1,3,5),(2,4,6); SELECT * FROM t1 WHERE 8 IN (SELECT MIN(pk) FROM t1) AND (pk = a OR pk = b); DROP TABLE t1; +--echo # +--echo # MDEV-5368: Server crashes in Item_in_subselect::optimize on 2nd +--echo # execution of PS with IN subqueries, materialization+semijoin +--echo # +CREATE TABLE t1 (a INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(3); + +CREATE TABLE t2 (b INT) ENGINE=MyISAM; +CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2; +INSERT INTO t2 VALUES (8),(9); + +PREPARE stmt FROM " +SELECT * FROM t1 WHERE 1 IN ( SELECT b FROM v2 WHERE 2 IN ( SELECT MAX(a) FROM t1 ) ) +"; + +EXECUTE stmt; +EXECUTE stmt; +DROP TABLE t1, t2; +DROP VIEW v2; + --echo # End of 5.3 tests diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc index adb67e5169a..07dbb3991b0 100644 --- a/sql/opt_subselect.cc +++ b/sql/opt_subselect.cc @@ -1509,7 +1509,7 @@ static bool convert_subq_to_sj(JOIN *parent_join, Item_in_subselect *subq_pred) for (tl= (TABLE_LIST*)(parent_lex->table_list.first); tl->next_local; tl= tl->next_local) {} - tl->next_local= subq_lex->leaf_tables.head(); + tl->next_local= subq_lex->join->tables_list; /* A theory: no need to re-connect the next_global chain */ -- cgit v1.2.1 From 8f3e1bfc92f725813a6c82f9be2a601c9701d712 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Thu, 23 Jan 2014 22:21:02 +0400 Subject: MDEV-5419 no audit events for warnings converted to errors in the strict mode. Plugins get error notifications only when my_message_sql() is called. But errors are launched with THD::raise_condition() calls in other places. These are push_warning(), implementations of SIGNAL and RESIGNAL commands. So it makes sence to notify plugins there in THD::raise_condition(). --- mysql-test/suite/plugins/r/sql_error_log.result | 45 ++++++++++++++++++++ mysql-test/suite/plugins/t/sql_error_log.test | 55 +++++++++++++++++++++++++ sql/mysqld.cc | 3 +- sql/sql_class.cc | 1 + 4 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 mysql-test/suite/plugins/r/sql_error_log.result create mode 100644 mysql-test/suite/plugins/t/sql_error_log.test diff --git a/mysql-test/suite/plugins/r/sql_error_log.result b/mysql-test/suite/plugins/r/sql_error_log.result new file mode 100644 index 00000000000..f3e6716302b --- /dev/null +++ b/mysql-test/suite/plugins/r/sql_error_log.result @@ -0,0 +1,45 @@ +drop procedure if exists test_error; +drop table if exists t1; +install plugin SQL_ERROR_LOG soname 'sql_errlog'; +show variables like 'sql_error_log%'; +Variable_name Value +sql_error_log_filename sql_errors.log +sql_error_log_rate 1 +sql_error_log_rotate OFF +sql_error_log_rotations 9 +sql_error_log_size_limit 1000000 +set global sql_error_log_rate=1; +select * from t_doesnt_exist; +ERROR 42S02: Table 'test.t_doesnt_exist' doesn't exist +syntax_error_query; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'syntax_error_query' at line 1 +CREATE PROCEDURE test_error() +BEGIN +DECLARE CONTINUE HANDLER +FOR 1146 +BEGIN +RESIGNAL SQLSTATE '40000' SET +MYSQL_ERRNO = 1000, +MESSAGE_TEXT = 'new message'; +END; +SELECT `c` FROM `temptab`; +END| +CALL test_error(); +ERROR 40000: new message +drop procedure test_error; +SET SQL_MODE = STRICT_ALL_TABLES; +create table t1(id int); +insert into t1 values ('aa'); +ERROR 22007: Incorrect integer value: 'aa' for column 'id' at row 1 +SET SQL_MODE = ''; +drop table t1; +uninstall plugin SQL_ERROR_LOG; +Warnings: +Warning 1620 Plugin is busy and will be uninstalled on shutdown +TIME HOSTNAME ERROR 1146: Table 'test.t_doesnt_exist' doesn't exist : select * from t_doesnt_exist +TIME HOSTNAME ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'syntax_error_query' at line 1 : syntax_error_query +TIME HOSTNAME ERROR 1146: Table 'test.temptab' doesn't exist : SELECT `c` FROM `temptab` +TIME HOSTNAME ERROR 1000: new message : RESIGNAL SQLSTATE '40000' SET +MYSQL_ERRNO = 1000, +MESSAGE_TEXT = 'new message' +TIME HOSTNAME ERROR 1366: Incorrect integer value: 'aa' for column 'id' at row 1 : insert into t1 values ('aa') diff --git a/mysql-test/suite/plugins/t/sql_error_log.test b/mysql-test/suite/plugins/t/sql_error_log.test new file mode 100644 index 00000000000..73f3dd34da9 --- /dev/null +++ b/mysql-test/suite/plugins/t/sql_error_log.test @@ -0,0 +1,55 @@ + +--source include/not_embedded.inc + +if (!$SQL_ERRLOG_SO) { + skip No SQL_ERROR_LOG plugin; +} + +--disable_warnings +drop procedure if exists test_error; +drop table if exists t1; +--enable_warnings + +install plugin SQL_ERROR_LOG soname 'sql_errlog'; + +show variables like 'sql_error_log%'; +set global sql_error_log_rate=1; +--error ER_NO_SUCH_TABLE +select * from t_doesnt_exist; +--error 1064 +syntax_error_query; + +delimiter |; + +CREATE PROCEDURE test_error() +BEGIN +DECLARE CONTINUE HANDLER +FOR 1146 +BEGIN +RESIGNAL SQLSTATE '40000' SET +MYSQL_ERRNO = 1000, +MESSAGE_TEXT = 'new message'; +END; +SELECT `c` FROM `temptab`; +END| + +delimiter ;| + +--error 1000 +CALL test_error(); +drop procedure test_error; + +SET SQL_MODE = STRICT_ALL_TABLES; +create table t1(id int); +--error 1366 +insert into t1 values ('aa'); +SET SQL_MODE = ''; +drop table t1; + +uninstall plugin SQL_ERROR_LOG; + +let $MYSQLD_DATADIR= `SELECT @@datadir`; +# replace the timestamp and the hostname with constant values +--replace_regex /[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^E]*/TIME HOSTNAME / +cat_file $MYSQLD_DATADIR/sql_errors.log; + diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 73995980ffc..b41cb8126f1 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3165,7 +3165,6 @@ void my_message_sql(uint error, const char *str, myf MyFlags) DBUG_ASSERT(str != NULL); DBUG_ASSERT(error != 0); - mysql_audit_general(thd, MYSQL_AUDIT_GENERAL_ERROR, error, str); if (MyFlags & ME_JUST_INFO) { level= MYSQL_ERROR::WARN_LEVEL_NOTE; @@ -3188,6 +3187,8 @@ void my_message_sql(uint error, const char *str, myf MyFlags) thd->is_fatal_error= 1; (void) thd->raise_condition(error, NULL, level, str); } + else + mysql_audit_general(0, MYSQL_AUDIT_GENERAL_ERROR, error, str); /* When simulating OOM, skip writing to error log to avoid mtr errors */ DBUG_EXECUTE_IF("simulate_out_of_memory", DBUG_VOID_RETURN;); diff --git a/sql/sql_class.cc b/sql/sql_class.cc index f68facb5d14..732840c8d8d 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1145,6 +1145,7 @@ MYSQL_ERROR* THD::raise_condition(uint sql_errno, got_warning= 1; break; case MYSQL_ERROR::WARN_LEVEL_ERROR: + mysql_audit_general(this, MYSQL_AUDIT_GENERAL_ERROR, sql_errno, msg); break; default: DBUG_ASSERT(FALSE); -- cgit v1.2.1 From 5a7ae59305763c1da08f12b65d1dca2a70eb45a4 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Fri, 24 Jan 2014 06:07:22 +0400 Subject: MDEV-5419 no audit events for warnings converted to errors in the strict mode. small fix in the --replace_regex template. --- mysql-test/suite/plugins/t/sql_error_log.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/suite/plugins/t/sql_error_log.test b/mysql-test/suite/plugins/t/sql_error_log.test index 73f3dd34da9..8d04720aac3 100644 --- a/mysql-test/suite/plugins/t/sql_error_log.test +++ b/mysql-test/suite/plugins/t/sql_error_log.test @@ -50,6 +50,6 @@ uninstall plugin SQL_ERROR_LOG; let $MYSQLD_DATADIR= `SELECT @@datadir`; # replace the timestamp and the hostname with constant values ---replace_regex /[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^E]*/TIME HOSTNAME / +--replace_regex /[1-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [ 0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^E]*/TIME HOSTNAME / cat_file $MYSQLD_DATADIR/sql_errors.log; -- cgit v1.2.1 From 7335c6f2a4319f431f22b79f664881ca265026b0 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Fri, 24 Jan 2014 14:30:19 +0200 Subject: Fixed failures in tokudb test cases storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result: Speed up test storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result: Speed up test Fix results storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result: Ensure that mysql.proc is properly closed storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test: Speed up test storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test: Speed up test Accept both index and range scan for one query storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test: Ensure that mysql.proc is properly closed --- storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result | 2 ++ storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result | 4 +++- storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result | 1 + storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test | 2 ++ storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test | 4 ++++ storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test | 3 +++ 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result b/storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result index 10cdb4767f6..c850de928b9 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result +++ b/storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result @@ -1,6 +1,7 @@ drop table if exists t; set default_storage_engine='innodb'; create table t (id bigint primary key, x bigint not null); +begin; insert into t values (0,0); insert into t values (1,0); insert into t values (2,0); @@ -10001,6 +10002,7 @@ insert into t values (9996,0); insert into t values (9997,0); insert into t values (9998,0); insert into t values (9999,0); +commit; explain select id from t where id>0 limit 10; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where; Using index diff --git a/storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result b/storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result index b642c8d6963..07e8b37c263 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result +++ b/storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result @@ -1,6 +1,7 @@ drop table if exists t; set default_storage_engine='tokudb'; create table t (id bigint primary key, x bigint not null); +begin; insert into t values (0,0); insert into t values (1,0); insert into t values (2,0); @@ -10001,9 +10002,10 @@ insert into t values (9996,0); insert into t values (9997,0); insert into t values (9998,0); insert into t values (9999,0); +commit; explain select id from t where id>0 limit 10; id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where; Using index +1 SIMPLE t index_or_range PRIMARY PRIMARY 8 NULL # Using where; Using index_or_range explain select * from t where id>0 limit 10; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where diff --git a/storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result b/storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result index 955d7a6212a..904a25f6424 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result +++ b/storage/tokudb/mysql-test/tokudb_bugs/r/xa-6.result @@ -1,4 +1,5 @@ drop table if exists t1; +FLUSH TABLES; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb; xa begin 'a','ab'; insert into t1 values (1); diff --git a/storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test b/storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test index dec1f39eb97..d629c2cfe1c 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test +++ b/storage/tokudb/mysql-test/tokudb_bugs/t/5733_innodb.test @@ -11,12 +11,14 @@ set default_storage_engine='innodb'; create table t (id bigint primary key, x bigint not null); +begin; let $i=0; let $n=10000; while ($i < $n) { eval insert into t values ($i,0); inc $i; } +commit; replace_column 9 #; explain select id from t where id>0 limit 10; diff --git a/storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test b/storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test index e0e0fc886fd..2e30c839905 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test +++ b/storage/tokudb/mysql-test/tokudb_bugs/t/5733_tokudb.test @@ -11,14 +11,18 @@ set default_storage_engine='tokudb'; create table t (id bigint primary key, x bigint not null); +begin; let $i=0; let $n=10000; while ($i < $n) { eval insert into t values ($i,0); inc $i; } +commit; +# TokuDB may do index or range scan on this. Both are ok replace_column 9 #; +--replace_result index index_or_range range index_or_range explain select id from t where id>0 limit 10; replace_column 9 #; diff --git a/storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test b/storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test index ce3ad5e326b..cb16357ff11 100644 --- a/storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test +++ b/storage/tokudb/mysql-test/tokudb_bugs/t/xa-6.test @@ -5,6 +5,9 @@ drop table if exists t1; --enable_warnings +# Ensure that all tables are properly closed before we start simulating +# crashes +FLUSH TABLES; # test that simple xa commands work with TokuDB CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb; -- cgit v1.2.1 From d15b3386db8de5d2562c78a6e02d404757c787f9 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Fri, 24 Jan 2014 14:50:18 +0200 Subject: Fix for MDEV-5531: double call procedure in one session - hard shutdown the server Main fix was to not cache derivied tables as they may be temporary tables that are deleted before the next query. This was a bit tricky as Item_field::fix_fields depended on cached_tables to be set to resolve some columns. mysql-test/r/sp-bugs.result: Added test case mysql-test/t/sp-bugs.test: Added test case sql/item.cc: Fixed fix_outer_field to handle case where found field did not have in cached_table Idea is that if cached_table is not avaliable, use from_field->table->pos_in_table_list instead sql/records.cc: Also accept INTERNAL_TMP_TABLE for memmap sql/sql_base.cc: More DBUG_PRINT Fixed that setup_natural_join_row_types() is not run twice. Original code modified context->first_name_resolution_table also for second executions. This was wrong as this could give wrong results if some joins had been optimized away between calls. sql/sql_derived.cc: Mark derived tables as internal temporary tables (INTERNAL_TMP_TABLE), not as NON_TRANSACTIONAL_TMP_TABLE. This is more correct as the tables are not visible by the end user. sql/sql_insert.cc: Reset pos_in_table_list before calling fix_fields. One of the consequences of the change of not caching all generated tables in Item_ident is that pos_in_table_list needs to be correct in calls to fix_fields. sql/sql_lex.cc: More DBUG_PRINT sql/sql_parse.cc: Don't cache derivied tables as they may be temporary tables that are deleted before the next query sql/sql_select.cc: Reset table_vector. This was required as some code checked the vector to see if temporary tables had already been created. sql/table.cc: Mark tables with field translations as cacheable (as these will not disapper between stmt executions. --- mysql-test/r/sp-bugs.result | 46 ++++++++++++++++++++++++++++++++++ mysql-test/t/sp-bugs.test | 57 ++++++++++++++++++++++++++++++++++++++++++ sql/item.cc | 54 +++++++++++++++++++++++++++++++--------- sql/records.cc | 3 ++- sql/sql_base.cc | 60 ++++++++++++++++++++++++++++----------------- sql/sql_derived.cc | 2 +- sql/sql_insert.cc | 3 +++ sql/sql_lex.cc | 10 ++++++-- sql/sql_parse.cc | 7 +++++- sql/sql_select.cc | 8 +++--- sql/table.cc | 9 ++++--- 11 files changed, 213 insertions(+), 46 deletions(-) diff --git a/mysql-test/r/sp-bugs.result b/mysql-test/r/sp-bugs.result index 9d9deaebcc3..2442adc46b3 100644 --- a/mysql-test/r/sp-bugs.result +++ b/mysql-test/r/sp-bugs.result @@ -222,3 +222,49 @@ testf_bug11763507 DROP PROCEDURE testp_bug11763507; DROP FUNCTION testf_bug11763507; #END OF BUG#11763507 test. +# +# MDEV-5531 double call procedure in one session +# +CREATE TABLE `t1` ( +`id` int(10) unsigned NOT NULL AUTO_INCREMENT, +`create_ts` int(10) unsigned DEFAULT '0', +PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; +CREATE PROCEDURE test_5531 (IN step TINYINT(1)) +BEGIN +DECLARE counts INT DEFAULT 0; +DECLARE cur1 CURSOR FOR +SELECT ct.id +FROM (SELECT NULL) AS z +JOIN ( +SELECT id +FROM `t1` + LIMIT 10 +) AS ct +JOIN (SELECT NULL) AS x ON( +EXISTS( +SELECT 1 +FROM `t1` + WHERE id=ct.id +LIMIT 1 +) +); +IF step=1 THEN +TRUNCATE t1; +REPEAT +INSERT INTO `t1` + (create_ts) VALUES +(UNIX_TIMESTAMP()); +SET counts=counts+1; +UNTIL counts>150 END REPEAT; +SET max_sp_recursion_depth=1; +CALL test_5531(2); +SET max_sp_recursion_depth=2; +CALL test_5531(2); +ELSEIF step=2 THEN +OPEN cur1; CLOSE cur1; +END IF; +END $$ +CALL test_5531(1); +DROP PROCEDURE test_5531; +DROP TABLE t1; diff --git a/mysql-test/t/sp-bugs.test b/mysql-test/t/sp-bugs.test index 3ab1689e8b2..67924996423 100644 --- a/mysql-test/t/sp-bugs.test +++ b/mysql-test/t/sp-bugs.test @@ -228,3 +228,60 @@ DROP PROCEDURE testp_bug11763507; DROP FUNCTION testf_bug11763507; --echo #END OF BUG#11763507 test. + +--echo # +--echo # MDEV-5531 double call procedure in one session +--echo # + +CREATE TABLE `t1` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `create_ts` int(10) unsigned DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; + +DELIMITER $$; + +CREATE PROCEDURE test_5531 (IN step TINYINT(1)) +BEGIN + DECLARE counts INT DEFAULT 0; + DECLARE cur1 CURSOR FOR + + SELECT ct.id + FROM (SELECT NULL) AS z + JOIN ( + SELECT id + FROM `t1` + LIMIT 10 + ) AS ct + JOIN (SELECT NULL) AS x ON( + EXISTS( + SELECT 1 + FROM `t1` + WHERE id=ct.id + LIMIT 1 + ) + ); + + IF step=1 THEN + TRUNCATE t1; + REPEAT + INSERT INTO `t1` + (create_ts) VALUES + (UNIX_TIMESTAMP()); + + SET counts=counts+1; + UNTIL counts>150 END REPEAT; + + SET max_sp_recursion_depth=1; + + CALL test_5531(2); + SET max_sp_recursion_depth=2; + CALL test_5531(2); + ELSEIF step=2 THEN + OPEN cur1; CLOSE cur1; + END IF; +END $$ +DELIMITER ;$$ +CALL test_5531(1); +DROP PROCEDURE test_5531; +DROP TABLE t1; diff --git a/sql/item.cc b/sql/item.cc index bfe065ceced..7b1ca3c0849 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -4700,6 +4700,12 @@ bool is_outer_table(TABLE_LIST *table, SELECT_LEX *select) /** Resolve the name of an outer select column reference. + @param[in] thd current thread + @param[in,out] from_field found field reference or (Field*)not_found_field + @param[in,out] reference view column if this item was resolved to a + view column + + @description The method resolves the column reference represented by 'this' as a column present in outer selects that contain current select. @@ -4709,10 +4715,16 @@ bool is_outer_table(TABLE_LIST *table, SELECT_LEX *select) current select as dependent. The found reference of field should be provided in 'from_field'. - @param[in] thd current thread - @param[in,out] from_field found field reference or (Field*)not_found_field - @param[in,out] reference view column if this item was resolved to a - view column + The cache is critical for prepared statements of type: + + SELECT a FROM (SELECT a FROM test.t1) AS s1 NATURAL JOIN t2 AS s2; + + This is internally converted to a join similar to + + SELECT a FROM t1 AS s1,t2 AS s2 WHERE t2.a=t1.a; + + Without the cache, we would on re-prepare not know if 'a' did match + s1.a or s2.a. @note This is the inner loop of Item_field::fix_fields: @@ -4742,7 +4754,12 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference) enum_parsing_place place= NO_MATTER; bool field_found= (*from_field != not_found_field); bool upward_lookup= FALSE; + TABLE_LIST *table_list; + /* Calulate the TABLE_LIST for the table */ + table_list= (cached_table ? cached_table : + field_found && (*from_field) != view_ref_found ? + (*from_field)->table->pos_in_table_list : 0); /* If there are outer contexts (outer selects, but current select is not derived table or view) try to resolve this reference in the @@ -4761,6 +4778,15 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference) if (current_sel->master_unit()->first_select()->linkage != DERIVED_TABLE_TYPE) outer_context= context->outer_context; + + /* + This assert is to ensure we have an outer contex when *from_field + is set. + If this would not be the case, we would assert in mark_as_dependent + as last_checked_countex == context + */ + DBUG_ASSERT(outer_context || !*from_field || + *from_field == not_found_field); for (; outer_context; outer_context= outer_context->outer_context) @@ -4777,7 +4803,7 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference) to find_field_in_tables(). Only need to find appropriate context. */ if (field_found && outer_context->select_lex != - cached_table->select_lex) + table_list->select_lex) continue; /* In case of a view, find_field_in_tables() writes the pointer to @@ -4976,9 +5002,9 @@ Item_field::fix_outer_field(THD *thd, Field **from_field, Item **reference) if (last_checked_context->select_lex->having_fix_field) { Item_ref *rf; - rf= new Item_ref(context, - (cached_table->db[0] ? cached_table->db : 0), - (char*) cached_table->alias, (char*) field_name); + rf= new Item_ref(context, (*from_field)->table->s->db.str, + (*from_field)->table->alias.c_ptr(), + (char*) field_name); if (!rf) return -1; thd->change_item_tree(reference, rf); @@ -5049,6 +5075,7 @@ bool Item_field::fix_fields(THD *thd, Item **reference) if (!field) // If field is not checked { + TABLE_LIST *table_list; /* In case of view, find_field_in_tables() write pointer to view field expression to 'reference', i.e. it substitute that expression instead @@ -5134,11 +5161,14 @@ bool Item_field::fix_fields(THD *thd, Item **reference) else if (!from_field) goto error; - if (!outer_fixed && cached_table && cached_table->select_lex && + table_list= (cached_table ? cached_table : + from_field != view_ref_found ? + from_field->table->pos_in_table_list : 0); + if (!outer_fixed && table_list && table_list->select_lex && context->select_lex && - cached_table->select_lex != context->select_lex && - !context->select_lex->is_merged_child_of(cached_table->select_lex) && - is_outer_table(cached_table, context->select_lex)) + table_list->select_lex != context->select_lex && + !context->select_lex->is_merged_child_of(table_list->select_lex) && + is_outer_table(table_list, context->select_lex)) { int ret; if ((ret= fix_outer_field(thd, &from_field, reference)) < 0) diff --git a/sql/records.cc b/sql/records.cc index 2f74030d5c4..aca950d7435 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -189,7 +189,8 @@ bool init_read_record(READ_RECORD *info,THD *thd, TABLE *table, info->table=table; info->forms= &info->table; /* Only one table */ - if (table->s->tmp_table == NON_TRANSACTIONAL_TMP_TABLE && + if ((table->s->tmp_table == INTERNAL_TMP_TABLE || + table->s->tmp_table == NON_TRANSACTIONAL_TMP_TABLE) && !table->sort.addon_field) (void) table->file->extra(HA_EXTRA_MMAP); diff --git a/sql/sql_base.cc b/sql/sql_base.cc index f689d96b4cf..84e5ee49fc4 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -235,6 +235,7 @@ static void check_unused(THD *thd) uint count= 0, open_files= 0, idx= 0; TABLE *cur_link, *start_link, *entry; TABLE_SHARE *share; + DBUG_ENTER("check_unused"); if ((start_link=cur_link=unused_tables)) { @@ -243,7 +244,7 @@ static void check_unused(THD *thd) if (cur_link != cur_link->next->prev || cur_link != cur_link->prev->next) { DBUG_PRINT("error",("Unused_links aren't linked properly")); /* purecov: inspected */ - return; /* purecov: inspected */ + DBUG_VOID_RETURN; /* purecov: inspected */ } } while (count++ < table_cache_count && (cur_link=cur_link->next) != start_link); @@ -291,6 +292,7 @@ static void check_unused(THD *thd) DBUG_PRINT("error",("Unused_links doesn't match open_cache: diff: %d", /* purecov: inspected */ count)); /* purecov: inspected */ } + DBUG_VOID_RETURN; } #else #define check_unused(A) @@ -3103,6 +3105,7 @@ retry_share: MDL_deadlock_handler mdl_deadlock_handler(ot_ctx); bool wait_result; + DBUG_PRINT("info", ("old version of table share found")); release_table_share(share); mysql_mutex_unlock(&LOCK_open); @@ -3127,6 +3130,7 @@ retry_share: and try to reopen them. Note: refresh_version is currently changed only during FLUSH TABLES. */ + DBUG_PRINT("info", ("share version differs between tables")); release_table_share(share); mysql_mutex_unlock(&LOCK_open); (void)ot_ctx->request_backoff_action(Open_table_context::OT_REOPEN_TABLES, @@ -3139,12 +3143,17 @@ retry_share: { table= share->free_tables.front(); table_def_use_table(thd, table); - /* We need to release share as we have EXTRA reference to it in our hands. */ + /* + We need to release share as we have EXTRA reference to it in our hands. + */ + DBUG_PRINT("info", ("release temporarily acquired table share")); release_table_share(share); } else { - /* We have too many TABLE instances around let us try to get rid of them. */ + /* + We have too many TABLE instances around let us try to get rid of them. + */ while (table_cache_count > table_cache_size && unused_tables) free_cache_entry(unused_tables); @@ -3217,6 +3226,7 @@ err_unlock: release_table_share(share); mysql_mutex_unlock(&LOCK_open); + DBUG_PRINT("exit", ("failed")); DBUG_RETURN(TRUE); } @@ -6973,7 +6983,7 @@ find_field_in_tables(THD *thd, Item_ident *item, */ if (db) return cur_field; - + if (found) { if (report_error == REPORT_ALL_ERRORS || @@ -6988,7 +6998,7 @@ find_field_in_tables(THD *thd, Item_ident *item, if (found) return found; - + /* If the field was qualified and there were no tables to search, issue an error that an unknown table was given. The situation is detected @@ -7919,6 +7929,7 @@ err: TRUE Error FALSE OK */ + static bool setup_natural_join_row_types(THD *thd, List *from_clause, Name_resolution_context *context) @@ -7928,6 +7939,18 @@ static bool setup_natural_join_row_types(THD *thd, if (from_clause->elements == 0) DBUG_RETURN(false); /* We come here in the case of UNIONs. */ + /* + Do not redo work if already done: + 1) for stored procedures, + 2) for multitable update after lock failure and table reopening. + */ + if (!context->select_lex->first_natural_join_processing) + { + DBUG_PRINT("info", ("using cached store_top_level_join_columns")); + DBUG_RETURN(false); + } + context->select_lex->first_natural_join_processing= false; + List_iterator_fast table_ref_it(*from_clause); TABLE_LIST *table_ref; /* Current table reference. */ /* Table reference to the left of the current. */ @@ -7944,22 +7967,15 @@ static bool setup_natural_join_row_types(THD *thd, left_neighbor= table_ref_it++; } while (left_neighbor && left_neighbor->sj_subq_pred); - /* - Do not redo work if already done: - 1) for stored procedures, - 2) for multitable update after lock failure and table reopening. - */ - if (context->select_lex->first_natural_join_processing) + + if (store_top_level_join_columns(thd, table_ref, + left_neighbor, right_neighbor)) + DBUG_RETURN(true); + if (left_neighbor) { - if (store_top_level_join_columns(thd, table_ref, - left_neighbor, right_neighbor)) - DBUG_RETURN(true); - if (left_neighbor) - { - TABLE_LIST *first_leaf_on_the_right; - first_leaf_on_the_right= table_ref->first_leaf_for_name_resolution(); - left_neighbor->next_name_resolution_table= first_leaf_on_the_right; - } + TABLE_LIST *first_leaf_on_the_right; + first_leaf_on_the_right= table_ref->first_leaf_for_name_resolution(); + left_neighbor->next_name_resolution_table= first_leaf_on_the_right; } right_neighbor= table_ref; } @@ -7973,8 +7989,6 @@ static bool setup_natural_join_row_types(THD *thd, DBUG_ASSERT(right_neighbor); context->first_name_resolution_table= right_neighbor->first_leaf_for_name_resolution(); - context->select_lex->first_natural_join_processing= false; - DBUG_RETURN (false); } @@ -8576,7 +8590,7 @@ insert_fields(THD *thd, Name_resolution_context *context, const char *db_name, if (!(item= field_iterator.create_item(thd))) DBUG_RETURN(TRUE); -// DBUG_ASSERT(item->fixed); + /* cache the table for the Item_fields inserted by expanding stars */ if (item->type() == Item::FIELD_ITEM && tables->cacheable_table) ((Item_field *)item)->cached_table= tables; diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index accc3012e9e..b7425b188a0 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -716,7 +716,7 @@ exit: { TABLE *table= derived->table; table->derived_select_number= first_select->select_number; - table->s->tmp_table= NON_TRANSACTIONAL_TMP_TABLE; + table->s->tmp_table= INTERNAL_TMP_TABLE; #ifndef NO_EMBEDDED_ACCESS_CHECKS if (derived->referencing_view) table->grant= derived->grant; diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 306d5c8d306..10e943458bd 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2386,6 +2386,9 @@ TABLE *Delayed_insert::get_local_table(THD* client_thd) bitmap= (uchar*) (field + share->fields + 1); copy->record[0]= (bitmap + share->column_bitmap_size*3); memcpy((char*) copy->record[0], (char*) table->record[0], share->reclength); + /* Ensure we don't use the table list of the original table */ + copy->pos_in_table_list= 0; + /* Make a copy of all fields. The copied fields need to point into the copied record. This is done diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 665d5b2724f..fa1bd5a96fa 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -2127,14 +2127,15 @@ void st_select_lex_unit::exclude_tree() this to 'last' as dependent SYNOPSIS - last - pointer to last st_select_lex struct, before wich all + last - pointer to last st_select_lex struct, before which all st_select_lex have to be marked as dependent NOTE 'last' should be reachable from this st_select_lex_node */ -bool st_select_lex::mark_as_dependent(THD *thd, st_select_lex *last, Item *dependency) +bool st_select_lex::mark_as_dependent(THD *thd, st_select_lex *last, + Item *dependency) { DBUG_ASSERT(this != last); @@ -2325,7 +2326,10 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num) If we need a bigger array, we must allocate a new one. */ if (ref_pointer_array_size >= n_elems) + { + DBUG_PRINT("info", ("reusing old ref_array")); return false; + } } ref_pointer_array= static_cast(arena->alloc(sizeof(Item*) * n_elems)); if (ref_pointer_array != NULL) @@ -3328,6 +3332,7 @@ static void fix_prepare_info_in_table_list(THD *thd, TABLE_LIST *tbl) void st_select_lex::fix_prepare_information(THD *thd, Item **conds, Item **having_conds) { + DBUG_ENTER("st_select_lex::fix_prepare_information"); if (!thd->stmt_arena->is_conventional() && first_execution) { first_execution= 0; @@ -3356,6 +3361,7 @@ void st_select_lex::fix_prepare_information(THD *thd, Item **conds, } fix_prepare_info_in_table_list(thd, table_list.first); } + DBUG_VOID_RETURN; } diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 8ebdd3861e7..20fba8e49ae 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1957,6 +1957,7 @@ mysql_execute_command(THD *thd) bool have_table_map_for_update= FALSE; #endif DBUG_ENTER("mysql_execute_command"); + #ifdef WITH_PARTITION_STORAGE_ENGINE thd->work_part_info= 0; #endif @@ -6128,7 +6129,11 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd, ptr->schema_table= schema_table; } ptr->select_lex= lex->current_select; - ptr->cacheable_table= 1; + /* + We can't cache internal temporary tables between prepares as the + table may be deleted before next exection. + */ + ptr->cacheable_table= !table->is_derived_table(); ptr->index_hints= index_hints_arg; ptr->option= option ? option->str : 0; /* check that used name is unique */ diff --git a/sql/sql_select.cc b/sql/sql_select.cc index dfbf5e144e5..9247485278d 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -3180,7 +3180,7 @@ make_join_statistics(JOIN *join, List &tables_list, stat_ref=(JOIN_TAB**) join->thd->alloc(sizeof(JOIN_TAB*)* (MAX_TABLES + table_count + 1)); stat_vector= stat_ref + MAX_TABLES; - table_vector=(TABLE**) join->thd->alloc(sizeof(TABLE*)*(table_count*2)); + table_vector=(TABLE**) join->thd->calloc(sizeof(TABLE*)*(table_count*2)); join->positions= new (join->thd->mem_root) POSITION[(table_count+1)]; /* best_positions is ok to allocate with alloc() as we copy things to it with @@ -14802,7 +14802,8 @@ create_tmp_table(THD *thd, TMP_TABLE_PARAM *param, List &fields, save_sum_fields|= param->precomputed_group_by; DBUG_ENTER("create_tmp_table"); DBUG_PRINT("enter", - ("distinct: %d save_sum_fields: %d rows_limit: %lu group: %d", + ("table_alias: '%s' distinct: %d save_sum_fields: %d " + "rows_limit: %lu group: %d", table_alias, (int) distinct, (int) save_sum_fields, (ulong) rows_limit,test(group))); @@ -16258,7 +16259,8 @@ free_tmp_table(THD *thd, TABLE *entry) MEM_ROOT own_root= entry->mem_root; const char *save_proc_info; DBUG_ENTER("free_tmp_table"); - DBUG_PRINT("enter",("table: %s",entry->alias.c_ptr())); + DBUG_PRINT("enter",("table: %s alias: %s",entry->s->table_name.str, + entry->alias.c_ptr())); save_proc_info=thd->proc_info; thd_proc_info(thd, "removing tmp table"); diff --git a/sql/table.cc b/sql/table.cc index b0be0791cd6..932ca953c40 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -4089,6 +4089,7 @@ bool TABLE_LIST::create_field_translation(THD *thd) uint field_count= 0; Query_arena *arena= thd->stmt_arena, backup; bool res= FALSE; + DBUG_ENTER("TABLE_LIST::create_field_translation"); if (thd->stmt_arena->is_conventional() || thd->stmt_arena->is_stmt_prepare_or_first_sp_execute()) @@ -4109,7 +4110,7 @@ bool TABLE_LIST::create_field_translation(THD *thd) if (field_translation) { /* - Update items in the field translation aftet view have been prepared. + Update items in the field translation after view have been prepared. It's needed because some items in the select list, like IN subselects, might be substituted for optimized ones. */ @@ -4122,7 +4123,7 @@ bool TABLE_LIST::create_field_translation(THD *thd) field_translation_updated= TRUE; } - return FALSE; + DBUG_RETURN(FALSE); } if (arena->is_conventional()) @@ -4148,12 +4149,14 @@ bool TABLE_LIST::create_field_translation(THD *thd) } field_translation= transl; field_translation_end= transl + field_count; + /* It's safe to cache this table for prepared statements */ + cacheable_table= 1; exit: if (arena) thd->restore_active_arena(arena, &backup); - return res; + DBUG_RETURN(res); } -- cgit v1.2.1 From d106dc059746157239d951551093fec049a7b73a Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Fri, 24 Jan 2014 16:50:39 +0400 Subject: MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP The crash happened because Item_func_monthname was derived from Item_func_month, so Item_func_monthname::is_null() did not work fine. Backporting a change from 5.5: Item_func_monthname is now derived from Item_str_func. --- mysql-test/r/func_time.result | 12 +++++++++++- mysql-test/t/func_time.test | 9 +++++++++ sql/item_timefunc.cc | 13 +++++-------- sql/item_timefunc.h | 5 ++--- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result index 7020007f940..ddbf42c8060 100644 --- a/mysql-test/r/func_time.result +++ b/mysql-test/r/func_time.result @@ -162,7 +162,7 @@ dayname("1962-03-03") dayname("1962-03-03")+0 Saturday 5 select monthname("1972-03-04"),monthname("1972-03-04")+0; monthname("1972-03-04") monthname("1972-03-04")+0 -March 3 +March 0 select time_format(000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T'),date_format(19980131000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T'); time_format(000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T') date_format(19980131000000,'%H|%I|%k|%l|%i|%p|%r|%S|%T') 00|12|0|12|00|AM|12:00:00 AM|00|00:00:00 00|12|0|12|00|AM|12:00:00 AM|00|00:00:00 @@ -2347,3 +2347,13 @@ EXTRACT(HOUR FROM TIME('1 02:00:00')) EXTRACT(HOUR FROM TIME('26:00:00')) SELECT EXTRACT(DAY FROM TIME('1 02:00:00')), EXTRACT(DAY FROM TIME('26:00:00')); EXTRACT(DAY FROM TIME('1 02:00:00')) EXTRACT(DAY FROM TIME('26:00:00')) 1 1 +# +# MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP +# +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +SELECT 1 FROM t1 GROUP BY MONTHNAME(0) WITH ROLLUP; +1 +1 +1 +DROP TABLE t1; diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 91ccb06655e..2e8716f3297 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -1417,3 +1417,12 @@ SELECT EXTRACT(HOUR FROM '1 02:00:00'), EXTRACT(HOUR FROM '26:00:00'); SELECT EXTRACT(HOUR FROM TIME'1 02:00:00'), EXTRACT(HOUR FROM TIME'26:00:00'); SELECT EXTRACT(HOUR FROM TIME('1 02:00:00')), EXTRACT(HOUR FROM TIME('26:00:00')); SELECT EXTRACT(DAY FROM TIME('1 02:00:00')), EXTRACT(DAY FROM TIME('26:00:00')); + + +--echo # +--echo # MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP +--echo # +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +SELECT 1 FROM t1 GROUP BY MONTHNAME(0) WITH ROLLUP; +DROP TABLE t1; diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index b618ec038f2..b5d43786248 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -883,16 +883,13 @@ String* Item_func_monthname::val_str(String* str) { DBUG_ASSERT(fixed == 1); const char *month_name; - uint month= (uint) val_int(); uint err; + MYSQL_TIME ltime; - if (null_value || !month) - { - null_value=1; - return (String*) 0; - } - null_value=0; - month_name= locale->month_names->type_names[month-1]; + if ((null_value= (get_arg0_date(<ime, 0) || !ltime.month))) + return (String *) 0; + + month_name= locale->month_names->type_names[ltime.month - 1]; str->copy(month_name, (uint) strlen(month_name), &my_charset_utf8_bin, collation.collation, &err); return str; diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index d97a5fbc903..7d865df8fea 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -134,14 +134,13 @@ public: }; -class Item_func_monthname :public Item_func_month +class Item_func_monthname :public Item_str_func { MY_LOCALE *locale; public: - Item_func_monthname(Item *a) :Item_func_month(a) {} + Item_func_monthname(Item *a) :Item_str_func(a) {} const char *func_name() const { return "monthname"; } String *val_str(String *str); - enum Item_result result_type () const { return STRING_RESULT; } void fix_length_and_dec(); bool check_partition_func_processor(uchar *int_arg) {return TRUE;} bool check_vcol_func_processor(uchar *int_arg) {return FALSE;} -- cgit v1.2.1 From 4d83f579da713156586abb2e66ed4b2c370a9ce4 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Fri, 24 Jan 2014 19:44:13 +0200 Subject: Fixed Mageia Bug 12355: mariadb produces warning messages while loading timezone information - Warnings about wrong symlink messages or non-timezone files with '.tab' are now only given if run with --verbose - Added long option handling - Added --help, --verbose and --version options sql/tztime.cc: Add usage of my_getopt, to get long options --- sql/tztime.cc | 189 ++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 152 insertions(+), 37 deletions(-) diff --git a/sql/tztime.cc b/sql/tztime.cc index 4ae1accd440..7cfae1529ab 100644 --- a/sql/tztime.cc +++ b/sql/tztime.cc @@ -41,6 +41,8 @@ #include #include "tztime.h" #include +#include +#include #endif #include "tzfile.h" @@ -63,6 +65,8 @@ #endif /* !defined(DBUG_OFF) */ #endif /* defined(TZINFO2SQL) || defined(TESTTIME) */ +#define PROGRAM_VERSION "1.1" + /* Structure describing local time type (e.g. Moscow summer time (MSD)) */ typedef struct ttinfo { @@ -2386,7 +2390,6 @@ void Time_zone::adjust_leap_second(MYSQL_TIME *t) tables. */ - /* Print info about time zone described by TIME_ZONE_INFO struct as SQL statements populating mysql.time_zone* tables. @@ -2471,6 +2474,15 @@ MEM_ROOT tz_storage; char fullname[FN_REFLEN + 1]; char *root_name_end; +/* + known file types that exist in the zoneinfo directory that are safe to + silently skip +*/ +const char *known_extensions[]= { + ".tab", + NullS +}; + /* Recursively scan zoneinfo directory and print all found time zone @@ -2479,6 +2491,8 @@ char *root_name_end; SYNOPSIS scan_tz_dir() name_end - pointer to end of path to directory to be searched. + symlink_recursion_level How many symlink directory levels are used + verbose >0 if we should print warnings DESCRIPTION This auxiliary recursive function also uses several global @@ -2494,7 +2508,7 @@ char *root_name_end; */ my_bool -scan_tz_dir(char * name_end, uint symlink_recursion_level) +scan_tz_dir(char * name_end, uint symlink_recursion_level, uint verbose) { MY_DIR *cur_dir; char *name_end_tmp; @@ -2534,12 +2548,21 @@ scan_tz_dir(char * name_end, uint symlink_recursion_level) following such symlinks infinitely: /usr/share/zoneinfo/posix/posix/posix/.../posix/ */ - fflush(stdout); - fprintf(stderr, "Warning: Skipping directory '%s': " - "to avoid infinite symlink recursion.\n", fullname); - continue; + + /* + This is a normal case and not critical. only print warning if + verbose mode is choosen. + */ + if (verbose > 0) + { + fflush(stdout); + fprintf(stderr, "Warning: Skipping directory '%s': " + "to avoid infinite symlink recursion.\n", fullname); + continue; + } } - if (scan_tz_dir(name_end_tmp, symlink_recursion_level + is_symlink)) + if (scan_tz_dir(name_end_tmp, symlink_recursion_level + is_symlink, + verbose)) { my_dirend(cur_dir); return 1; @@ -2552,10 +2575,28 @@ scan_tz_dir(char * name_end, uint symlink_recursion_level) print_tz_as_sql(root_name_end + 1, &tz_info); else { - fflush(stdout); - fprintf(stderr, - "Warning: Unable to load '%s' as time zone. Skipping it.\n", - fullname); + /* + Some systems (like debian, opensuse etc) have description + files (.tab). We skip these silently if verbose is > 0 + */ + const char *current_ext= fn_ext(fullname); + my_bool known_ext= 0; + + for (const char **ext= known_extensions ; *ext ; ext++) + { + if (!strcmp(*ext, current_ext)) + { + known_ext= 1; + break; + } + } + if (verbose > 0 || !known_ext) + { + fflush(stdout); + fprintf(stderr, + "Warning: Unable to load '%s' as time zone. Skipping it.\n", + fullname); + } } free_root(&tz_storage, MYF(0)); } @@ -2574,30 +2615,109 @@ scan_tz_dir(char * name_end, uint symlink_recursion_level) } +my_bool opt_leap, opt_verbose; + +static const char *load_default_groups[]= +{ "mysql_tzinfo_to_sql", 0}; + +static struct my_option my_long_options[] = +{ + {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG, + 0, 0, 0, 0, 0, 0}, +#ifdef DBUG_OFF + {"debug", '#', "This is a non-debug version. Catch this and exit", + 0,0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0}, +#else + {"debug", '#', "Output debug log. Often this is 'd:t:o,filename'.", + 0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0}, +#endif + {"leap", 'l', "Print the leap second information from the given time zone file. By convention, when --leap is used the next argument is the timezonefile", + &opt_leap, &opt_leap, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, + {"verbose", 'v', "Write non critical warnings", + &opt_verbose, &opt_verbose, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, + {"version", 'V', "Output version information and exit.", + 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, + { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0} +}; + + +C_MODE_START +static my_bool get_one_option(int optid, const struct my_option *, + char *argument); +C_MODE_END + +static void print_version(void) +{ + printf("%s Ver %s Distrib %s, for %s (%s)\n",my_progname, PROGRAM_VERSION, + MYSQL_SERVER_VERSION,SYSTEM_TYPE,MACHINE_TYPE); +} + +static void print_usage(void) +{ + fprintf(stderr, "Usage:\n"); + fprintf(stderr, " %s [options] timezonedir\n", my_progname); + fprintf(stderr, " %s [options] timezonefile timezonename\n", my_progname); + print_defaults("my",load_default_groups); + puts(""); + my_print_help(my_long_options); + my_print_variables(my_long_options); +} + + +static my_bool +get_one_option(int optid, const struct my_option *opt, char *argument) +{ + switch(optid) { + case '#': +#ifndef DBUG_OFF + DBUG_PUSH(argument ? argument : "d:t:S:i:O,/tmp/mysq_tzinfo_to_sql.trace"); +#endif + break; + case '?': + print_version(); + puts(""); + print_usage(); + exit(0); + case 'V': + print_version(); + exit(0); + } + return 0; +} + + int main(int argc, char **argv) { + char **default_argv; MY_INIT(argv[0]); - if (argc != 2 && argc != 3) + if (load_defaults("my",load_default_groups,&argc,&argv)) + exit(1); + + default_argv= argv; + + if ((handle_options(&argc, &argv, my_long_options, get_one_option))) + exit(1); + + if ((argc != 1 && argc != 2) || (opt_leap && argc != 1)) { - fprintf(stderr, "Usage:\n"); - fprintf(stderr, " %s timezonedir\n", argv[0]); - fprintf(stderr, " %s timezonefile timezonename\n", argv[0]); - fprintf(stderr, " %s --leap timezonefile\n", argv[0]); + print_usage(); + free_defaults(default_argv); return 1; } - - if (argc == 2) + if (argc == 1 && !opt_leap) { - root_name_end= strmake_buf(fullname, argv[1]); + /* Argument is timezonedir */ + + root_name_end= strmake_buf(fullname, argv[0]); printf("TRUNCATE TABLE time_zone;\n"); printf("TRUNCATE TABLE time_zone_name;\n"); printf("TRUNCATE TABLE time_zone_transition;\n"); printf("TRUNCATE TABLE time_zone_transition_type;\n"); - if (scan_tz_dir(root_name_end, 0)) + if (scan_tz_dir(root_name_end, 0, opt_verbose)) { fflush(stdout); fprintf(stderr, "There were fatal errors during processing " @@ -2612,32 +2732,27 @@ main(int argc, char **argv) } else { + /* + First argument is timezonefile. + The second is timezonename if opt_leap is not given + */ init_alloc_root(&tz_storage, 32768, 0); - if (strcmp(argv[1], "--leap") == 0) + if (tz_load(argv[0], &tz_info, &tz_storage)) { - if (tz_load(argv[2], &tz_info, &tz_storage)) - { - fflush(stdout); - fprintf(stderr, "Problems with zoneinfo file '%s'\n", argv[2]); - return 1; - } - print_tz_leaps_as_sql(&tz_info); + fflush(stdout); + fprintf(stderr, "Problems with zoneinfo file '%s'\n", argv[0]); + return 1; } + if (opt_leap) + print_tz_leaps_as_sql(&tz_info); else - { - if (tz_load(argv[1], &tz_info, &tz_storage)) - { - fflush(stdout); - fprintf(stderr, "Problems with zoneinfo file '%s'\n", argv[2]); - return 1; - } - print_tz_as_sql(argv[2], &tz_info); - } + print_tz_as_sql(argv[1], &tz_info); free_root(&tz_storage, MYF(0)); } + free_defaults(default_argv); my_end(0); return 0; } -- cgit v1.2.1 From e1f94a69858e9ca35e30d748f37ba3d1b6da8e7c Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Fri, 24 Jan 2014 23:40:48 +0400 Subject: MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on - in test_if_skip_sort_order(), correct the condition under which we have the code that restores the previously pushed index condition. --- mysql-test/r/innodb_icp.result | 25 +++++++++++++++++++++++++ mysql-test/t/innodb_icp.test | 28 ++++++++++++++++++++++++++++ sql/sql_select.cc | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/innodb_icp.result b/mysql-test/r/innodb_icp.result index 07c75986392..e34a4469de2 100644 --- a/mysql-test/r/innodb_icp.result +++ b/mysql-test/r/innodb_icp.result @@ -907,5 +907,30 @@ OR a = c ORDER BY e; a b c d e DROP TABLE t1,t2,t3; +# +# MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on +# MDEV-5512: Wrong result (WHERE clause ignored) with multiple clauses using Percona-XtraDB engine +# +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +create table t2 (pk int primary key, +key1 char(32), +key2 char(32), +key(key1), +key(key2) +) engine=innodb; +insert into t2 select +A.a+10*B.a+100*C.a, +concat('rare-', A.a+10*B.a), +concat('rare-', A.a+10*B.a) +from +t1 A, t1 B, t1 C; +update t2 set key1='frequent-val' where pk between 100 and 350; +select * from t2 ignore key(PRIMARY) +where key1='frequent-val' and key2 between 'rare-400' and 'rare-450' order by pk limit 2; +pk key1 key2 +141 frequent-val rare-41 +142 frequent-val rare-42 +drop table t1, t2; set optimizer_switch=@innodb_icp_tmp; set storage_engine= @save_storage_engine; diff --git a/mysql-test/t/innodb_icp.test b/mysql-test/t/innodb_icp.test index d6caa36a88e..acb8238e01f 100644 --- a/mysql-test/t/innodb_icp.test +++ b/mysql-test/t/innodb_icp.test @@ -45,6 +45,34 @@ ORDER BY e; DROP TABLE t1,t2,t3; +--echo # +--echo # MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on +--echo # MDEV-5512: Wrong result (WHERE clause ignored) with multiple clauses using Percona-XtraDB engine +--echo # + +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); + +create table t2 (pk int primary key, + key1 char(32), + key2 char(32), + key(key1), + key(key2) +) engine=innodb; + +insert into t2 select + A.a+10*B.a+100*C.a, + concat('rare-', A.a+10*B.a), + concat('rare-', A.a+10*B.a) +from + t1 A, t1 B, t1 C; +update t2 set key1='frequent-val' where pk between 100 and 350; +select * from t2 ignore key(PRIMARY) +where key1='frequent-val' and key2 between 'rare-400' and 'rare-450' order by pk limit 2; + +drop table t1, t2; + + set optimizer_switch=@innodb_icp_tmp; set storage_engine= @save_storage_engine; diff --git a/sql/sql_select.cc b/sql/sql_select.cc index dfbf5e144e5..cbca58673dd 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -19477,7 +19477,7 @@ check_reverse_order: table->disable_keyread(); } } - else if (tab->type != JT_ALL) + else if (tab->type != JT_ALL || tab->select->quick) { /* We're about to use a quick access to the table. -- cgit v1.2.1 From 669c6620af9a9996a66ca9b339d4fb05eb6bf944 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Sat, 25 Jan 2014 00:26:40 +0400 Subject: [Backport to 5.3] MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on - in test_if_skip_sort_order(), correct the condition under which we have the code that restores the previously pushed index condition. --- mysql-test/r/innodb_icp.result | 25 +++++++++++++++++++++++++ mysql-test/t/innodb_icp.test | 28 ++++++++++++++++++++++++++++ sql/sql_select.cc | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/mysql-test/r/innodb_icp.result b/mysql-test/r/innodb_icp.result index 53a76b2a3f3..19c4ac25a88 100644 --- a/mysql-test/r/innodb_icp.result +++ b/mysql-test/r/innodb_icp.result @@ -851,5 +851,30 @@ insert into t1 values ('',1); select 1 from t1 where b <= 1 and a <> ''; 1 drop table t1; +# +# MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on +# MDEV-5512: Wrong result (WHERE clause ignored) with multiple clauses using Percona-XtraDB engine +# +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +create table t2 (pk int primary key, +key1 char(32), +key2 char(32), +key(key1), +key(key2) +) engine=innodb; +insert into t2 select +A.a+10*B.a+100*C.a, +concat('rare-', A.a+10*B.a), +concat('rare-', A.a+10*B.a) +from +t1 A, t1 B, t1 C; +update t2 set key1='frequent-val' where pk between 100 and 350; +select * from t2 ignore key(PRIMARY) +where key1='frequent-val' and key2 between 'rare-400' and 'rare-450' order by pk limit 2; +pk key1 key2 +141 frequent-val rare-41 +142 frequent-val rare-42 +drop table t1, t2; set optimizer_switch=@innodb_icp_tmp; set storage_engine= @save_storage_engine; diff --git a/mysql-test/t/innodb_icp.test b/mysql-test/t/innodb_icp.test index 0fb42355f96..f7828ec7bb2 100644 --- a/mysql-test/t/innodb_icp.test +++ b/mysql-test/t/innodb_icp.test @@ -12,6 +12,34 @@ set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'; --source include/icp_tests.inc +--echo # +--echo # MDEV-5337: Wrong result in mariadb 5.5.32 with ORDER BY + LIMIT when index_condition_pushdown=on +--echo # MDEV-5512: Wrong result (WHERE clause ignored) with multiple clauses using Percona-XtraDB engine +--echo # + +create table t1(a int); +insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); + +create table t2 (pk int primary key, + key1 char(32), + key2 char(32), + key(key1), + key(key2) +) engine=innodb; + +insert into t2 select + A.a+10*B.a+100*C.a, + concat('rare-', A.a+10*B.a), + concat('rare-', A.a+10*B.a) +from + t1 A, t1 B, t1 C; +update t2 set key1='frequent-val' where pk between 100 and 350; +select * from t2 ignore key(PRIMARY) +where key1='frequent-val' and key2 between 'rare-400' and 'rare-450' order by pk limit 2; + +drop table t1, t2; + + set optimizer_switch=@innodb_icp_tmp; set storage_engine= @save_storage_engine; diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 289b75b5804..3e5652f2a16 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -19091,7 +19091,7 @@ check_reverse_order: tab->limit= best_select_limit; } } - else if (tab->type != JT_ALL) + else if (tab->type != JT_ALL || tab->select->quick) { /* We're about to use a quick access to the table. -- cgit v1.2.1 From 3d67c68ad1219fff48a341f2197709bbca14f84f Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sat, 25 Jan 2014 15:41:08 +0200 Subject: Fixed MDEV-4970: Wrong result with Aria table populated with disabled keys Problem was that ALTER TABLE DISABLE KEYS incremented create_trid for the table, which made the new index entries invisible until the global trid catched up. Fixed by only updating create_trid if we are rewriting all rows and indexes. mysql-test/suite/maria/alter.result: Added test case mysql-test/suite/maria/alter.test: Added test case storage/maria/ha_maria.cc: Only updating create_trid if we are doing a full repair (and thus rewriting all rows and indexes). storage/maria/trnman.c: More DBUG_PRINT --- mysql-test/suite/maria/alter.result | 33 +++++++++++++++++++++++++++++++++ mysql-test/suite/maria/alter.test | 27 +++++++++++++++++++++++++++ storage/maria/ha_maria.cc | 11 +++++++++-- storage/maria/trnman.c | 4 ++-- 4 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 mysql-test/suite/maria/alter.result create mode 100644 mysql-test/suite/maria/alter.test diff --git a/mysql-test/suite/maria/alter.result b/mysql-test/suite/maria/alter.result new file mode 100644 index 00000000000..65e4cb74819 --- /dev/null +++ b/mysql-test/suite/maria/alter.result @@ -0,0 +1,33 @@ +drop table if exists t1; +Warnings: +Note 1051 Unknown table 't1' +CREATE TABLE t1 (pk INT, d DATETIME, PRIMARY KEY(pk), KEY(d)) ENGINE=Aria; +ALTER TABLE t1 DISABLE KEYS; +INSERT INTO t1 VALUES (1,'2000-01-01 22:22:22'),(2,'2012-12-21 12:12:12'); +INSERT INTO t1 VALUES (3, '2008-07-24'); +ALTER TABLE t1 ENABLE KEYS; +SELECT t1a.pk FROM t1 AS t1a LEFT JOIN t1 AS t1b ON t1a.pk = t1b.pk; +pk +1 +2 +3 +SELECT * FROM t1 AS t1a LEFT JOIN t1 AS t1b ON t1a.pk = t1b.pk; +pk d pk d +1 2000-01-01 22:22:22 1 2000-01-01 22:22:22 +2 2012-12-21 12:12:12 2 2012-12-21 12:12:12 +3 2008-07-24 00:00:00 3 2008-07-24 00:00:00 +DROP TABLE t1; +CREATE TABLE t1 (pk INT PRIMARY KEY, i INT, KEY(i)) ENGINE=Aria; +ALTER TABLE t1 DISABLE KEYS; +INSERT INTO t1 VALUES (1,11); +INSERT INTO t1 VALUES (2,0),(3,33),(4,0),(5,55),(6,66),(7,0),(8,88),(9,99); +ALTER TABLE t1 ENABLE KEYS; +SELECT * FROM t1 WHERE i = 0 OR pk BETWEEN 6 AND 10; +pk i +2 0 +4 0 +6 66 +7 0 +8 88 +9 99 +DROP TABLE t1; diff --git a/mysql-test/suite/maria/alter.test b/mysql-test/suite/maria/alter.test new file mode 100644 index 00000000000..abca4865688 --- /dev/null +++ b/mysql-test/suite/maria/alter.test @@ -0,0 +1,27 @@ +# Testing of potential problems in Aria and alter table + +-- source include/have_maria.inc + +drop table if exists t1; + +# +# MDEV-4970 Wrong result with Aria table populated with disabled keys +# + +CREATE TABLE t1 (pk INT, d DATETIME, PRIMARY KEY(pk), KEY(d)) ENGINE=Aria; +ALTER TABLE t1 DISABLE KEYS; +INSERT INTO t1 VALUES (1,'2000-01-01 22:22:22'),(2,'2012-12-21 12:12:12'); +INSERT INTO t1 VALUES (3, '2008-07-24'); +ALTER TABLE t1 ENABLE KEYS; + +SELECT t1a.pk FROM t1 AS t1a LEFT JOIN t1 AS t1b ON t1a.pk = t1b.pk; +SELECT * FROM t1 AS t1a LEFT JOIN t1 AS t1b ON t1a.pk = t1b.pk; +DROP TABLE t1; + +CREATE TABLE t1 (pk INT PRIMARY KEY, i INT, KEY(i)) ENGINE=Aria; +ALTER TABLE t1 DISABLE KEYS; +INSERT INTO t1 VALUES (1,11); +INSERT INTO t1 VALUES (2,0),(3,33),(4,0),(5,55),(6,66),(7,0),(8,88),(9,99); +ALTER TABLE t1 ENABLE KEYS; +SELECT * FROM t1 WHERE i = 0 OR pk BETWEEN 6 AND 10; +DROP TABLE t1; diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc index 94057f57de5..26ab75cbdc0 100644 --- a/storage/maria/ha_maria.cc +++ b/storage/maria/ha_maria.cc @@ -1547,7 +1547,7 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize) { int error= 0; ulonglong local_testflag= param->testflag; - bool optimize_done= !do_optimize, statistics_done= 0; + bool optimize_done= !do_optimize, statistics_done= 0, full_repair_done= 0; const char *old_proc_info= thd->proc_info; char fixed_name[FN_REFLEN]; MARIA_SHARE *share= file->s; @@ -1646,6 +1646,11 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize) } param->testflag= save_testflag | (param->testflag & T_RETRY_WITHOUT_QUICK); optimize_done= 1; + /* + set full_repair_done if we re-wrote all rows and all keys + (and thus removed all transid's from the table + */ + full_repair_done= !test(param->testflag & T_QUICK); } if (!error) { @@ -1669,7 +1674,8 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize) } } thd_proc_info(thd, "Saving state"); - if (optimize_done && !error && !(param->testflag & T_NO_CREATE_RENAME_LSN)) + if (full_repair_done && !error && + !(param->testflag & T_NO_CREATE_RENAME_LSN)) { /* Set trid (needed if the table was moved from another system) */ share->state.create_trid= trnman_get_min_safe_trid(); @@ -1962,6 +1968,7 @@ int ha_maria::enable_indexes(uint mode) */ param.testflag|= T_NO_CREATE_RENAME_LSN; } + param.myf_rw &= ~MY_WAIT_IF_FULL; param.sort_buffer_length= THDVAR(thd,sort_buffer_size); param.stats_method= (enum_handler_stats_method)THDVAR(thd,stats_method); diff --git a/storage/maria/trnman.c b/storage/maria/trnman.c index 2e27d8a4dc5..e5077adc9b7 100644 --- a/storage/maria/trnman.c +++ b/storage/maria/trnman.c @@ -383,8 +383,8 @@ TRN *trnman_new_trn(WT_THD *wt) return 0; } - DBUG_PRINT("exit", ("trn: 0x%lx trid: 0x%lu", - (ulong) trn, (ulong) trn->trid)); + DBUG_PRINT("exit", ("trn: %p trid: 0x%lu min_read_from: 0x%lu", + trn, (ulong) trn->trid, (ulong) trn->min_read_from)); DBUG_RETURN(trn); } -- cgit v1.2.1 From 46c4f3a785680e231924cc7cd2521727ac2a2623 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 26 Jan 2014 20:46:15 +0200 Subject: speed up tokudb tests by adding begin/commit around insert loops Marked very long running tests as big_test --- .../mysql-test/tokudb/r/hotindex-del-0.result | 2 + .../mysql-test/tokudb/r/hotindex-del-1.result | 2 + .../mysql-test/tokudb/r/hotindex-del-fast.result | 2 + .../mysql-test/tokudb/r/hotindex-del-slow.result | 2 + .../mysql-test/tokudb/r/hotindex-insert-0.result | 2 + .../mysql-test/tokudb/r/hotindex-insert-1.result | 2 + .../mysql-test/tokudb/r/hotindex-update-0.result | 2 + .../mysql-test/tokudb/r/hotindex-update-1.result | 2 + .../tokudb/mysql-test/tokudb/t/hotindex-del-0.test | 4 + .../tokudb/mysql-test/tokudb/t/hotindex-del-1.test | 4 + .../mysql-test/tokudb/t/hotindex-del-fast.test | 4 + .../mysql-test/tokudb/t/hotindex-del-slow.test | 4 + .../mysql-test/tokudb/t/hotindex-insert-0.test | 4 + .../mysql-test/tokudb/t/hotindex-insert-1.test | 4 + .../mysql-test/tokudb/t/hotindex-insert-2.test | 4 + .../tokudb/t/hotindex-insert-bigchar.test | 4 + .../mysql-test/tokudb/t/hotindex-update-0.test | 4 + .../mysql-test/tokudb/t/hotindex-update-1.test | 4 + .../tokudb_alter_table/r/hcad_all_add3.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_all_blob_add.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_all_blob_drop.result | 40 ++ .../tokudb_alter_table/r/hcad_all_drop.result | 308 +++++++++++++++ .../tokudb_alter_table/r/hcad_all_fixed_add.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_all_var_drop.result | 40 ++ .../tokudb_alter_table/r/hcad_fixedblob_add.result | 434 ++++++++++++++++++++ .../r/hcad_fixedblob_add2.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_fixedvar_add.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_fixedvar_add2.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/r/hcad_fixedvar_drop.result | 140 +++++++ .../tokudb_alter_table/r/hcad_varblob_add.result | 434 ++++++++++++++++++++ .../tokudb_alter_table/t/hcad_all_add.test | 436 +++++++++++++++++++++ .../tokudb_alter_table/t/hcad_all_add2.test | 2 + .../tokudb_alter_table/t/hcad_all_add3.test | 436 +++++++++++++++++++++ .../tokudb_alter_table/t/hcad_all_blob_add.test | 436 +++++++++++++++++++++ .../tokudb_alter_table/t/hcad_all_blob_drop.test | 42 ++ .../tokudb_alter_table/t/hcad_all_drop.test | 310 +++++++++++++++ .../tokudb_alter_table/t/hcad_all_fixed_add.test | 436 +++++++++++++++++++++ .../tokudb_alter_table/t/hcad_all_fixed_drop.test | 2 + .../tokudb_alter_table/t/hcad_all_var_add.test | 2 + .../tokudb_alter_table/t/hcad_all_var_drop.test | 42 ++ .../tokudb_alter_table/t/hcad_fixedblob_add.test | 434 ++++++++++++++++++++ .../tokudb_alter_table/t/hcad_fixedblob_add2.test | 434 ++++++++++++++++++++ .../tokudb_alter_table/t/hcad_fixedvar_add.test | 434 ++++++++++++++++++++ .../tokudb_alter_table/t/hcad_fixedvar_add2.test | 434 ++++++++++++++++++++ .../tokudb_alter_table/t/hcad_fixedvar_drop.test | 140 +++++++ .../tokudb_alter_table/t/hcad_varblob_add.test | 434 ++++++++++++++++++++ 46 files changed, 8510 insertions(+) diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-0.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-0.result index 6e6874f6d8b..398e50ea7a7 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-0.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-0.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a); delete from s where a=10000; diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-1.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-1.result index 3ab09c07935..c992937afd8 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-1.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-1.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create clustering index i_a on s(a); delete from s where a=10000; diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-fast.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-fast.result index ecb2d225181..a7be06f34ee 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-fast.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-fast.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; create index i_a on s(a); delete from s where a=10000; show create table s; diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-slow.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-slow.result index e1e298eb29f..a2c90f0ce6b 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-del-slow.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-del-slow.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a); delete from s where a=10000; diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-0.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-0.result index 78515053ff6..d6734e0df73 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-0.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-0.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a); insert into s values (1000000000,10000); diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-1.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-1.result index 3306f55147c..4d2e5ed6b76 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-1.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-insert-1.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a) clustering=yes; insert into s values (1000000000,10000); diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-update-0.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-update-0.result index 8ec9af009bb..85838eefb5d 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-update-0.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-update-0.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a); update s set a=20000+10000 where a=10000; diff --git a/storage/tokudb/mysql-test/tokudb/r/hotindex-update-1.result b/storage/tokudb/mysql-test/tokudb/r/hotindex-update-1.result index e94bba339ef..7561c61f10b 100644 --- a/storage/tokudb/mysql-test/tokudb/r/hotindex-update-1.result +++ b/storage/tokudb/mysql-test/tokudb/r/hotindex-update-1.result @@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; # Establish connection conn1 (user = root) drop table if exists s; create table s (a int, b int); +begin; insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); @@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); +commit; set tokudb_create_index_online=1; create index i_a on s(a) clustering=yes; update s set a=20000+10000 where a=10000; diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-0.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-0.test index 1af79715daa..baa770931eb 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-0.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-0.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a); diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-1.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-1.test index fc8107d2bc0..36afbb30ba6 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-1.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-1.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a) clustering=yes; diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-fast.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-fast.test index 50256802328..78b179f9e5a 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-fast.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-fast.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; # set tokudb_create_index_online=1; send create index i_a on s(a); diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-slow.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-slow.test index 2b267932907..0f83f456b0b 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-del-slow.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-del-slow.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a); diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-0.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-0.test index 30eeedcff9c..43fd188dcf5 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-0.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-0.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a); diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-1.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-1.test index b697a9977f9..e55b4aca2a9 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-1.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-1.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a) clustering=yes; diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-2.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-2.test index 0c05c685660..5b6c3af3a56 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-2.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-2.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on with replace into optimization # test is checking #3406 @@ -16,11 +18,13 @@ create table s (a int auto_increment, b int, c int, primary key (a)); --echo # populate table s --disable_query_log +begin; let $a = 10000; while ($a) { eval insert into s (b,c) values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; --enable_query_log --echo # done inserting elements diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-bigchar.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-bigchar.test index 9c9b278f92c..632b1693fd0 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-bigchar.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-insert-bigchar.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -16,11 +18,13 @@ create table s (a int, b varchar(2000)); --disable_query_log # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,repeat('a', 2000)),($a,repeat('b', 2000)),($a,repeat('c', 2000)),($a,repeat('d', 2000)),($a,repeat('e', 2000)),($a,repeat('f', 2000)),($a,repeat('g', 2000)),($a,repeat('h', 2000)),($a,repeat('i', 2000)),($a,repeat('j', 2000)); dec $a; } +commit; --enable_query_log set tokudb_create_index_online=1; diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-update-0.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-update-0.test index b32a6f9ffd2..cd84459dcd7 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-update-0.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-update-0.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a); diff --git a/storage/tokudb/mysql-test/tokudb/t/hotindex-update-1.test b/storage/tokudb/mysql-test/tokudb/t/hotindex-update-1.test index 686f6931bb8..1038a633b52 100644 --- a/storage/tokudb/mysql-test/tokudb/t/hotindex-update-1.test +++ b/storage/tokudb/mysql-test/tokudb/t/hotindex-update-1.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc # test that deletes work when hot indexing is on SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -14,11 +16,13 @@ drop table if exists s; create table s (a int, b int); # populate table s +begin; let $a = 10000; while ($a) { eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); dec $a; } +commit; set tokudb_create_index_online=1; send create index i_a on s(a) clustering=yes; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_add3.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_add3.result index 6d658a1ce98..c4cb63b6799 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_add3.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_add3.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -69,6 +70,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -78,6 +80,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -143,6 +146,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -152,6 +156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -217,6 +222,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -226,6 +232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -291,6 +298,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -300,6 +308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -365,6 +374,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -374,6 +384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -439,6 +450,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -448,6 +460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -513,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -522,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -587,6 +602,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -596,6 +612,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -661,6 +678,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -670,6 +688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -735,6 +754,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -744,6 +764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -809,6 +830,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -818,6 +840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -883,6 +906,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -892,6 +916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +982,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -966,6 +992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1031,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -1040,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1105,6 +1134,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -1114,6 +1144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1179,6 +1210,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -1188,6 +1220,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1253,6 +1286,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -1262,6 +1296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1327,6 +1362,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -1336,6 +1372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1401,6 +1438,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -1410,6 +1448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1475,6 +1514,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -1484,6 +1524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1549,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -1558,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1666,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -1632,6 +1676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1697,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -1706,6 +1752,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1771,6 +1818,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -1780,6 +1828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1845,6 +1894,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -1854,6 +1904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +1970,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -1928,6 +1980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1993,6 +2046,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -2002,6 +2056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2067,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -2076,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2141,6 +2198,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2150,6 +2208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2215,6 +2274,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2224,6 +2284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2289,6 +2350,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -2298,6 +2360,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2363,6 +2426,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -2372,6 +2436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2437,6 +2502,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -2446,6 +2512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2511,6 +2578,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -2520,6 +2588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2585,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -2594,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2659,6 +2730,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -2668,6 +2740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2733,6 +2806,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -2742,6 +2816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2807,6 +2882,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2816,6 +2892,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +2958,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -2890,6 +2968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2955,6 +3034,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -2964,6 +3044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3029,6 +3110,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -3038,6 +3120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3103,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -3112,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3177,6 +3262,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -3186,6 +3272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3251,6 +3338,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -3260,6 +3348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3325,6 +3414,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -3334,6 +3424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3399,6 +3490,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3408,6 +3500,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3473,6 +3566,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -3482,6 +3576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3547,6 +3642,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -3556,6 +3652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -3630,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3695,6 +3794,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -3704,6 +3804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3769,6 +3870,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -3778,6 +3880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -3852,6 +3956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3917,6 +4022,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -3926,6 +4032,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3991,6 +4098,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4000,6 +4108,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4065,6 +4174,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -4074,6 +4184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4139,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -4148,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4213,6 +4326,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -4222,6 +4336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4287,6 +4402,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -4296,6 +4412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4361,6 +4478,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -4370,6 +4488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4435,6 +4554,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -4444,6 +4564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4509,6 +4630,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -4518,6 +4640,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4583,6 +4706,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4592,6 +4716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4657,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -4666,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4731,6 +4858,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -4740,6 +4868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +4934,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -4814,6 +4944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4879,6 +5010,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -4888,6 +5020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4953,6 +5086,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -4962,6 +5096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5027,6 +5162,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -5036,6 +5172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5101,6 +5238,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -5110,6 +5248,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5175,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5184,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5249,6 +5390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -5258,6 +5400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5323,6 +5466,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -5332,6 +5476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5397,6 +5542,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -5406,6 +5552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5471,6 +5618,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -5480,6 +5628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5545,6 +5694,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -5554,6 +5704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +5770,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -5628,6 +5780,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5693,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -5702,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5767,6 +5922,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5776,6 +5932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5841,6 +5998,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -5850,6 +6008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5915,6 +6074,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -5924,6 +6084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5989,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -5998,6 +6160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6063,6 +6226,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -6072,6 +6236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6137,6 +6302,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -6146,6 +6312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6211,6 +6378,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -6220,6 +6388,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6285,6 +6454,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -6294,6 +6464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6359,6 +6530,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -6368,6 +6540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6433,6 +6606,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -6442,6 +6616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6507,6 +6682,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -6516,6 +6692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6581,6 +6758,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -6590,6 +6768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6655,6 +6834,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -6664,6 +6844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6729,6 +6910,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -6738,6 +6920,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6803,6 +6986,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -6812,6 +6996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6877,6 +7062,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -6886,6 +7072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6951,6 +7138,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -6960,6 +7148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7025,6 +7214,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -7034,6 +7224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7099,6 +7290,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -7108,6 +7300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7173,6 +7366,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -7182,6 +7376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7247,6 +7442,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -7256,6 +7452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7321,6 +7518,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -7330,6 +7528,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7395,6 +7594,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -7404,6 +7604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7469,6 +7670,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -7478,6 +7680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7543,6 +7746,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -7552,6 +7756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7617,6 +7822,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -7626,6 +7832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7691,6 +7898,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -7700,6 +7908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7765,6 +7974,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -7774,6 +7984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7839,6 +8050,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -7848,6 +8060,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7913,6 +8126,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -7922,6 +8136,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7987,6 +8202,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -7996,6 +8212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8061,6 +8278,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -8070,6 +8288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8135,6 +8354,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8144,6 +8364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8209,6 +8430,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -8218,6 +8440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8283,6 +8506,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -8292,6 +8516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8357,6 +8582,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -8366,6 +8592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8431,6 +8658,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -8440,6 +8668,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8505,6 +8734,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -8514,6 +8744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8579,6 +8810,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -8588,6 +8820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8653,6 +8886,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -8662,6 +8896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8727,6 +8962,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8736,6 +8972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8801,6 +9038,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -8810,6 +9048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8875,6 +9114,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -8884,6 +9124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8949,6 +9190,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -8958,6 +9200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9023,6 +9266,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -9032,6 +9276,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9097,6 +9342,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -9106,6 +9352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9171,6 +9418,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -9180,6 +9428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9245,6 +9494,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -9254,6 +9504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9319,6 +9570,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -9328,6 +9580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9393,6 +9646,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -9402,6 +9656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9467,6 +9722,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -9476,6 +9732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9541,6 +9798,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -9550,6 +9808,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9615,6 +9874,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -9624,6 +9884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9689,6 +9950,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -9698,6 +9960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9763,6 +10026,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -9772,6 +10036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9837,6 +10102,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -9846,6 +10112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9911,6 +10178,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -9920,6 +10188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9985,6 +10254,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -9994,6 +10264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10059,6 +10330,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -10068,6 +10340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10133,6 +10406,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -10142,6 +10416,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10207,6 +10482,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -10216,6 +10492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10281,6 +10558,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -10290,6 +10568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10355,6 +10634,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -10364,6 +10644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10429,6 +10710,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -10438,6 +10720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10503,6 +10786,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -10512,6 +10796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10577,6 +10862,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -10586,6 +10872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10651,6 +10938,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -10660,6 +10948,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10725,6 +11014,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -10734,6 +11024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10799,6 +11090,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -10808,6 +11100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10873,6 +11166,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -10882,6 +11176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10947,6 +11242,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -10956,6 +11252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11021,6 +11318,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -11030,6 +11328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11095,6 +11394,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -11104,6 +11404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11169,6 +11470,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -11178,6 +11480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11243,6 +11546,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -11252,6 +11556,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11317,6 +11622,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -11326,6 +11632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11391,6 +11698,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -11400,6 +11708,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11465,6 +11774,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -11474,6 +11784,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11539,6 +11850,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -11548,6 +11860,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11613,6 +11926,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -11622,6 +11936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11687,6 +12002,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -11696,6 +12012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11761,6 +12078,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -11770,6 +12088,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11835,6 +12154,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -11844,6 +12164,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11909,6 +12230,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -11918,6 +12240,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11983,6 +12306,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -11992,6 +12316,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12057,6 +12382,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -12066,6 +12392,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12131,6 +12458,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -12140,6 +12468,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12205,6 +12534,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -12214,6 +12544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12279,6 +12610,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -12288,6 +12620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12353,6 +12686,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -12362,6 +12696,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12427,6 +12762,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -12436,6 +12772,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12501,6 +12838,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -12510,6 +12848,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12575,6 +12914,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -12584,6 +12924,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12649,6 +12990,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -12658,6 +13000,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12723,6 +13066,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -12732,6 +13076,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12797,6 +13142,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -12806,6 +13152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12871,6 +13218,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -12880,6 +13228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12945,6 +13294,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -12954,6 +13304,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13019,6 +13370,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -13028,6 +13380,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13093,6 +13446,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -13102,6 +13456,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13167,6 +13522,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -13176,6 +13532,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13241,6 +13598,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -13250,6 +13608,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13315,6 +13674,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -13324,6 +13684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13389,6 +13750,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -13398,6 +13760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13463,6 +13826,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -13472,6 +13836,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13537,6 +13902,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -13546,6 +13912,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13611,6 +13978,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -13620,6 +13988,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13685,6 +14054,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -13694,6 +14064,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13759,6 +14130,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -13768,6 +14140,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13833,6 +14206,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -13842,6 +14216,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13907,6 +14282,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -13916,6 +14292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13981,6 +14358,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -13990,6 +14368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14055,6 +14434,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -14064,6 +14444,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14129,6 +14510,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -14138,6 +14520,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14203,6 +14586,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -14212,6 +14596,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14277,6 +14662,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -14286,6 +14672,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14351,6 +14738,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -14360,6 +14748,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14425,6 +14814,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -14434,6 +14824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14499,6 +14890,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -14508,6 +14900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14573,6 +14966,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -14582,6 +14976,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14647,6 +15042,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -14656,6 +15052,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14721,6 +15118,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -14730,6 +15128,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14795,6 +15194,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -14804,6 +15204,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14869,6 +15270,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -14878,6 +15280,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14943,6 +15346,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -14952,6 +15356,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15017,6 +15422,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -15026,6 +15432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15091,6 +15498,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -15100,6 +15508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15165,6 +15574,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -15174,6 +15584,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15239,6 +15650,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -15248,6 +15660,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15313,6 +15726,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -15322,6 +15736,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15387,6 +15802,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -15396,6 +15812,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15461,6 +15878,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -15470,6 +15888,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15535,6 +15954,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -15544,6 +15964,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15609,6 +16030,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -15618,6 +16040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15683,6 +16106,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -15692,6 +16116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15757,6 +16182,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -15766,6 +16192,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15831,6 +16258,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -15840,6 +16268,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15905,6 +16334,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -15914,6 +16344,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15979,6 +16410,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -15988,6 +16420,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16053,6 +16486,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_add.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_add.result index fe8545a7873..6fb9819438c 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_add.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_add.result @@ -4,11 +4,13 @@ set session tokudb_disable_slow_alter=ON; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -18,11 +20,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -32,11 +36,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -46,11 +52,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -60,11 +68,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -74,11 +84,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -88,11 +100,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -102,11 +116,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -116,11 +132,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -130,11 +148,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -144,11 +164,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -158,11 +180,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -172,11 +196,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -186,11 +212,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -200,11 +228,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -214,11 +244,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -228,11 +260,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb; @@ -242,11 +276,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb; alter table bar add column added_2 bigint default -1 after bb; @@ -256,11 +292,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb; @@ -270,11 +308,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb; @@ -284,11 +324,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb; @@ -298,11 +340,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; @@ -312,11 +356,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb; alter table bar add column added_7 text default NULL after bb; @@ -326,11 +372,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb; @@ -340,11 +388,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -354,11 +404,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -368,11 +420,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -382,11 +436,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -396,11 +452,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -410,11 +468,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -424,11 +484,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -438,11 +500,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -452,11 +516,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -466,11 +532,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -480,11 +548,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -494,11 +564,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -508,11 +580,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -522,11 +596,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -536,11 +612,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -550,11 +628,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -564,11 +644,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -578,11 +660,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -592,11 +676,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -606,11 +692,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -620,11 +708,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -634,11 +724,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -648,11 +740,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -662,11 +756,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -676,11 +772,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -690,11 +788,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -704,11 +804,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -718,11 +820,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -732,11 +836,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -746,11 +852,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -760,11 +868,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -774,11 +884,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -788,11 +900,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -802,11 +916,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -816,11 +932,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -830,11 +948,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -844,11 +964,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -858,11 +980,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -872,11 +996,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -886,11 +1012,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -900,11 +1028,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -914,11 +1044,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -928,11 +1060,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -942,11 +1076,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -956,11 +1092,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -970,11 +1108,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -984,11 +1124,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -998,11 +1140,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1012,11 +1156,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1026,11 +1172,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1040,11 +1188,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1054,11 +1204,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1068,11 +1220,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1082,11 +1236,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1096,11 +1252,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -1110,11 +1268,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -1124,11 +1284,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -1138,11 +1300,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -1152,11 +1316,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -1166,11 +1332,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -1180,11 +1348,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1194,11 +1364,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1208,11 +1380,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -1222,11 +1396,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -1236,11 +1412,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -1250,11 +1428,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -1264,11 +1444,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1278,11 +1460,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -1292,11 +1476,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1306,11 +1492,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1320,11 +1508,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -1334,11 +1524,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -1348,11 +1540,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -1362,11 +1556,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -1376,11 +1572,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1390,11 +1588,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -1404,11 +1604,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1418,11 +1620,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1432,11 +1636,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -1446,11 +1652,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -1460,11 +1668,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -1474,11 +1684,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -1488,11 +1700,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1502,11 +1716,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -1516,11 +1732,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1530,11 +1748,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1544,11 +1764,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -1558,11 +1780,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -1572,11 +1796,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -1586,11 +1812,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -1600,11 +1828,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1614,11 +1844,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -1628,11 +1860,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1642,11 +1876,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1656,11 +1892,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -1670,11 +1908,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -1684,11 +1924,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -1698,11 +1940,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -1712,11 +1956,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -1726,11 +1972,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -1740,11 +1988,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -1754,11 +2004,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1768,11 +2020,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -1782,11 +2036,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -1796,11 +2052,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -1810,11 +2068,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -1824,11 +2084,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -1838,11 +2100,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -1852,11 +2116,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -1866,11 +2132,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1880,11 +2148,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -1894,11 +2164,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -1908,11 +2180,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -1922,11 +2196,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -1936,11 +2212,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1950,11 +2228,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -1964,11 +2244,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1978,11 +2260,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1992,11 +2276,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -2006,11 +2292,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -2020,11 +2308,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -2034,11 +2324,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -2048,11 +2340,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2062,11 +2356,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -2076,11 +2372,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2090,11 +2388,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2104,11 +2404,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -2118,11 +2420,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -2132,11 +2436,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2146,11 +2452,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2160,11 +2468,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2174,11 +2484,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2188,11 +2500,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2202,11 +2516,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2216,11 +2532,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; @@ -2230,11 +2548,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -2244,11 +2564,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; @@ -2258,11 +2580,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -2272,11 +2596,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2286,11 +2612,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -2300,11 +2628,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2314,11 +2644,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2328,11 +2660,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; @@ -2342,11 +2676,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -2356,11 +2692,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; @@ -2370,11 +2708,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -2384,11 +2724,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2398,11 +2740,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -2412,11 +2756,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2426,11 +2772,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2440,11 +2788,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; @@ -2454,11 +2804,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -2468,11 +2820,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2482,11 +2836,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2496,11 +2852,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2510,11 +2868,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2524,11 +2884,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2538,11 +2900,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2552,11 +2916,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; @@ -2566,11 +2932,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -2580,11 +2948,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; @@ -2594,11 +2964,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; @@ -2608,11 +2980,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2622,11 +2996,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; @@ -2636,11 +3012,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2650,11 +3028,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2664,11 +3044,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; @@ -2678,11 +3060,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; @@ -2692,11 +3076,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; @@ -2706,11 +3092,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; @@ -2720,11 +3108,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2734,11 +3124,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; @@ -2748,11 +3140,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2762,11 +3156,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2776,11 +3172,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; @@ -2790,11 +3188,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; @@ -2804,11 +3204,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2818,11 +3220,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2832,11 +3236,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2846,11 +3252,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2860,11 +3268,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2874,11 +3284,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2888,11 +3300,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; @@ -2902,11 +3316,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -2916,11 +3332,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2930,11 +3348,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2944,11 +3364,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2958,11 +3380,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2972,11 +3396,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2986,11 +3412,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -3000,11 +3428,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; @@ -3014,11 +3444,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -3028,11 +3460,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_drop.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_drop.result index 8408267c12a..66ad044d297 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_drop.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_blob_drop.result @@ -4,11 +4,13 @@ set session tokudb_disable_slow_alter=ON; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa; alter table bar drop column aa; @@ -18,11 +20,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb; alter table bar drop column bb; @@ -32,11 +36,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc; alter table bar drop column cc; @@ -46,11 +52,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd; alter table bar drop column dd; @@ -60,11 +68,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb; alter table bar drop column aa, drop column bb; @@ -74,11 +84,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column cc; alter table bar drop column aa, drop column cc; @@ -88,11 +100,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column dd; alter table bar drop column aa, drop column dd; @@ -102,11 +116,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column aa; alter table bar drop column bb, drop column aa; @@ -116,11 +132,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column cc; alter table bar drop column bb, drop column cc; @@ -130,11 +148,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column dd; alter table bar drop column bb, drop column dd; @@ -144,11 +164,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column aa; alter table bar drop column cc, drop column aa; @@ -158,11 +180,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column bb; alter table bar drop column cc, drop column bb; @@ -172,11 +196,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column dd; alter table bar drop column cc, drop column dd; @@ -186,11 +212,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column aa; alter table bar drop column dd, drop column aa; @@ -200,11 +228,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column bb; alter table bar drop column dd, drop column bb; @@ -214,11 +244,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column cc; alter table bar drop column dd, drop column cc; @@ -228,11 +260,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb, drop column cc; alter table bar drop column aa, drop column bb, drop column cc; @@ -242,11 +276,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb, drop column dd; alter table bar drop column aa, drop column bb, drop column dd; @@ -256,11 +292,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column cc, drop column dd; alter table bar drop column aa, drop column cc, drop column dd; @@ -270,11 +308,13 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column cc, drop column dd; alter table bar drop column bb, drop column cc, drop column dd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_drop.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_drop.result index df48c3ac7c2..8899f5c73cf 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_drop.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_drop.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -69,6 +70,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a; alter table bar drop column a; @@ -78,6 +80,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -143,6 +146,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b; alter table bar drop column b; @@ -152,6 +156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -217,6 +222,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c; alter table bar drop column c; @@ -226,6 +232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -291,6 +298,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d; alter table bar drop column d; @@ -300,6 +308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -365,6 +374,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa; alter table bar drop column aa; @@ -374,6 +384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -439,6 +450,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb; alter table bar drop column bb; @@ -448,6 +460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -513,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc; alter table bar drop column cc; @@ -522,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -587,6 +602,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd; alter table bar drop column dd; @@ -596,6 +612,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -661,6 +678,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa; alter table bar drop column aaa; @@ -670,6 +688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -735,6 +754,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb; alter table bar drop column bbb; @@ -744,6 +764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -809,6 +830,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc; alter table bar drop column ccc; @@ -818,6 +840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -883,6 +906,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd; alter table bar drop column ddd; @@ -892,6 +916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +982,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b; alter table bar drop column a, drop column b; @@ -966,6 +992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1031,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column c; alter table bar drop column a, drop column c; @@ -1040,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1105,6 +1134,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column d; alter table bar drop column a, drop column d; @@ -1114,6 +1144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1179,6 +1210,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column aa; alter table bar drop column a, drop column aa; @@ -1188,6 +1220,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1253,6 +1286,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column bb; alter table bar drop column a, drop column bb; @@ -1262,6 +1296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1327,6 +1362,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column cc; alter table bar drop column a, drop column cc; @@ -1336,6 +1372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1401,6 +1438,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column dd; alter table bar drop column a, drop column dd; @@ -1410,6 +1448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1475,6 +1514,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column aaa; alter table bar drop column a, drop column aaa; @@ -1484,6 +1524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1549,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column bbb; alter table bar drop column a, drop column bbb; @@ -1558,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1666,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column ccc; alter table bar drop column a, drop column ccc; @@ -1632,6 +1676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1697,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column ddd; alter table bar drop column a, drop column ddd; @@ -1706,6 +1752,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1771,6 +1818,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column a; alter table bar drop column b, drop column a; @@ -1780,6 +1828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1845,6 +1894,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column c; alter table bar drop column b, drop column c; @@ -1854,6 +1904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +1970,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column d; alter table bar drop column b, drop column d; @@ -1928,6 +1980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1993,6 +2046,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column aa; alter table bar drop column b, drop column aa; @@ -2002,6 +2056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2067,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column bb; alter table bar drop column b, drop column bb; @@ -2076,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2141,6 +2198,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column cc; alter table bar drop column b, drop column cc; @@ -2150,6 +2208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2215,6 +2274,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column dd; alter table bar drop column b, drop column dd; @@ -2224,6 +2284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2289,6 +2350,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column aaa; alter table bar drop column b, drop column aaa; @@ -2298,6 +2360,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2363,6 +2426,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column bbb; alter table bar drop column b, drop column bbb; @@ -2372,6 +2436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2437,6 +2502,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column ccc; alter table bar drop column b, drop column ccc; @@ -2446,6 +2512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2511,6 +2578,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column ddd; alter table bar drop column b, drop column ddd; @@ -2520,6 +2588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2585,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column a; alter table bar drop column c, drop column a; @@ -2594,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2659,6 +2730,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column b; alter table bar drop column c, drop column b; @@ -2668,6 +2740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2733,6 +2806,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column d; alter table bar drop column c, drop column d; @@ -2742,6 +2816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2807,6 +2882,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column aa; alter table bar drop column c, drop column aa; @@ -2816,6 +2892,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +2958,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column bb; alter table bar drop column c, drop column bb; @@ -2890,6 +2968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2955,6 +3034,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column cc; alter table bar drop column c, drop column cc; @@ -2964,6 +3044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3029,6 +3110,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column dd; alter table bar drop column c, drop column dd; @@ -3038,6 +3120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3103,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column aaa; alter table bar drop column c, drop column aaa; @@ -3112,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3177,6 +3262,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column bbb; alter table bar drop column c, drop column bbb; @@ -3186,6 +3272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3251,6 +3338,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column ccc; alter table bar drop column c, drop column ccc; @@ -3260,6 +3348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3325,6 +3414,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column ddd; alter table bar drop column c, drop column ddd; @@ -3334,6 +3424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3399,6 +3490,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column a; alter table bar drop column d, drop column a; @@ -3408,6 +3500,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3473,6 +3566,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column b; alter table bar drop column d, drop column b; @@ -3482,6 +3576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3547,6 +3642,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column c; alter table bar drop column d, drop column c; @@ -3556,6 +3652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column aa; alter table bar drop column d, drop column aa; @@ -3630,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3695,6 +3794,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column bb; alter table bar drop column d, drop column bb; @@ -3704,6 +3804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3769,6 +3870,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column cc; alter table bar drop column d, drop column cc; @@ -3778,6 +3880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column dd; alter table bar drop column d, drop column dd; @@ -3852,6 +3956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3917,6 +4022,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column aaa; alter table bar drop column d, drop column aaa; @@ -3926,6 +4032,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3991,6 +4098,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column bbb; alter table bar drop column d, drop column bbb; @@ -4000,6 +4108,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4065,6 +4174,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column ccc; alter table bar drop column d, drop column ccc; @@ -4074,6 +4184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4139,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column ddd; alter table bar drop column d, drop column ddd; @@ -4148,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4213,6 +4326,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column a; alter table bar drop column aa, drop column a; @@ -4222,6 +4336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4287,6 +4402,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column b; alter table bar drop column aa, drop column b; @@ -4296,6 +4412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4361,6 +4478,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column c; alter table bar drop column aa, drop column c; @@ -4370,6 +4488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4435,6 +4554,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column d; alter table bar drop column aa, drop column d; @@ -4444,6 +4564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4509,6 +4630,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb; alter table bar drop column aa, drop column bb; @@ -4518,6 +4640,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4583,6 +4706,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column cc; alter table bar drop column aa, drop column cc; @@ -4592,6 +4716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4657,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column dd; alter table bar drop column aa, drop column dd; @@ -4666,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4731,6 +4858,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column aaa; alter table bar drop column aa, drop column aaa; @@ -4740,6 +4868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +4934,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bbb; alter table bar drop column aa, drop column bbb; @@ -4814,6 +4944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4879,6 +5010,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column ccc; alter table bar drop column aa, drop column ccc; @@ -4888,6 +5020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4953,6 +5086,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column ddd; alter table bar drop column aa, drop column ddd; @@ -4962,6 +5096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5027,6 +5162,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column a; alter table bar drop column bb, drop column a; @@ -5036,6 +5172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5101,6 +5238,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column b; alter table bar drop column bb, drop column b; @@ -5110,6 +5248,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5175,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column c; alter table bar drop column bb, drop column c; @@ -5184,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5249,6 +5390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column d; alter table bar drop column bb, drop column d; @@ -5258,6 +5400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5323,6 +5466,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column aa; alter table bar drop column bb, drop column aa; @@ -5332,6 +5476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5397,6 +5542,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column cc; alter table bar drop column bb, drop column cc; @@ -5406,6 +5552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5471,6 +5618,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column dd; alter table bar drop column bb, drop column dd; @@ -5480,6 +5628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5545,6 +5694,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column aaa; alter table bar drop column bb, drop column aaa; @@ -5554,6 +5704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +5770,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column bbb; alter table bar drop column bb, drop column bbb; @@ -5628,6 +5780,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5693,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column ccc; alter table bar drop column bb, drop column ccc; @@ -5702,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5767,6 +5922,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bb, drop column ddd; alter table bar drop column bb, drop column ddd; @@ -5776,6 +5932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5841,6 +5998,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column a; alter table bar drop column cc, drop column a; @@ -5850,6 +6008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5915,6 +6074,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column b; alter table bar drop column cc, drop column b; @@ -5924,6 +6084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5989,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column c; alter table bar drop column cc, drop column c; @@ -5998,6 +6160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6063,6 +6226,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column d; alter table bar drop column cc, drop column d; @@ -6072,6 +6236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6137,6 +6302,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column aa; alter table bar drop column cc, drop column aa; @@ -6146,6 +6312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6211,6 +6378,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column bb; alter table bar drop column cc, drop column bb; @@ -6220,6 +6388,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6285,6 +6454,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column dd; alter table bar drop column cc, drop column dd; @@ -6294,6 +6464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6359,6 +6530,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column aaa; alter table bar drop column cc, drop column aaa; @@ -6368,6 +6540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6433,6 +6606,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column bbb; alter table bar drop column cc, drop column bbb; @@ -6442,6 +6616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6507,6 +6682,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column ccc; alter table bar drop column cc, drop column ccc; @@ -6516,6 +6692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6581,6 +6758,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column cc, drop column ddd; alter table bar drop column cc, drop column ddd; @@ -6590,6 +6768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6655,6 +6834,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column a; alter table bar drop column dd, drop column a; @@ -6664,6 +6844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6729,6 +6910,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column b; alter table bar drop column dd, drop column b; @@ -6738,6 +6920,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6803,6 +6986,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column c; alter table bar drop column dd, drop column c; @@ -6812,6 +6996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6877,6 +7062,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column d; alter table bar drop column dd, drop column d; @@ -6886,6 +7072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6951,6 +7138,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column aa; alter table bar drop column dd, drop column aa; @@ -6960,6 +7148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7025,6 +7214,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column bb; alter table bar drop column dd, drop column bb; @@ -7034,6 +7224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7099,6 +7290,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column cc; alter table bar drop column dd, drop column cc; @@ -7108,6 +7300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7173,6 +7366,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column aaa; alter table bar drop column dd, drop column aaa; @@ -7182,6 +7376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7247,6 +7442,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column bbb; alter table bar drop column dd, drop column bbb; @@ -7256,6 +7452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7321,6 +7518,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column ccc; alter table bar drop column dd, drop column ccc; @@ -7330,6 +7528,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7395,6 +7594,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column dd, drop column ddd; alter table bar drop column dd, drop column ddd; @@ -7404,6 +7604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7469,6 +7670,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column a; alter table bar drop column aaa, drop column a; @@ -7478,6 +7680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7543,6 +7746,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column b; alter table bar drop column aaa, drop column b; @@ -7552,6 +7756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7617,6 +7822,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column c; alter table bar drop column aaa, drop column c; @@ -7626,6 +7832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7691,6 +7898,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column d; alter table bar drop column aaa, drop column d; @@ -7700,6 +7908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7765,6 +7974,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column aa; alter table bar drop column aaa, drop column aa; @@ -7774,6 +7984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7839,6 +8050,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bb; alter table bar drop column aaa, drop column bb; @@ -7848,6 +8060,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7913,6 +8126,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column cc; alter table bar drop column aaa, drop column cc; @@ -7922,6 +8136,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7987,6 +8202,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column dd; alter table bar drop column aaa, drop column dd; @@ -7996,6 +8212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8061,6 +8278,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -8070,6 +8288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8135,6 +8354,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -8144,6 +8364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8209,6 +8430,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -8218,6 +8440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8283,6 +8506,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column a; alter table bar drop column bbb, drop column a; @@ -8292,6 +8516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8357,6 +8582,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column b; alter table bar drop column bbb, drop column b; @@ -8366,6 +8592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8431,6 +8658,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column c; alter table bar drop column bbb, drop column c; @@ -8440,6 +8668,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8505,6 +8734,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column d; alter table bar drop column bbb, drop column d; @@ -8514,6 +8744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8579,6 +8810,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column aa; alter table bar drop column bbb, drop column aa; @@ -8588,6 +8820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8653,6 +8886,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column bb; alter table bar drop column bbb, drop column bb; @@ -8662,6 +8896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8727,6 +8962,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column cc; alter table bar drop column bbb, drop column cc; @@ -8736,6 +8972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8801,6 +9038,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column dd; alter table bar drop column bbb, drop column dd; @@ -8810,6 +9048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8875,6 +9114,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -8884,6 +9124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8949,6 +9190,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -8958,6 +9200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9023,6 +9266,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -9032,6 +9276,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9097,6 +9342,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column a; alter table bar drop column ccc, drop column a; @@ -9106,6 +9352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9171,6 +9418,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column b; alter table bar drop column ccc, drop column b; @@ -9180,6 +9428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9245,6 +9494,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column c; alter table bar drop column ccc, drop column c; @@ -9254,6 +9504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9319,6 +9570,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column d; alter table bar drop column ccc, drop column d; @@ -9328,6 +9580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9393,6 +9646,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column aa; alter table bar drop column ccc, drop column aa; @@ -9402,6 +9656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9467,6 +9722,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column bb; alter table bar drop column ccc, drop column bb; @@ -9476,6 +9732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9541,6 +9798,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column cc; alter table bar drop column ccc, drop column cc; @@ -9550,6 +9808,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9615,6 +9874,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column dd; alter table bar drop column ccc, drop column dd; @@ -9624,6 +9884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9689,6 +9950,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -9698,6 +9960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9763,6 +10026,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -9772,6 +10036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9837,6 +10102,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -9846,6 +10112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9911,6 +10178,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column a; alter table bar drop column ddd, drop column a; @@ -9920,6 +10188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9985,6 +10254,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column b; alter table bar drop column ddd, drop column b; @@ -9994,6 +10264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10059,6 +10330,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column c; alter table bar drop column ddd, drop column c; @@ -10068,6 +10340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10133,6 +10406,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column d; alter table bar drop column ddd, drop column d; @@ -10142,6 +10416,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10207,6 +10482,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column aa; alter table bar drop column ddd, drop column aa; @@ -10216,6 +10492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10281,6 +10558,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column bb; alter table bar drop column ddd, drop column bb; @@ -10290,6 +10568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10355,6 +10634,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column cc; alter table bar drop column ddd, drop column cc; @@ -10364,6 +10644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10429,6 +10710,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column dd; alter table bar drop column ddd, drop column dd; @@ -10438,6 +10720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10503,6 +10786,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -10512,6 +10796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10577,6 +10862,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -10586,6 +10872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10651,6 +10938,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -10660,6 +10948,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10725,6 +11014,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c; alter table bar drop column a, drop column b, drop column c; @@ -10734,6 +11024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10799,6 +11090,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column d; alter table bar drop column a, drop column b, drop column d; @@ -10808,6 +11100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10873,6 +11166,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column c, drop column d; alter table bar drop column a, drop column c, drop column d; @@ -10882,6 +11176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10947,6 +11242,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column c, drop column d; alter table bar drop column b, drop column c, drop column d; @@ -10956,6 +11252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11021,6 +11318,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c, drop column d; alter table bar drop column a, drop column b, drop column c, drop column d; @@ -11030,6 +11328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11095,6 +11394,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb, drop column cc, drop column dd; alter table bar drop column aa, drop column bb, drop column cc, drop column dd; @@ -11104,6 +11404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11169,6 +11470,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11178,6 +11480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11243,6 +11546,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c, drop column d, drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column a, drop column b, drop column c, drop column d, drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11252,6 +11556,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11317,6 +11622,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aa, drop column bb, drop column cc, drop column dd, drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aa, drop column bb, drop column cc, drop column dd, drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11326,6 +11632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11391,6 +11698,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c, drop column d, drop column aa, drop column bb, drop column cc, drop column dd; alter table bar drop column a, drop column b, drop column c, drop column d, drop column aa, drop column bb, drop column cc, drop column dd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_fixed_add.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_fixed_add.result index 77f9b976f67..45a785127d1 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_fixed_add.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_fixed_add.result @@ -4,11 +4,13 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -18,11 +20,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -32,11 +36,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -46,11 +52,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -60,11 +68,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -74,11 +84,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -88,11 +100,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -102,11 +116,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -116,11 +132,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -130,11 +148,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -144,11 +164,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -158,11 +180,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -172,11 +196,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -186,11 +212,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -200,11 +228,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -214,11 +244,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -228,11 +260,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -242,11 +276,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -256,11 +292,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -270,11 +308,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -284,11 +324,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -298,11 +340,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -312,11 +356,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -326,11 +372,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -340,11 +388,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -354,11 +404,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -368,11 +420,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -382,11 +436,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -396,11 +452,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -410,11 +468,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -424,11 +484,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -438,11 +500,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -452,11 +516,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -466,11 +532,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -480,11 +548,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -494,11 +564,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -508,11 +580,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -522,11 +596,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -536,11 +612,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -550,11 +628,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -564,11 +644,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -578,11 +660,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -592,11 +676,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -606,11 +692,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -620,11 +708,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -634,11 +724,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -648,11 +740,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -662,11 +756,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -676,11 +772,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -690,11 +788,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -704,11 +804,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -718,11 +820,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -732,11 +836,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -746,11 +852,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -760,11 +868,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -774,11 +884,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -788,11 +900,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -802,11 +916,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -816,11 +932,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -830,11 +948,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -844,11 +964,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -858,11 +980,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -872,11 +996,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -886,11 +1012,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -900,11 +1028,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -914,11 +1044,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -928,11 +1060,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -942,11 +1076,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -956,11 +1092,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -970,11 +1108,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -984,11 +1124,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -998,11 +1140,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1012,11 +1156,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1026,11 +1172,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1040,11 +1188,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1054,11 +1204,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1068,11 +1220,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1082,11 +1236,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1096,11 +1252,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -1110,11 +1268,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -1124,11 +1284,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -1138,11 +1300,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -1152,11 +1316,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -1166,11 +1332,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -1180,11 +1348,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1194,11 +1364,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1208,11 +1380,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -1222,11 +1396,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -1236,11 +1412,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -1250,11 +1428,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -1264,11 +1444,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1278,11 +1460,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -1292,11 +1476,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1306,11 +1492,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1320,11 +1508,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -1334,11 +1524,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -1348,11 +1540,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -1362,11 +1556,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -1376,11 +1572,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1390,11 +1588,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -1404,11 +1604,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1418,11 +1620,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1432,11 +1636,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -1446,11 +1652,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -1460,11 +1668,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -1474,11 +1684,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -1488,11 +1700,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1502,11 +1716,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -1516,11 +1732,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1530,11 +1748,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1544,11 +1764,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -1558,11 +1780,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -1572,11 +1796,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -1586,11 +1812,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -1600,11 +1828,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1614,11 +1844,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -1628,11 +1860,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1642,11 +1876,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1656,11 +1892,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -1670,11 +1908,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -1684,11 +1924,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -1698,11 +1940,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -1712,11 +1956,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -1726,11 +1972,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -1740,11 +1988,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -1754,11 +2004,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1768,11 +2020,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -1782,11 +2036,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -1796,11 +2052,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -1810,11 +2068,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -1824,11 +2084,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -1838,11 +2100,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -1852,11 +2116,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -1866,11 +2132,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1880,11 +2148,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -1894,11 +2164,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -1908,11 +2180,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -1922,11 +2196,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -1936,11 +2212,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1950,11 +2228,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -1964,11 +2244,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1978,11 +2260,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1992,11 +2276,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -2006,11 +2292,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -2020,11 +2308,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -2034,11 +2324,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -2048,11 +2340,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2062,11 +2356,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -2076,11 +2372,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2090,11 +2388,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2104,11 +2404,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -2118,11 +2420,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -2132,11 +2436,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -2146,11 +2452,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -2160,11 +2468,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2174,11 +2484,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2188,11 +2500,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2202,11 +2516,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2216,11 +2532,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -2230,11 +2548,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -2244,11 +2564,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -2258,11 +2580,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -2272,11 +2596,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2286,11 +2612,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -2300,11 +2628,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2314,11 +2644,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2328,11 +2660,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -2342,11 +2676,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -2356,11 +2692,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -2370,11 +2708,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -2384,11 +2724,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2398,11 +2740,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -2412,11 +2756,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2426,11 +2772,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2440,11 +2788,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -2454,11 +2804,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -2468,11 +2820,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -2482,11 +2836,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -2496,11 +2852,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2510,11 +2868,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2524,11 +2884,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2538,11 +2900,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2552,11 +2916,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -2566,11 +2932,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -2580,11 +2948,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -2594,11 +2964,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -2608,11 +2980,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2622,11 +2996,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -2636,11 +3012,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2650,11 +3028,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2664,11 +3044,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -2678,11 +3060,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -2692,11 +3076,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -2706,11 +3092,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -2720,11 +3108,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2734,11 +3124,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -2748,11 +3140,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2762,11 +3156,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2776,11 +3172,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -2790,11 +3188,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -2804,11 +3204,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -2818,11 +3220,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -2832,11 +3236,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2846,11 +3252,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2860,11 +3268,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2874,11 +3284,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2888,11 +3300,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -2902,11 +3316,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -2916,11 +3332,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -2930,11 +3348,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -2944,11 +3364,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2958,11 +3380,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2972,11 +3396,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2986,11 +3412,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -3000,11 +3428,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -3014,11 +3444,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -3028,11 +3460,13 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_var_drop.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_var_drop.result index b43374d16f0..782f9cfe6d2 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_var_drop.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_all_var_drop.result @@ -4,11 +4,13 @@ set session tokudb_disable_slow_alter=ON; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa; alter table bar drop column aaa; @@ -18,11 +20,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb; alter table bar drop column bbb; @@ -32,11 +36,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc; alter table bar drop column ccc; @@ -46,11 +52,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd; alter table bar drop column ddd; @@ -60,11 +68,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -74,11 +84,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -88,11 +100,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -102,11 +116,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -116,11 +132,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -130,11 +148,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -144,11 +164,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -158,11 +180,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -172,11 +196,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -186,11 +212,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -200,11 +228,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -214,11 +244,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -228,11 +260,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb, drop column ccc; alter table bar drop column aaa, drop column bbb, drop column ccc; @@ -242,11 +276,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ddd; @@ -256,11 +292,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column ccc, drop column ddd; @@ -270,11 +308,13 @@ drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ccc, drop column ddd; alter table bar drop column bbb, drop column ccc, drop column ddd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add.result index 9c7deafff6a..6c7d61e4211 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -30,6 +32,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -56,6 +60,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -82,6 +88,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -108,6 +116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -134,6 +144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -160,6 +172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -186,6 +200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -212,6 +228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -238,6 +256,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -264,6 +284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -290,6 +312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -316,6 +340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -342,6 +368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -368,6 +396,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -394,6 +424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -420,6 +452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -446,6 +480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -472,6 +508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -498,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -524,6 +564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -550,6 +592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -576,6 +620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -602,6 +648,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -628,6 +676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -654,6 +704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -680,6 +732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -706,6 +760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -732,6 +788,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -758,6 +816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -784,6 +844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -810,6 +872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -836,6 +900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -862,6 +928,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -888,6 +956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -914,6 +984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -940,6 +1012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -966,6 +1040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -992,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1824,6 +1964,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1841,6 +1982,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1850,6 +1992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1867,6 +2010,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1876,6 +2020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2038,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1902,6 +2048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +2066,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1928,6 +2076,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1945,6 +2094,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1954,6 +2104,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1971,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1980,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1997,6 +2150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2006,6 +2160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2023,6 +2178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2032,6 +2188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2049,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2058,6 +2216,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2075,6 +2234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2084,6 +2244,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2101,6 +2262,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2110,6 +2272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2127,6 +2290,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2136,6 +2300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2153,6 +2318,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2162,6 +2328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2179,6 +2346,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2188,6 +2356,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2205,6 +2374,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2214,6 +2384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2231,6 +2402,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2240,6 +2412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2257,6 +2430,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2266,6 +2440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2283,6 +2458,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2292,6 +2468,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2309,6 +2486,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2318,6 +2496,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2335,6 +2514,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2344,6 +2524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2361,6 +2542,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2370,6 +2552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2387,6 +2570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2396,6 +2580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2413,6 +2598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2422,6 +2608,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2439,6 +2626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2448,6 +2636,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2465,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2474,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2491,6 +2682,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2500,6 +2692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2517,6 +2710,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2526,6 +2720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2543,6 +2738,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2552,6 +2748,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2569,6 +2766,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2578,6 +2776,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2794,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2604,6 +2804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2621,6 +2822,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2630,6 +2832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2647,6 +2850,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2656,6 +2860,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2673,6 +2878,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2682,6 +2888,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2699,6 +2906,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2708,6 +2916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2725,6 +2934,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2734,6 +2944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2751,6 +2962,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2760,6 +2972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2777,6 +2990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2786,6 +3000,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2803,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2812,6 +3028,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2829,6 +3046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2838,6 +3056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2855,6 +3074,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2864,6 +3084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +3102,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -2890,6 +3112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2907,6 +3130,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -2916,6 +3140,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2933,6 +3158,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -2942,6 +3168,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2959,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -2968,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2985,6 +3214,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2994,6 +3224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3011,6 +3242,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3020,6 +3252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3037,6 +3270,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3046,6 +3280,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3063,6 +3298,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3072,6 +3308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3089,6 +3326,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3098,6 +3336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3115,6 +3354,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3124,6 +3364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3141,6 +3382,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3150,6 +3392,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3167,6 +3410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3176,6 +3420,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3193,6 +3438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3202,6 +3448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3219,6 +3466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3228,6 +3476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3245,6 +3494,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3254,6 +3504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3271,6 +3522,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3280,6 +3532,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3550,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3306,6 +3560,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3323,6 +3578,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3332,6 +3588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3349,6 +3606,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3358,6 +3616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3375,6 +3634,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3384,6 +3644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3401,6 +3662,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3410,6 +3672,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3427,6 +3690,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3436,6 +3700,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3462,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3479,6 +3746,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3488,6 +3756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3505,6 +3774,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3514,6 +3784,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3531,6 +3802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3540,6 +3812,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3557,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3566,6 +3840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3583,6 +3858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3592,6 +3868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3609,6 +3886,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3618,6 +3896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3635,6 +3914,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3644,6 +3924,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3661,6 +3942,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3670,6 +3952,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3687,6 +3970,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3696,6 +3980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3713,6 +3998,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3722,6 +4008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3739,6 +4026,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3748,6 +4036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3765,6 +4054,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3774,6 +4064,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3791,6 +4082,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3800,6 +4092,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3817,6 +4110,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3826,6 +4120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +4138,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -3852,6 +4148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3869,6 +4166,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3878,6 +4176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3895,6 +4194,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3904,6 +4204,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3921,6 +4222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -3930,6 +4232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3947,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -3956,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3973,6 +4278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -3982,6 +4288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4306,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -4008,6 +4316,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4025,6 +4334,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4034,6 +4344,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4051,6 +4362,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4060,6 +4372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4077,6 +4390,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4086,6 +4400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4103,6 +4418,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4112,6 +4428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4129,6 +4446,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -4138,6 +4456,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4155,6 +4474,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4164,6 +4484,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4181,6 +4502,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -4190,6 +4512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4207,6 +4530,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -4216,6 +4540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4233,6 +4558,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4242,6 +4568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4259,6 +4586,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4268,6 +4596,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4285,6 +4614,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4294,6 +4624,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4311,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4320,6 +4652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4337,6 +4670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -4346,6 +4680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4363,6 +4698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4372,6 +4708,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4389,6 +4726,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -4398,6 +4736,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4415,6 +4754,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -4424,6 +4764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4441,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4450,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4467,6 +4810,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4476,6 +4820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4493,6 +4838,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4502,6 +4848,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4519,6 +4866,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4528,6 +4876,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4545,6 +4894,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -4554,6 +4904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4571,6 +4922,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4580,6 +4932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4597,6 +4950,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -4606,6 +4960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4623,6 +4978,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -4632,6 +4988,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4649,6 +5006,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4658,6 +5016,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4675,6 +5034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4684,6 +5044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4710,6 +5072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4727,6 +5090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4736,6 +5100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4753,6 +5118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -4762,6 +5128,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4779,6 +5146,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4788,6 +5156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +5174,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -4814,6 +5184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4831,6 +5202,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -4840,6 +5212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4857,6 +5230,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4866,6 +5240,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4883,6 +5258,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -4892,6 +5268,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4909,6 +5286,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4918,6 +5296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4935,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4944,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4961,6 +5342,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -4970,6 +5352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4987,6 +5370,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -4996,6 +5380,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5013,6 +5398,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -5022,6 +5408,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5039,6 +5426,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -5048,6 +5436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5065,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5074,6 +5464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5091,6 +5482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -5100,6 +5492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5117,6 +5510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5126,6 +5520,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5143,6 +5538,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5152,6 +5548,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5169,6 +5566,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -5178,6 +5576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5195,6 +5594,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -5204,6 +5604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5221,6 +5622,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -5230,6 +5632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5247,6 +5650,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -5256,6 +5660,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5273,6 +5678,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5282,6 +5688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5299,6 +5706,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5308,6 +5716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5325,6 +5734,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5334,6 +5744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5351,6 +5762,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5360,6 +5772,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5377,6 +5790,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -5386,6 +5800,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5818,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5412,6 +5828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5429,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -5438,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5455,6 +5874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -5464,6 +5884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5481,6 +5902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5490,6 +5912,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5507,6 +5930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5516,6 +5940,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5533,6 +5958,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5542,6 +5968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5559,6 +5986,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5568,6 +5996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5585,6 +6014,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -5594,6 +6024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5611,6 +6042,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5620,6 +6052,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5637,6 +6070,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add2.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add2.result index a1988af2a19..c4300841813 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add2.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedblob_add2.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -30,6 +32,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -56,6 +60,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -82,6 +88,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -108,6 +116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -134,6 +144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -160,6 +172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -186,6 +200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -212,6 +228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -238,6 +256,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -264,6 +284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -290,6 +312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -316,6 +340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -342,6 +368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -368,6 +396,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -394,6 +424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -420,6 +452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb; @@ -446,6 +480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb; alter table bar add column added_2 bigint default -1 after bb; @@ -472,6 +508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb; @@ -498,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb; @@ -524,6 +564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb; @@ -550,6 +592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; @@ -576,6 +620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb; alter table bar add column added_7 text default NULL after bb; @@ -602,6 +648,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb; @@ -628,6 +676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -654,6 +704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -680,6 +732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -706,6 +760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -732,6 +788,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -758,6 +816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -784,6 +844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -810,6 +872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -836,6 +900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -862,6 +928,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -888,6 +956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -914,6 +984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -940,6 +1012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -966,6 +1040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -992,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1824,6 +1964,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1841,6 +1982,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1850,6 +1992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1867,6 +2010,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1876,6 +2020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2038,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1902,6 +2048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +2066,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1928,6 +2076,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1945,6 +2094,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1954,6 +2104,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1971,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1980,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1997,6 +2150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2006,6 +2160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2023,6 +2178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2032,6 +2188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2049,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2058,6 +2216,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2075,6 +2234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2084,6 +2244,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2101,6 +2262,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2110,6 +2272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2127,6 +2290,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2136,6 +2300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2153,6 +2318,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2162,6 +2328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2179,6 +2346,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2188,6 +2356,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2205,6 +2374,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2214,6 +2384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2231,6 +2402,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2240,6 +2412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2257,6 +2430,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2266,6 +2440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2283,6 +2458,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2292,6 +2468,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2309,6 +2486,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2318,6 +2496,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2335,6 +2514,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2344,6 +2524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2361,6 +2542,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2370,6 +2552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2387,6 +2570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2396,6 +2580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2413,6 +2598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2422,6 +2608,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2439,6 +2626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2448,6 +2636,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2465,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2474,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2491,6 +2682,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2500,6 +2692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2517,6 +2710,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2526,6 +2720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2543,6 +2738,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2552,6 +2748,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2569,6 +2766,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2578,6 +2776,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2794,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2604,6 +2804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2621,6 +2822,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2630,6 +2832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2647,6 +2850,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2656,6 +2860,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2673,6 +2878,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2682,6 +2888,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2699,6 +2906,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2708,6 +2916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2725,6 +2934,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2734,6 +2944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2751,6 +2962,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2760,6 +2972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2777,6 +2990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2786,6 +3000,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2803,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2812,6 +3028,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2829,6 +3046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2838,6 +3056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2855,6 +3074,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2864,6 +3084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +3102,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -2890,6 +3112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2907,6 +3130,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -2916,6 +3140,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2933,6 +3158,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -2942,6 +3168,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2959,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -2968,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2985,6 +3214,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2994,6 +3224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3011,6 +3242,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3020,6 +3252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3037,6 +3270,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3046,6 +3280,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3063,6 +3298,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3072,6 +3308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3089,6 +3326,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3098,6 +3336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3115,6 +3354,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3124,6 +3364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3141,6 +3382,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3150,6 +3392,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3167,6 +3410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3176,6 +3420,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3193,6 +3438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3202,6 +3448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3219,6 +3466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3228,6 +3476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3245,6 +3494,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3254,6 +3504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3271,6 +3522,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3280,6 +3532,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3550,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3306,6 +3560,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3323,6 +3578,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3332,6 +3588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3349,6 +3606,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3358,6 +3616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3375,6 +3634,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3384,6 +3644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3401,6 +3662,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3410,6 +3672,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3427,6 +3690,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3436,6 +3700,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3462,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3479,6 +3746,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3488,6 +3756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3505,6 +3774,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3514,6 +3784,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3531,6 +3802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3540,6 +3812,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3557,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3566,6 +3840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3583,6 +3858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3592,6 +3868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3609,6 +3886,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3618,6 +3896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3635,6 +3914,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3644,6 +3924,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3661,6 +3942,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3670,6 +3952,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3687,6 +3970,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3696,6 +3980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3713,6 +3998,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3722,6 +4008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3739,6 +4026,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3748,6 +4036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3765,6 +4054,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3774,6 +4064,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3791,6 +4082,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3800,6 +4092,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3817,6 +4110,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3826,6 +4120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +4138,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -3852,6 +4148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3869,6 +4166,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3878,6 +4176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3895,6 +4194,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3904,6 +4204,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3921,6 +4222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -3930,6 +4232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3947,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -3956,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3973,6 +4278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; @@ -3982,6 +4288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4306,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -4008,6 +4316,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4025,6 +4334,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4034,6 +4344,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4051,6 +4362,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -4060,6 +4372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4077,6 +4390,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4086,6 +4400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4103,6 +4418,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4112,6 +4428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4129,6 +4446,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; @@ -4138,6 +4456,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4155,6 +4474,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -4164,6 +4484,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4181,6 +4502,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; @@ -4190,6 +4512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4207,6 +4530,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -4216,6 +4540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4233,6 +4558,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4242,6 +4568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4259,6 +4586,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -4268,6 +4596,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4285,6 +4614,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4294,6 +4624,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4311,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4320,6 +4652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4337,6 +4670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; @@ -4346,6 +4680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4363,6 +4698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -4372,6 +4708,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4389,6 +4726,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; @@ -4398,6 +4736,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4415,6 +4754,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -4424,6 +4764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4441,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4450,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4467,6 +4810,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -4476,6 +4820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4493,6 +4838,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4502,6 +4848,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4519,6 +4866,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4528,6 +4876,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4545,6 +4894,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; @@ -4554,6 +4904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4571,6 +4922,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -4580,6 +4932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4597,6 +4950,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; @@ -4606,6 +4960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4623,6 +4978,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -4632,6 +4988,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4649,6 +5006,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4658,6 +5016,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4675,6 +5034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -4684,6 +5044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4710,6 +5072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4727,6 +5090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4736,6 +5100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4753,6 +5118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; @@ -4762,6 +5128,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4779,6 +5146,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -4788,6 +5156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +5174,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; @@ -4814,6 +5184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4831,6 +5202,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; @@ -4840,6 +5212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4857,6 +5230,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4866,6 +5240,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4883,6 +5258,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; @@ -4892,6 +5268,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4909,6 +5286,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4918,6 +5296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4935,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4944,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4961,6 +5342,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; @@ -4970,6 +5352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4987,6 +5370,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; @@ -4996,6 +5380,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5013,6 +5398,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; @@ -5022,6 +5408,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5039,6 +5426,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; @@ -5048,6 +5436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5065,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5074,6 +5464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5091,6 +5482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; @@ -5100,6 +5492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5117,6 +5510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5126,6 +5520,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5143,6 +5538,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5152,6 +5548,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5169,6 +5566,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; @@ -5178,6 +5576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5195,6 +5594,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; @@ -5204,6 +5604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5221,6 +5622,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; @@ -5230,6 +5632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5247,6 +5650,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -5256,6 +5660,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5273,6 +5678,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5282,6 +5688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5299,6 +5706,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -5308,6 +5716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5325,6 +5734,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5334,6 +5744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5351,6 +5762,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5360,6 +5772,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5377,6 +5790,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; @@ -5386,6 +5800,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5818,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -5412,6 +5828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5429,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; @@ -5438,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5455,6 +5874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -5464,6 +5884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5481,6 +5902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5490,6 +5912,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5507,6 +5930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -5516,6 +5940,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5533,6 +5958,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5542,6 +5968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5559,6 +5986,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5568,6 +5996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5585,6 +6014,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; @@ -5594,6 +6024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5611,6 +6042,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -5620,6 +6052,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5637,6 +6070,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add.result index 73689474e2b..040a2026d5d 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -30,6 +32,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -56,6 +60,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -82,6 +88,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -108,6 +116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -134,6 +144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -160,6 +172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -186,6 +200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -212,6 +228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -238,6 +256,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -264,6 +284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -290,6 +312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -316,6 +340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -342,6 +368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -368,6 +396,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -394,6 +424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -420,6 +452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -446,6 +480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -472,6 +508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -498,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -524,6 +564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -550,6 +592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -576,6 +620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -602,6 +648,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -628,6 +676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -654,6 +704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -680,6 +732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -706,6 +760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -732,6 +788,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -758,6 +816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -784,6 +844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -810,6 +872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -836,6 +900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -862,6 +928,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -888,6 +956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -914,6 +984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -940,6 +1012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -966,6 +1040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -992,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1824,6 +1964,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1841,6 +1982,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1850,6 +1992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1867,6 +2010,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1876,6 +2020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2038,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1902,6 +2048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +2066,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1928,6 +2076,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1945,6 +2094,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1954,6 +2104,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1971,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1980,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1997,6 +2150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2006,6 +2160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2023,6 +2178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2032,6 +2188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2049,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2058,6 +2216,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2075,6 +2234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2084,6 +2244,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2101,6 +2262,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2110,6 +2272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2127,6 +2290,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2136,6 +2300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2153,6 +2318,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2162,6 +2328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2179,6 +2346,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2188,6 +2356,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2205,6 +2374,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2214,6 +2384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2231,6 +2402,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2240,6 +2412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2257,6 +2430,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2266,6 +2440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2283,6 +2458,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2292,6 +2468,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2309,6 +2486,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2318,6 +2496,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2335,6 +2514,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2344,6 +2524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2361,6 +2542,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2370,6 +2552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2387,6 +2570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2396,6 +2580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2413,6 +2598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2422,6 +2608,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2439,6 +2626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2448,6 +2636,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2465,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2474,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2491,6 +2682,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2500,6 +2692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2517,6 +2710,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2526,6 +2720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2543,6 +2738,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2552,6 +2748,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2569,6 +2766,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2578,6 +2776,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2794,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2604,6 +2804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2621,6 +2822,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2630,6 +2832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2647,6 +2850,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2656,6 +2860,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2673,6 +2878,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2682,6 +2888,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2699,6 +2906,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2708,6 +2916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2725,6 +2934,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2734,6 +2944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2751,6 +2962,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2760,6 +2972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2777,6 +2990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2786,6 +3000,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2803,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2812,6 +3028,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2829,6 +3046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2838,6 +3056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2855,6 +3074,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2864,6 +3084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +3102,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -2890,6 +3112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2907,6 +3130,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -2916,6 +3140,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2933,6 +3158,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -2942,6 +3168,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2959,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -2968,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2985,6 +3214,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2994,6 +3224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3011,6 +3242,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3020,6 +3252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3037,6 +3270,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3046,6 +3280,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3063,6 +3298,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3072,6 +3308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3089,6 +3326,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3098,6 +3336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3115,6 +3354,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3124,6 +3364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3141,6 +3382,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3150,6 +3392,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3167,6 +3410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3176,6 +3420,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3193,6 +3438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3202,6 +3448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3219,6 +3466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3228,6 +3476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3245,6 +3494,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3254,6 +3504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3271,6 +3522,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3280,6 +3532,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3550,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3306,6 +3560,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3323,6 +3578,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3332,6 +3588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3349,6 +3606,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3358,6 +3616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3375,6 +3634,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3384,6 +3644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3401,6 +3662,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3410,6 +3672,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3427,6 +3690,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3436,6 +3700,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3462,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3479,6 +3746,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3488,6 +3756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3505,6 +3774,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3514,6 +3784,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3531,6 +3802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3540,6 +3812,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3557,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3566,6 +3840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3583,6 +3858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3592,6 +3868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3609,6 +3886,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3618,6 +3896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3635,6 +3914,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3644,6 +3924,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3661,6 +3942,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3670,6 +3952,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3687,6 +3970,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3696,6 +3980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3713,6 +3998,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3722,6 +4008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3739,6 +4026,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3748,6 +4036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3765,6 +4054,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3774,6 +4064,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3791,6 +4082,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3800,6 +4092,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3817,6 +4110,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3826,6 +4120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +4138,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -3852,6 +4148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3869,6 +4166,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3878,6 +4176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3895,6 +4194,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3904,6 +4204,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3921,6 +4222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -3930,6 +4232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3947,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -3956,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3973,6 +4278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -3982,6 +4288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4306,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -4008,6 +4316,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4025,6 +4334,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4034,6 +4344,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4051,6 +4362,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4060,6 +4372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4077,6 +4390,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4086,6 +4400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4103,6 +4418,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4112,6 +4428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4129,6 +4446,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -4138,6 +4456,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4155,6 +4474,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4164,6 +4484,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4181,6 +4502,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -4190,6 +4512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4207,6 +4530,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -4216,6 +4540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4233,6 +4558,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4242,6 +4568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4259,6 +4586,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4268,6 +4596,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4285,6 +4614,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4294,6 +4624,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4311,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4320,6 +4652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4337,6 +4670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -4346,6 +4680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4363,6 +4698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4372,6 +4708,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4389,6 +4726,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -4398,6 +4736,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4415,6 +4754,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -4424,6 +4764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4441,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4450,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4467,6 +4810,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4476,6 +4820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4493,6 +4838,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4502,6 +4848,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4519,6 +4866,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4528,6 +4876,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4545,6 +4894,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -4554,6 +4904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4571,6 +4922,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4580,6 +4932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4597,6 +4950,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -4606,6 +4960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4623,6 +4978,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -4632,6 +4988,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4649,6 +5006,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4658,6 +5016,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4675,6 +5034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4684,6 +5044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4710,6 +5072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4727,6 +5090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4736,6 +5100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4753,6 +5118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -4762,6 +5128,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4779,6 +5146,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4788,6 +5156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +5174,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -4814,6 +5184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4831,6 +5202,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -4840,6 +5212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4857,6 +5230,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4866,6 +5240,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4883,6 +5258,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -4892,6 +5268,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4909,6 +5286,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4918,6 +5296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4935,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4944,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4961,6 +5342,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -4970,6 +5352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4987,6 +5370,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -4996,6 +5380,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5013,6 +5398,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -5022,6 +5408,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5039,6 +5426,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -5048,6 +5436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5065,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5074,6 +5464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5091,6 +5482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -5100,6 +5492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5117,6 +5510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5126,6 +5520,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5143,6 +5538,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5152,6 +5548,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5169,6 +5566,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -5178,6 +5576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5195,6 +5594,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -5204,6 +5604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5221,6 +5622,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -5230,6 +5632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5247,6 +5650,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -5256,6 +5660,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5273,6 +5678,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5282,6 +5688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5299,6 +5706,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5308,6 +5716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5325,6 +5734,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5334,6 +5744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5351,6 +5762,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5360,6 +5772,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5377,6 +5790,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -5386,6 +5800,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5818,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5412,6 +5828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5429,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -5438,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5455,6 +5874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -5464,6 +5884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5481,6 +5902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5490,6 +5912,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5507,6 +5930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5516,6 +5940,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5533,6 +5958,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5542,6 +5968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5559,6 +5986,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5568,6 +5996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5585,6 +6014,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -5594,6 +6024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5611,6 +6042,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5620,6 +6052,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5637,6 +6070,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add2.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add2.result index bb2a433dfe1..16ba8bd3f1b 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add2.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_add2.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -30,6 +32,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -56,6 +60,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -82,6 +88,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -108,6 +116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -134,6 +144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -160,6 +172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -186,6 +200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -212,6 +228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -238,6 +256,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -264,6 +284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -290,6 +312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -316,6 +340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -342,6 +368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -368,6 +396,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -394,6 +424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -420,6 +452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -446,6 +480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -472,6 +508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -498,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -524,6 +564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -550,6 +592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -576,6 +620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -602,6 +648,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -628,6 +676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -654,6 +704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -680,6 +732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -706,6 +760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -732,6 +788,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -758,6 +816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -784,6 +844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -810,6 +872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -836,6 +900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -862,6 +928,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -888,6 +956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -914,6 +984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -940,6 +1012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -966,6 +1040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -992,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1824,6 +1964,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1841,6 +1982,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1850,6 +1992,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1867,6 +2010,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1876,6 +2020,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2038,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1902,6 +2048,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +2066,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1928,6 +2076,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1945,6 +2094,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1954,6 +2104,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1971,6 +2122,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1980,6 +2132,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1997,6 +2150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2006,6 +2160,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2023,6 +2178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2032,6 +2188,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2049,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2058,6 +2216,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2075,6 +2234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2084,6 +2244,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2101,6 +2262,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2110,6 +2272,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2127,6 +2290,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2136,6 +2300,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2153,6 +2318,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2162,6 +2328,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2179,6 +2346,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2188,6 +2356,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2205,6 +2374,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2214,6 +2384,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2231,6 +2402,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2240,6 +2412,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2257,6 +2430,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2266,6 +2440,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2283,6 +2458,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2292,6 +2468,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2309,6 +2486,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2318,6 +2496,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2335,6 +2514,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2344,6 +2524,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2361,6 +2542,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2370,6 +2552,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2387,6 +2570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2396,6 +2580,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2413,6 +2598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2422,6 +2608,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2439,6 +2626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2448,6 +2636,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2465,6 +2654,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2474,6 +2664,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2491,6 +2682,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2500,6 +2692,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2517,6 +2710,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2526,6 +2720,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2543,6 +2738,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2552,6 +2748,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2569,6 +2766,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2578,6 +2776,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2794,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2604,6 +2804,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2621,6 +2822,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2630,6 +2832,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2647,6 +2850,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2656,6 +2860,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2673,6 +2878,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2682,6 +2888,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2699,6 +2906,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2708,6 +2916,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2725,6 +2934,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2734,6 +2944,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2751,6 +2962,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2760,6 +2972,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2777,6 +2990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2786,6 +3000,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2803,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2812,6 +3028,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2829,6 +3046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2838,6 +3056,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2855,6 +3074,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2864,6 +3084,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +3102,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -2890,6 +3112,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2907,6 +3130,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -2916,6 +3140,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2933,6 +3158,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -2942,6 +3168,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2959,6 +3186,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -2968,6 +3196,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2985,6 +3214,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2994,6 +3224,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3011,6 +3242,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3020,6 +3252,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3037,6 +3270,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3046,6 +3280,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3063,6 +3298,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3072,6 +3308,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3089,6 +3326,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3098,6 +3336,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3115,6 +3354,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3124,6 +3364,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3141,6 +3382,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3150,6 +3392,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3167,6 +3410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3176,6 +3420,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3193,6 +3438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3202,6 +3448,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3219,6 +3466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3228,6 +3476,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3245,6 +3494,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3254,6 +3504,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3271,6 +3522,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3280,6 +3532,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3550,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3306,6 +3560,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3323,6 +3578,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3332,6 +3588,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3349,6 +3606,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3358,6 +3616,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3375,6 +3634,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3384,6 +3644,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3401,6 +3662,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3410,6 +3672,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3427,6 +3690,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3436,6 +3700,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3718,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3462,6 +3728,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3479,6 +3746,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3488,6 +3756,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3505,6 +3774,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3514,6 +3784,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3531,6 +3802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3540,6 +3812,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3557,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3566,6 +3840,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3583,6 +3858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3592,6 +3868,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3609,6 +3886,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3618,6 +3896,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3635,6 +3914,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3644,6 +3924,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3661,6 +3942,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3670,6 +3952,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3687,6 +3970,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3696,6 +3980,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3713,6 +3998,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3722,6 +4008,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3739,6 +4026,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3748,6 +4036,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3765,6 +4054,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3774,6 +4064,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3791,6 +4082,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3800,6 +4092,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3817,6 +4110,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3826,6 +4120,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +4138,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -3852,6 +4148,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3869,6 +4166,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3878,6 +4176,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3895,6 +4194,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3904,6 +4204,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3921,6 +4222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -3930,6 +4232,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3947,6 +4250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -3956,6 +4260,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3973,6 +4278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -3982,6 +4288,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4306,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4008,6 +4316,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4025,6 +4334,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4034,6 +4344,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4051,6 +4362,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4060,6 +4372,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4077,6 +4390,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4086,6 +4400,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4103,6 +4418,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4112,6 +4428,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4129,6 +4446,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4138,6 +4456,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4155,6 +4474,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4164,6 +4484,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4181,6 +4502,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4190,6 +4512,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4207,6 +4530,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4216,6 +4540,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4233,6 +4558,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4242,6 +4568,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4259,6 +4586,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4268,6 +4596,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4285,6 +4614,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4294,6 +4624,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4311,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4320,6 +4652,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4337,6 +4670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4346,6 +4680,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4363,6 +4698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4372,6 +4708,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4389,6 +4726,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4398,6 +4736,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4415,6 +4754,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4424,6 +4764,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4441,6 +4782,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4450,6 +4792,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4467,6 +4810,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4476,6 +4820,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4493,6 +4838,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4502,6 +4848,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4519,6 +4866,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4528,6 +4876,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4545,6 +4894,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4554,6 +4904,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4571,6 +4922,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4580,6 +4932,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4597,6 +4950,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4606,6 +4960,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4623,6 +4978,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4632,6 +4988,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4649,6 +5006,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4658,6 +5016,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4675,6 +5034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4684,6 +5044,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4710,6 +5072,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4727,6 +5090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4736,6 +5100,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4753,6 +5118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4762,6 +5128,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4779,6 +5146,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4788,6 +5156,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +5174,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -4814,6 +5184,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4831,6 +5202,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -4840,6 +5212,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4857,6 +5230,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4866,6 +5240,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4883,6 +5258,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4892,6 +5268,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4909,6 +5286,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4918,6 +5296,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4935,6 +5314,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4944,6 +5324,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4961,6 +5342,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -4970,6 +5352,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4987,6 +5370,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4996,6 +5380,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5013,6 +5398,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -5022,6 +5408,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5039,6 +5426,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5048,6 +5436,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5065,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5074,6 +5464,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5091,6 +5482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5100,6 +5492,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5117,6 +5510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5126,6 +5520,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5143,6 +5538,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5152,6 +5548,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5169,6 +5566,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -5178,6 +5576,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5195,6 +5594,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5204,6 +5604,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5221,6 +5622,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5230,6 +5632,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5247,6 +5650,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5256,6 +5660,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5273,6 +5678,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5282,6 +5688,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5299,6 +5706,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5308,6 +5716,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5325,6 +5734,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5334,6 +5744,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5351,6 +5762,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5360,6 +5772,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5377,6 +5790,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5386,6 +5800,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5818,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5412,6 +5828,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5429,6 +5846,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5438,6 +5856,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5455,6 +5874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5464,6 +5884,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5481,6 +5902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5490,6 +5912,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5507,6 +5930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5516,6 +5940,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5533,6 +5958,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5542,6 +5968,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5559,6 +5986,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5568,6 +5996,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5585,6 +6014,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5594,6 +6024,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5611,6 +6042,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5620,6 +6052,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5637,6 +6070,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_drop.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_drop.result index 62a80ff2f57..fb922437819 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_drop.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_fixedvar_drop.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a; alter table bar drop column a; @@ -30,6 +32,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b; alter table bar drop column b; @@ -56,6 +60,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c; alter table bar drop column c; @@ -82,6 +88,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d; alter table bar drop column d; @@ -108,6 +116,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa; alter table bar drop column aaa; @@ -134,6 +144,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb; alter table bar drop column bbb; @@ -160,6 +172,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc; alter table bar drop column ccc; @@ -186,6 +200,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd; alter table bar drop column ddd; @@ -212,6 +228,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b; alter table bar drop column a, drop column b; @@ -238,6 +256,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column c; alter table bar drop column a, drop column c; @@ -264,6 +284,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column d; alter table bar drop column a, drop column d; @@ -290,6 +312,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column aaa; alter table bar drop column a, drop column aaa; @@ -316,6 +340,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column bbb; alter table bar drop column a, drop column bbb; @@ -342,6 +368,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column ccc; alter table bar drop column a, drop column ccc; @@ -368,6 +396,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column ddd; alter table bar drop column a, drop column ddd; @@ -394,6 +424,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column a; alter table bar drop column b, drop column a; @@ -420,6 +452,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column c; alter table bar drop column b, drop column c; @@ -446,6 +480,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column d; alter table bar drop column b, drop column d; @@ -472,6 +508,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column aaa; alter table bar drop column b, drop column aaa; @@ -498,6 +536,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column bbb; alter table bar drop column b, drop column bbb; @@ -524,6 +564,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column ccc; alter table bar drop column b, drop column ccc; @@ -550,6 +592,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column ddd; alter table bar drop column b, drop column ddd; @@ -576,6 +620,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column a; alter table bar drop column c, drop column a; @@ -602,6 +648,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column b; alter table bar drop column c, drop column b; @@ -628,6 +676,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column d; alter table bar drop column c, drop column d; @@ -654,6 +704,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column aaa; alter table bar drop column c, drop column aaa; @@ -680,6 +732,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column bbb; alter table bar drop column c, drop column bbb; @@ -706,6 +760,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column ccc; alter table bar drop column c, drop column ccc; @@ -732,6 +788,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column c, drop column ddd; alter table bar drop column c, drop column ddd; @@ -758,6 +816,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column a; alter table bar drop column d, drop column a; @@ -784,6 +844,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column b; alter table bar drop column d, drop column b; @@ -810,6 +872,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column c; alter table bar drop column d, drop column c; @@ -836,6 +900,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column aaa; alter table bar drop column d, drop column aaa; @@ -862,6 +928,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column bbb; alter table bar drop column d, drop column bbb; @@ -888,6 +956,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column ccc; alter table bar drop column d, drop column ccc; @@ -914,6 +984,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column d, drop column ddd; alter table bar drop column d, drop column ddd; @@ -940,6 +1012,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column a; alter table bar drop column aaa, drop column a; @@ -966,6 +1040,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column b; alter table bar drop column aaa, drop column b; @@ -992,6 +1068,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column c; alter table bar drop column aaa, drop column c; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column d; alter table bar drop column aaa, drop column d; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column a; alter table bar drop column bbb, drop column a; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column b; alter table bar drop column bbb, drop column b; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column c; alter table bar drop column bbb, drop column c; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column d; alter table bar drop column bbb, drop column d; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column a; alter table bar drop column ccc, drop column a; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column b; alter table bar drop column ccc, drop column b; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column c; alter table bar drop column ccc, drop column c; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column d; alter table bar drop column ccc, drop column d; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column a; alter table bar drop column ddd, drop column a; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column b; alter table bar drop column ddd, drop column b; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column c; alter table bar drop column ddd, drop column c; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column d; alter table bar drop column ddd, drop column d; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c; alter table bar drop column a, drop column b, drop column c; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column d; alter table bar drop column a, drop column b, drop column d; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column c, drop column d; alter table bar drop column a, drop column c, drop column d; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column b, drop column c, drop column d; alter table bar drop column b, drop column c, drop column d; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column a, drop column b, drop column c, drop column d; alter table bar drop column a, drop column b, drop column c, drop column d; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ccc, drop column ddd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_varblob_add.result b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_varblob_add.result index 50f2bb4d6d6..ad9542eb7dd 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_varblob_add.result +++ b/storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_varblob_add.result @@ -4,6 +4,7 @@ set session tokudb_disable_slow_alter=ON; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -21,6 +22,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -30,6 +32,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -47,6 +50,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -56,6 +60,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -73,6 +78,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -82,6 +88,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -99,6 +106,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -108,6 +116,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -125,6 +134,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -134,6 +144,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -151,6 +162,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -160,6 +172,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -177,6 +190,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -186,6 +200,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -203,6 +218,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -212,6 +228,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -229,6 +246,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -238,6 +256,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -255,6 +274,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -264,6 +284,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -281,6 +302,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -290,6 +312,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -307,6 +330,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -316,6 +340,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -333,6 +358,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -342,6 +368,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -359,6 +386,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -368,6 +396,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -385,6 +414,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -394,6 +424,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -411,6 +442,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -420,6 +452,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -437,6 +470,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -446,6 +480,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -463,6 +498,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -472,6 +508,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +526,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -498,6 +536,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -515,6 +554,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -524,6 +564,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -541,6 +582,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -550,6 +592,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -567,6 +610,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -576,6 +620,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -593,6 +638,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -602,6 +648,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -619,6 +666,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -628,6 +676,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -645,6 +694,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -654,6 +704,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -671,6 +722,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -680,6 +732,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -697,6 +750,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -706,6 +760,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -723,6 +778,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -732,6 +788,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -749,6 +806,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -758,6 +816,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -775,6 +834,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -784,6 +844,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -801,6 +862,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -810,6 +872,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -827,6 +890,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -836,6 +900,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -853,6 +918,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -862,6 +928,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -879,6 +946,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -888,6 +956,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -905,6 +974,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -914,6 +984,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -931,6 +1002,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -940,6 +1012,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -957,6 +1030,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -966,6 +1040,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -983,6 +1058,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -992,6 +1068,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1009,6 +1086,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1018,6 +1096,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1035,6 +1114,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1044,6 +1124,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1061,6 +1142,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1070,6 +1152,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1087,6 +1170,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1096,6 +1180,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1113,6 +1198,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1122,6 +1208,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1139,6 +1226,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1148,6 +1236,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1165,6 +1254,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1174,6 +1264,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1282,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1200,6 +1292,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1217,6 +1310,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1226,6 +1320,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1243,6 +1338,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1252,6 +1348,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1269,6 +1366,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1278,6 +1376,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1295,6 +1394,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1304,6 +1404,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1321,6 +1422,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1330,6 +1432,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1347,6 +1450,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1356,6 +1460,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1373,6 +1478,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1382,6 +1488,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1399,6 +1506,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1408,6 +1516,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1425,6 +1534,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1434,6 +1544,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1451,6 +1562,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1460,6 +1572,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1477,6 +1590,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1486,6 +1600,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1618,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1512,6 +1628,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1529,6 +1646,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1538,6 +1656,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1555,6 +1674,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1564,6 +1684,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1581,6 +1702,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1590,6 +1712,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1607,6 +1730,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1616,6 +1740,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1633,6 +1758,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1642,6 +1768,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1659,6 +1786,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1668,6 +1796,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1685,6 +1814,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1694,6 +1824,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1711,6 +1842,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1720,6 +1852,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1737,6 +1870,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1746,6 +1880,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1763,6 +1898,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1772,6 +1908,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1789,6 +1926,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1798,6 +1936,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1815,6 +1954,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1824,6 +1964,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1841,6 +1982,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1850,6 +1992,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1867,6 +2010,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1876,6 +2020,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2038,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1902,6 +2048,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1919,6 +2066,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1928,6 +2076,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1945,6 +2094,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1954,6 +2104,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1971,6 +2122,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1980,6 +2132,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1997,6 +2150,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2006,6 +2160,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2023,6 +2178,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2032,6 +2188,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2049,6 +2206,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2058,6 +2216,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2075,6 +2234,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2084,6 +2244,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2101,6 +2262,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2110,6 +2272,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2127,6 +2290,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2136,6 +2300,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2153,6 +2318,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2162,6 +2328,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2179,6 +2346,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2188,6 +2356,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2205,6 +2374,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2214,6 +2384,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2231,6 +2402,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2240,6 +2412,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2257,6 +2430,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2266,6 +2440,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2283,6 +2458,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2292,6 +2468,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2309,6 +2486,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2318,6 +2496,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2335,6 +2514,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2344,6 +2524,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2361,6 +2542,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2370,6 +2552,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2387,6 +2570,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2396,6 +2580,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2413,6 +2598,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2422,6 +2608,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2439,6 +2626,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2448,6 +2636,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2465,6 +2654,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2474,6 +2664,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2491,6 +2682,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2500,6 +2692,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2517,6 +2710,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2526,6 +2720,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2543,6 +2738,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2552,6 +2748,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2569,6 +2766,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2578,6 +2776,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2794,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2604,6 +2804,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2621,6 +2822,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2630,6 +2832,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2647,6 +2850,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2656,6 +2860,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2673,6 +2878,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2682,6 +2888,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2699,6 +2906,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2708,6 +2916,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2725,6 +2934,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2734,6 +2944,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2751,6 +2962,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2760,6 +2972,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2777,6 +2990,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2786,6 +3000,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2803,6 +3018,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2812,6 +3028,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2829,6 +3046,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2838,6 +3056,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2855,6 +3074,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2864,6 +3084,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2881,6 +3102,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -2890,6 +3112,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2907,6 +3130,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -2916,6 +3140,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2933,6 +3158,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -2942,6 +3168,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2959,6 +3186,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -2968,6 +3196,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2985,6 +3214,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2994,6 +3224,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3011,6 +3242,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3020,6 +3252,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3037,6 +3270,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3046,6 +3280,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3063,6 +3298,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3072,6 +3308,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3089,6 +3326,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3098,6 +3336,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3115,6 +3354,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3124,6 +3364,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3141,6 +3382,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3150,6 +3392,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3167,6 +3410,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3176,6 +3420,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3193,6 +3438,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3202,6 +3448,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3219,6 +3466,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3228,6 +3476,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3245,6 +3494,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3254,6 +3504,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3271,6 +3522,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3280,6 +3532,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3550,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3306,6 +3560,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3323,6 +3578,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3332,6 +3588,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3349,6 +3606,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3358,6 +3616,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3375,6 +3634,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3384,6 +3644,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3401,6 +3662,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3410,6 +3672,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3427,6 +3690,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3436,6 +3700,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3718,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3462,6 +3728,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3479,6 +3746,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3488,6 +3756,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3505,6 +3774,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3514,6 +3784,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3531,6 +3802,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3540,6 +3812,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3557,6 +3830,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3566,6 +3840,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3583,6 +3858,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3592,6 +3868,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3609,6 +3886,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3618,6 +3896,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3635,6 +3914,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3644,6 +3924,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3661,6 +3942,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3670,6 +3952,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3687,6 +3970,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3696,6 +3980,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3713,6 +3998,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3722,6 +4008,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3739,6 +4026,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3748,6 +4036,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3765,6 +4054,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3774,6 +4064,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3791,6 +4082,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3800,6 +4092,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3817,6 +4110,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3826,6 +4120,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3843,6 +4138,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -3852,6 +4148,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3869,6 +4166,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3878,6 +4176,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3895,6 +4194,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3904,6 +4204,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3921,6 +4222,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -3930,6 +4232,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3947,6 +4250,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -3956,6 +4260,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3973,6 +4278,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -3982,6 +4288,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4306,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4008,6 +4316,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4025,6 +4334,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4034,6 +4344,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4051,6 +4362,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4060,6 +4372,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4077,6 +4390,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4086,6 +4400,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4103,6 +4418,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4112,6 +4428,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4129,6 +4446,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4138,6 +4456,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4155,6 +4474,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4164,6 +4484,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4181,6 +4502,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4190,6 +4512,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4207,6 +4530,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4216,6 +4540,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4233,6 +4558,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4242,6 +4568,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4259,6 +4586,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4268,6 +4596,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4285,6 +4614,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4294,6 +4624,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4311,6 +4642,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4320,6 +4652,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4337,6 +4670,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4346,6 +4680,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4363,6 +4698,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4372,6 +4708,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4389,6 +4726,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4398,6 +4736,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4415,6 +4754,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4424,6 +4764,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4441,6 +4782,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4450,6 +4792,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4467,6 +4810,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4476,6 +4820,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4493,6 +4838,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4502,6 +4848,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4519,6 +4866,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4528,6 +4876,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4545,6 +4894,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4554,6 +4904,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4571,6 +4922,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4580,6 +4932,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4597,6 +4950,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4606,6 +4960,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4623,6 +4978,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4632,6 +4988,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4649,6 +5006,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4658,6 +5016,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4675,6 +5034,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4684,6 +5044,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5062,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4710,6 +5072,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4727,6 +5090,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4736,6 +5100,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4753,6 +5118,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4762,6 +5128,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4779,6 +5146,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4788,6 +5156,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4805,6 +5174,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -4814,6 +5184,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4831,6 +5202,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -4840,6 +5212,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4857,6 +5230,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4866,6 +5240,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4883,6 +5258,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4892,6 +5268,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4909,6 +5286,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4918,6 +5296,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4935,6 +5314,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4944,6 +5324,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4961,6 +5342,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -4970,6 +5352,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4987,6 +5370,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4996,6 +5380,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5013,6 +5398,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -5022,6 +5408,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5039,6 +5426,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5048,6 +5436,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5065,6 +5454,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5074,6 +5464,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5091,6 +5482,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5100,6 +5492,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5117,6 +5510,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5126,6 +5520,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5143,6 +5538,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5152,6 +5548,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5169,6 +5566,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -5178,6 +5576,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5195,6 +5594,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5204,6 +5604,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5221,6 +5622,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5230,6 +5632,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5247,6 +5650,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5256,6 +5660,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5273,6 +5678,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5282,6 +5688,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5299,6 +5706,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5308,6 +5716,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5325,6 +5734,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5334,6 +5744,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5351,6 +5762,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5360,6 +5772,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5377,6 +5790,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5386,6 +5800,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5818,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5412,6 +5828,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5429,6 +5846,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5438,6 +5856,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5455,6 +5874,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5464,6 +5884,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5481,6 +5902,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5490,6 +5912,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5507,6 +5930,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5516,6 +5940,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5533,6 +5958,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5542,6 +5968,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5559,6 +5986,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5568,6 +5996,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5585,6 +6014,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5594,6 +6024,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5611,6 +6042,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5620,6 +6052,7 @@ drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5637,6 +6070,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; include/diff_tables.inc [test.foo, test.bar] alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add.test index 1946f3abe00..74df7611346 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,6 +15,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -78,6 +81,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -88,6 +92,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -153,6 +158,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -163,6 +169,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -228,6 +235,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -238,6 +246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -303,6 +312,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -313,6 +323,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -379,6 +390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NUL insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; source include/diff_tables.inc; +commit; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; source include/diff_tables.inc; @@ -388,6 +400,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -453,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -463,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -528,6 +543,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -538,6 +554,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -603,6 +620,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -613,6 +631,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +697,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -688,6 +708,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -753,6 +774,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -763,6 +785,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -828,6 +851,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -838,6 +862,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -903,6 +928,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -913,6 +939,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -978,6 +1005,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -988,6 +1016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1053,6 +1082,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -1063,6 +1093,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1128,6 +1159,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -1138,6 +1170,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1203,6 +1236,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -1213,6 +1247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1278,6 +1313,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -1288,6 +1324,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -1363,6 +1401,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1428,6 +1467,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -1438,6 +1478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1544,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -1513,6 +1555,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1578,6 +1621,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -1588,6 +1632,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1653,6 +1698,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -1663,6 +1709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1728,6 +1775,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -1738,6 +1786,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1803,6 +1852,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -1813,6 +1863,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1878,6 +1929,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -1888,6 +1940,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1953,6 +2006,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -1963,6 +2017,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2083,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2094,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2103,6 +2160,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -2113,6 +2171,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2178,6 +2237,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2188,6 +2248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2253,6 +2314,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2263,6 +2325,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2328,6 +2391,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -2338,6 +2402,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2403,6 +2468,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -2413,6 +2479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2478,6 +2545,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -2488,6 +2556,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2553,6 +2622,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -2563,6 +2633,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2628,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -2638,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2776,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -2713,6 +2787,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2778,6 +2853,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -2788,6 +2864,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2853,6 +2930,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2863,6 +2941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2928,6 +3007,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -2938,6 +3018,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3003,6 +3084,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -3013,6 +3095,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3078,6 +3161,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -3088,6 +3172,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3153,6 +3238,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -3163,6 +3249,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3228,6 +3315,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -3238,6 +3326,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3303,6 +3392,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -3313,6 +3403,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3469,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3480,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3546,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3463,6 +3557,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3528,6 +3623,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -3538,6 +3634,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3603,6 +3700,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -3613,6 +3711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3678,6 +3777,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -3688,6 +3788,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3753,6 +3854,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -3763,6 +3865,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3828,6 +3931,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -3838,6 +3942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3903,6 +4008,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -3913,6 +4019,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3978,6 +4085,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -3988,6 +4096,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4162,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4128,6 +4239,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -4138,6 +4250,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4203,6 +4316,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -4213,6 +4327,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4278,6 +4393,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -4288,6 +4404,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4353,6 +4470,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -4363,6 +4481,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4428,6 +4547,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -4438,6 +4558,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4503,6 +4624,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -4513,6 +4635,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4578,6 +4701,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -4588,6 +4712,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4653,6 +4778,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4663,6 +4789,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +4855,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -4738,6 +4866,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4803,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -4813,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4878,6 +5009,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -4888,6 +5020,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4953,6 +5086,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -4963,6 +5097,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5028,6 +5163,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -5038,6 +5174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5103,6 +5240,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -5113,6 +5251,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5178,6 +5317,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -5188,6 +5328,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5253,6 +5394,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5263,6 +5405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5328,6 +5471,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -5338,6 +5482,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5548,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -5413,6 +5559,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5478,6 +5625,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -5488,6 +5636,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5553,6 +5702,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -5563,6 +5713,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5628,6 +5779,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -5638,6 +5790,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5703,6 +5856,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -5713,6 +5867,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5778,6 +5933,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -5788,6 +5944,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5853,6 +6010,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5863,6 +6021,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5928,6 +6087,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -5938,6 +6098,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6003,6 +6164,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -6013,6 +6175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6078,6 +6241,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -6088,6 +6252,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6153,6 +6318,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -6163,6 +6329,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6228,6 +6395,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -6238,6 +6406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6303,6 +6472,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -6313,6 +6483,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6378,6 +6549,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -6388,6 +6560,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6453,6 +6626,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -6463,6 +6637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6528,6 +6703,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -6538,6 +6714,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6603,6 +6780,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -6613,6 +6791,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6678,6 +6857,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -6688,6 +6868,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6753,6 +6934,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -6763,6 +6945,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6828,6 +7011,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -6838,6 +7022,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6903,6 +7088,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -6913,6 +7099,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6978,6 +7165,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -6988,6 +7176,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7053,6 +7242,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -7063,6 +7253,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7128,6 +7319,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -7138,6 +7330,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7203,6 +7396,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -7213,6 +7407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7278,6 +7473,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -7288,6 +7484,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7353,6 +7550,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -7363,6 +7561,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7428,6 +7627,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -7438,6 +7638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7503,6 +7704,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -7513,6 +7715,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7578,6 +7781,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -7588,6 +7792,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7653,6 +7858,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -7663,6 +7869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7728,6 +7935,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -7738,6 +7946,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7803,6 +8012,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -7813,6 +8023,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7878,6 +8089,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -7888,6 +8100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7953,6 +8166,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -7963,6 +8177,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8028,6 +8243,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -8038,6 +8254,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8103,6 +8320,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -8113,6 +8331,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8178,6 +8397,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -8188,6 +8408,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8253,6 +8474,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8263,6 +8485,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8328,6 +8551,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -8338,6 +8562,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8403,6 +8628,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -8413,6 +8639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8478,6 +8705,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -8488,6 +8716,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8553,6 +8782,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -8563,6 +8793,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8628,6 +8859,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -8638,6 +8870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8703,6 +8936,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -8713,6 +8947,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8778,6 +9013,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -8788,6 +9024,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8853,6 +9090,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8863,6 +9101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8928,6 +9167,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -8938,6 +9178,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9003,6 +9244,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -9013,6 +9255,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9078,6 +9321,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -9088,6 +9332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9153,6 +9398,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -9163,6 +9409,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9228,6 +9475,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -9238,6 +9486,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9303,6 +9552,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -9313,6 +9563,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9378,6 +9629,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -9388,6 +9640,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9453,6 +9706,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -9463,6 +9717,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9528,6 +9783,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -9538,6 +9794,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9603,6 +9860,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -9613,6 +9871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9678,6 +9937,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -9688,6 +9948,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9753,6 +10014,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -9763,6 +10025,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9828,6 +10091,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -9838,6 +10102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9903,6 +10168,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -9913,6 +10179,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9978,6 +10245,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -9988,6 +10256,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10053,6 +10322,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -10063,6 +10333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10128,6 +10399,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -10138,6 +10410,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10203,6 +10476,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -10213,6 +10487,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10278,6 +10553,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -10288,6 +10564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10353,6 +10630,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -10363,6 +10641,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10428,6 +10707,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -10438,6 +10718,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10503,6 +10784,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -10513,6 +10795,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10578,6 +10861,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -10588,6 +10872,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10653,6 +10938,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -10663,6 +10949,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10728,6 +11015,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -10738,6 +11026,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10803,6 +11092,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -10813,6 +11103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10878,6 +11169,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -10888,6 +11180,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10953,6 +11246,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -10963,6 +11257,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11028,6 +11323,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -11038,6 +11334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11103,6 +11400,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -11113,6 +11411,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11178,6 +11477,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -11188,6 +11488,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11253,6 +11554,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -11263,6 +11565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11328,6 +11631,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -11338,6 +11642,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11403,6 +11708,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -11413,6 +11719,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11478,6 +11785,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -11488,6 +11796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11553,6 +11862,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -11563,6 +11873,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11628,6 +11939,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -11638,6 +11950,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11703,6 +12016,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -11713,6 +12027,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11778,6 +12093,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -11788,6 +12104,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11853,6 +12170,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -11863,6 +12181,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11928,6 +12247,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -11938,6 +12258,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12003,6 +12324,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -12013,6 +12335,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12078,6 +12401,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -12088,6 +12412,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12153,6 +12478,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -12163,6 +12489,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12228,6 +12555,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -12238,6 +12566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12303,6 +12632,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -12313,6 +12643,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12378,6 +12709,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -12388,6 +12720,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12453,6 +12786,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -12463,6 +12797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12528,6 +12863,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -12538,6 +12874,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12603,6 +12940,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -12613,6 +12951,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12678,6 +13017,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -12688,6 +13028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12753,6 +13094,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -12763,6 +13105,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12828,6 +13171,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -12838,6 +13182,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12903,6 +13248,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -12913,6 +13259,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12978,6 +13325,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -12988,6 +13336,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13053,6 +13402,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -13063,6 +13413,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13128,6 +13479,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -13138,6 +13490,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13203,6 +13556,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -13213,6 +13567,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13278,6 +13633,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -13288,6 +13644,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13353,6 +13710,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -13363,6 +13721,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13428,6 +13787,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -13438,6 +13798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13503,6 +13864,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -13513,6 +13875,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13578,6 +13941,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -13588,6 +13952,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13653,6 +14018,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -13663,6 +14029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13728,6 +14095,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -13738,6 +14106,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13803,6 +14172,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -13813,6 +14183,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13878,6 +14249,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -13888,6 +14260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13953,6 +14326,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -13963,6 +14337,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14028,6 +14403,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -14038,6 +14414,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14103,6 +14480,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -14113,6 +14491,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14178,6 +14557,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -14188,6 +14568,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14253,6 +14634,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -14263,6 +14645,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14328,6 +14711,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -14338,6 +14722,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14403,6 +14788,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -14413,6 +14799,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14478,6 +14865,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -14488,6 +14876,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14553,6 +14942,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -14563,6 +14953,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14628,6 +15019,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -14638,6 +15030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14703,6 +15096,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -14713,6 +15107,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14778,6 +15173,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -14788,6 +15184,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14853,6 +15250,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -14863,6 +15261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14928,6 +15327,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -14938,6 +15338,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15003,6 +15404,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -15013,6 +15415,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15078,6 +15481,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -15088,6 +15492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15153,6 +15558,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -15163,6 +15569,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15228,6 +15635,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -15238,6 +15646,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15303,6 +15712,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -15313,6 +15723,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15378,6 +15789,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -15388,6 +15800,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15453,6 +15866,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -15463,6 +15877,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15528,6 +15943,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -15538,6 +15954,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15603,6 +16020,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -15613,6 +16031,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15678,6 +16097,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -15688,6 +16108,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15753,6 +16174,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -15763,6 +16185,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15828,6 +16251,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -15838,6 +16262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15903,6 +16328,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -15913,6 +16339,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15978,6 +16405,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -15988,6 +16416,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16053,6 +16482,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -16063,6 +16493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16128,6 +16559,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -16138,6 +16570,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16203,6 +16636,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -16213,6 +16647,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16278,6 +16713,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add2.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add2.test index 9ffb49e242b..b754e0c961a 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add2.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add2.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add3.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add3.test index 430ab06ca22..a741dcfe0eb 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add3.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_add3.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,6 +15,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -78,6 +81,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -88,6 +92,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -153,6 +158,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -163,6 +169,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -228,6 +235,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -238,6 +246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -303,6 +312,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -313,6 +323,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -378,6 +389,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -388,6 +400,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -453,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -463,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -528,6 +543,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -538,6 +554,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -603,6 +620,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -613,6 +631,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +697,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -688,6 +708,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -753,6 +774,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -763,6 +785,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -828,6 +851,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -838,6 +862,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -903,6 +928,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -913,6 +939,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -978,6 +1005,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -988,6 +1016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1053,6 +1082,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -1063,6 +1093,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1128,6 +1159,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -1138,6 +1170,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1203,6 +1236,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -1213,6 +1247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1278,6 +1313,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -1288,6 +1324,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -1363,6 +1401,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1428,6 +1467,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -1438,6 +1478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1544,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -1513,6 +1555,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1578,6 +1621,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -1588,6 +1632,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1653,6 +1698,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -1663,6 +1709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1728,6 +1775,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -1738,6 +1786,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1803,6 +1852,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -1813,6 +1863,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1878,6 +1929,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -1888,6 +1940,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1953,6 +2006,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -1963,6 +2017,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2083,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2094,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2103,6 +2160,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -2113,6 +2171,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2178,6 +2237,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2188,6 +2248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2253,6 +2314,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2263,6 +2325,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2328,6 +2391,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -2338,6 +2402,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2403,6 +2468,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -2413,6 +2479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2478,6 +2545,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -2488,6 +2556,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2553,6 +2622,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -2563,6 +2633,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2628,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -2638,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2776,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -2713,6 +2787,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2778,6 +2853,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -2788,6 +2864,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2853,6 +2930,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2863,6 +2941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2928,6 +3007,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -2938,6 +3018,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3003,6 +3084,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -3013,6 +3095,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3078,6 +3161,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -3088,6 +3172,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3153,6 +3238,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -3163,6 +3249,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3228,6 +3315,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -3238,6 +3326,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3303,6 +3392,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -3313,6 +3403,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3469,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3480,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3546,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3463,6 +3557,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3528,6 +3623,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -3538,6 +3634,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3603,6 +3700,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -3613,6 +3711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3678,6 +3777,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -3688,6 +3788,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3753,6 +3854,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -3763,6 +3865,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3828,6 +3931,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -3838,6 +3942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3903,6 +4008,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -3913,6 +4019,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3978,6 +4085,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -3988,6 +4096,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4162,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4128,6 +4239,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -4138,6 +4250,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4203,6 +4316,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -4213,6 +4327,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4278,6 +4393,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -4288,6 +4404,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4353,6 +4470,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -4363,6 +4481,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4428,6 +4547,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -4438,6 +4558,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4503,6 +4624,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -4513,6 +4635,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4578,6 +4701,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -4588,6 +4712,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4653,6 +4778,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4663,6 +4789,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +4855,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -4738,6 +4866,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4803,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -4813,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4878,6 +5009,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -4888,6 +5020,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4953,6 +5086,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -4963,6 +5097,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5028,6 +5163,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -5038,6 +5174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5103,6 +5240,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -5113,6 +5251,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5178,6 +5317,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -5188,6 +5328,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5253,6 +5394,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5263,6 +5405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5328,6 +5471,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -5338,6 +5482,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5548,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -5413,6 +5559,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5478,6 +5625,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -5488,6 +5636,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5553,6 +5702,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -5563,6 +5713,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5628,6 +5779,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -5638,6 +5790,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5703,6 +5856,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -5713,6 +5867,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5778,6 +5933,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -5788,6 +5944,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5853,6 +6010,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -5863,6 +6021,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5928,6 +6087,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -5938,6 +6098,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6003,6 +6164,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -6013,6 +6175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6078,6 +6241,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -6088,6 +6252,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6153,6 +6318,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -6163,6 +6329,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6228,6 +6395,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -6238,6 +6406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6303,6 +6472,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -6313,6 +6483,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6378,6 +6549,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -6388,6 +6560,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6453,6 +6626,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -6463,6 +6637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6528,6 +6703,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -6538,6 +6714,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6603,6 +6780,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -6613,6 +6791,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6678,6 +6857,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -6688,6 +6868,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6753,6 +6934,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -6763,6 +6945,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6828,6 +7011,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -6838,6 +7022,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6903,6 +7088,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -6913,6 +7099,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6978,6 +7165,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -6988,6 +7176,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7053,6 +7242,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -7063,6 +7253,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7128,6 +7319,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -7138,6 +7330,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7203,6 +7396,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -7213,6 +7407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7278,6 +7473,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -7288,6 +7484,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7353,6 +7550,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -7363,6 +7561,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7428,6 +7627,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -7438,6 +7638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7503,6 +7704,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -7513,6 +7715,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7578,6 +7781,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -7588,6 +7792,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7653,6 +7858,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -7663,6 +7869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7728,6 +7935,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -7738,6 +7946,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7803,6 +8012,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -7813,6 +8023,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7878,6 +8089,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -7888,6 +8100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7953,6 +8166,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -7963,6 +8177,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8028,6 +8243,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -8038,6 +8254,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8103,6 +8320,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -8113,6 +8331,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8178,6 +8397,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -8188,6 +8408,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8253,6 +8474,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8263,6 +8485,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8328,6 +8551,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -8338,6 +8562,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8403,6 +8628,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -8413,6 +8639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8478,6 +8705,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -8488,6 +8716,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8553,6 +8782,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -8563,6 +8793,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8628,6 +8859,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -8638,6 +8870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8703,6 +8936,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -8713,6 +8947,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8778,6 +9013,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -8788,6 +9024,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8853,6 +9090,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -8863,6 +9101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8928,6 +9167,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -8938,6 +9178,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9003,6 +9244,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -9013,6 +9255,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9078,6 +9321,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -9088,6 +9332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9153,6 +9398,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -9163,6 +9409,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9228,6 +9475,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -9238,6 +9486,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9303,6 +9552,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -9313,6 +9563,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9378,6 +9629,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -9388,6 +9640,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9453,6 +9706,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -9463,6 +9717,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9528,6 +9783,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -9538,6 +9794,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9603,6 +9860,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -9613,6 +9871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9678,6 +9937,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -9688,6 +9948,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9753,6 +10014,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -9763,6 +10025,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9828,6 +10091,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -9838,6 +10102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9903,6 +10168,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -9913,6 +10179,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9978,6 +10245,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -9988,6 +10256,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10053,6 +10322,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -10063,6 +10333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10128,6 +10399,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -10138,6 +10410,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10203,6 +10476,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -10213,6 +10487,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10278,6 +10553,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -10288,6 +10564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10353,6 +10630,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -10363,6 +10641,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10428,6 +10707,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -10438,6 +10718,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10503,6 +10784,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -10513,6 +10795,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10578,6 +10861,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -10588,6 +10872,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10653,6 +10938,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -10663,6 +10949,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10728,6 +11015,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -10738,6 +11026,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10803,6 +11092,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -10813,6 +11103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10878,6 +11169,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -10888,6 +11180,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10953,6 +11246,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -10963,6 +11257,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11028,6 +11323,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -11038,6 +11334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11103,6 +11400,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -11113,6 +11411,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11178,6 +11477,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -11188,6 +11488,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11253,6 +11554,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -11263,6 +11565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11328,6 +11631,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -11338,6 +11642,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11403,6 +11708,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -11413,6 +11719,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11478,6 +11785,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -11488,6 +11796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11553,6 +11862,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -11563,6 +11873,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11628,6 +11939,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -11638,6 +11950,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11703,6 +12016,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -11713,6 +12027,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11778,6 +12093,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -11788,6 +12104,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11853,6 +12170,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -11863,6 +12181,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11928,6 +12247,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -11938,6 +12258,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12003,6 +12324,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -12013,6 +12335,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12078,6 +12401,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -12088,6 +12412,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12153,6 +12478,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -12163,6 +12489,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12228,6 +12555,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -12238,6 +12566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12303,6 +12632,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -12313,6 +12643,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12378,6 +12709,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -12388,6 +12720,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12453,6 +12786,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -12463,6 +12797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12528,6 +12863,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -12538,6 +12874,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12603,6 +12940,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -12613,6 +12951,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12678,6 +13017,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -12688,6 +13028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12753,6 +13094,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -12763,6 +13105,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12828,6 +13171,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -12838,6 +13182,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12903,6 +13248,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -12913,6 +13259,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -12978,6 +13325,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -12988,6 +13336,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13053,6 +13402,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -13063,6 +13413,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13128,6 +13479,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -13138,6 +13490,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13203,6 +13556,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -13213,6 +13567,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13278,6 +13633,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -13288,6 +13644,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13353,6 +13710,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -13363,6 +13721,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13428,6 +13787,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -13438,6 +13798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13503,6 +13864,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -13513,6 +13875,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13578,6 +13941,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -13588,6 +13952,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13653,6 +14018,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -13663,6 +14029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13728,6 +14095,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -13738,6 +14106,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13803,6 +14172,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -13813,6 +14183,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13878,6 +14249,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -13888,6 +14260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -13953,6 +14326,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -13963,6 +14337,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14028,6 +14403,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -14038,6 +14414,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14103,6 +14480,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -14113,6 +14491,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14178,6 +14557,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -14188,6 +14568,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14253,6 +14634,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -14263,6 +14645,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14328,6 +14711,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -14338,6 +14722,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14403,6 +14788,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -14413,6 +14799,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14478,6 +14865,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -14488,6 +14876,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14553,6 +14942,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -14563,6 +14953,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14628,6 +15019,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -14638,6 +15030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14703,6 +15096,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -14713,6 +15107,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14778,6 +15173,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -14788,6 +15184,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14853,6 +15250,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -14863,6 +15261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -14928,6 +15327,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -14938,6 +15338,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15003,6 +15404,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -15013,6 +15415,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15078,6 +15481,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -15088,6 +15492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15153,6 +15558,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -15163,6 +15569,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15228,6 +15635,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -15238,6 +15646,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15303,6 +15712,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -15313,6 +15723,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15378,6 +15789,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -15388,6 +15800,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15453,6 +15866,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -15463,6 +15877,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15528,6 +15943,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -15538,6 +15954,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15603,6 +16020,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -15613,6 +16031,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15678,6 +16097,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -15688,6 +16108,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15753,6 +16174,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -15763,6 +16185,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15828,6 +16251,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -15838,6 +16262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15903,6 +16328,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -15913,6 +16339,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -15978,6 +16405,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -15988,6 +16416,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16053,6 +16482,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -16063,6 +16493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16128,6 +16559,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -16138,6 +16570,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16203,6 +16636,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -16213,6 +16647,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -16278,6 +16713,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_add.test index 695dc2bc073..d524539a366 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_add.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,11 +15,13 @@ let $diff_tables= test.foo, test.bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -28,11 +32,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -43,11 +49,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -58,11 +66,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -73,11 +83,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -88,11 +100,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -103,11 +117,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -118,11 +134,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -133,11 +151,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -148,11 +168,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -163,11 +185,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -178,11 +202,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -193,11 +219,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -208,11 +236,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -223,11 +253,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -238,11 +270,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -253,11 +287,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb; @@ -268,11 +304,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb; alter table bar add column added_2 bigint default -1 after bb; @@ -283,11 +321,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb; @@ -298,11 +338,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb; @@ -313,11 +355,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb; @@ -328,11 +372,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; @@ -343,11 +389,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb; alter table bar add column added_7 text default NULL after bb; @@ -358,11 +406,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb; @@ -373,11 +423,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -388,11 +440,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -403,11 +457,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -418,11 +474,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -433,11 +491,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -448,11 +508,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -463,11 +525,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -478,11 +542,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -493,11 +559,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -508,11 +576,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -523,11 +593,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -538,11 +610,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -553,11 +627,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -568,11 +644,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -583,11 +661,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -598,11 +678,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -613,11 +695,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -628,11 +712,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -643,11 +729,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -658,11 +746,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -673,11 +763,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -688,11 +780,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -703,11 +797,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -718,11 +814,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -733,11 +831,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -748,11 +848,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -763,11 +865,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -778,11 +882,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -793,11 +899,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -808,11 +916,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,11 +933,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -838,11 +950,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -853,11 +967,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -868,11 +984,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -883,11 +1001,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -898,11 +1018,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -913,11 +1035,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -928,11 +1052,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -943,11 +1069,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -958,11 +1086,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -973,11 +1103,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -988,11 +1120,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1003,11 +1137,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1018,11 +1154,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1033,11 +1171,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1048,11 +1188,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1063,11 +1205,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1078,11 +1222,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1093,11 +1239,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1108,11 +1256,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1123,11 +1273,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1138,11 +1290,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1153,11 +1307,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1168,11 +1324,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1183,11 +1341,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -1198,11 +1358,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -1213,11 +1375,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -1228,11 +1392,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -1243,11 +1409,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -1258,11 +1426,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -1273,11 +1443,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1288,11 +1460,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1303,11 +1477,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -1318,11 +1494,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -1333,11 +1511,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -1348,11 +1528,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -1363,11 +1545,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1378,11 +1562,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -1393,11 +1579,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1408,11 +1596,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1423,11 +1613,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -1438,11 +1630,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -1453,11 +1647,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -1468,11 +1664,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -1483,11 +1681,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1498,11 +1698,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -1513,11 +1715,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1528,11 +1732,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1543,11 +1749,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -1558,11 +1766,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -1573,11 +1783,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -1588,11 +1800,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -1603,11 +1817,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1618,11 +1834,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -1633,11 +1851,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1648,11 +1868,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1663,11 +1885,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -1678,11 +1902,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -1693,11 +1919,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -1708,11 +1936,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -1723,11 +1953,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1738,11 +1970,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -1753,11 +1987,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1768,11 +2004,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1783,11 +2021,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -1798,11 +2038,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -1813,11 +2055,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -1828,11 +2072,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -1843,11 +2089,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -1858,11 +2106,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -1873,11 +2123,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -1888,11 +2140,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,11 +2157,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -1918,11 +2174,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -1933,11 +2191,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -1948,11 +2208,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -1963,11 +2225,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -1978,11 +2242,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -1993,11 +2259,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -2008,11 +2276,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2023,11 +2293,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -2038,11 +2310,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -2053,11 +2327,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -2068,11 +2344,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -2083,11 +2361,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2098,11 +2378,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -2113,11 +2395,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2128,11 +2412,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2143,11 +2429,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -2158,11 +2446,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -2173,11 +2463,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -2188,11 +2480,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -2203,11 +2497,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2218,11 +2514,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -2233,11 +2531,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2248,11 +2548,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2263,11 +2565,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -2278,11 +2582,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -2293,11 +2599,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2308,11 +2616,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2323,11 +2633,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2338,11 +2650,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2353,11 +2667,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2368,11 +2684,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2383,11 +2701,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; @@ -2398,11 +2718,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -2413,11 +2735,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; @@ -2428,11 +2752,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -2443,11 +2769,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2458,11 +2786,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -2473,11 +2803,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2488,11 +2820,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2503,11 +2837,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; @@ -2518,11 +2854,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -2533,11 +2871,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; @@ -2548,11 +2888,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -2563,11 +2905,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2578,11 +2922,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -2593,11 +2939,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2608,11 +2956,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2623,11 +2973,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; @@ -2638,11 +2990,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -2653,11 +3007,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; @@ -2668,11 +3024,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -2683,11 +3041,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2698,11 +3058,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -2713,11 +3075,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2728,11 +3092,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2743,11 +3109,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; @@ -2758,11 +3126,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -2773,11 +3143,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; @@ -2788,11 +3160,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; @@ -2803,11 +3177,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2818,11 +3194,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; @@ -2833,11 +3211,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2848,11 +3228,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2863,11 +3245,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; @@ -2878,11 +3262,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; @@ -2893,11 +3279,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; @@ -2908,11 +3296,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; @@ -2923,11 +3313,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -2938,11 +3330,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; @@ -2953,11 +3347,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -2968,11 +3364,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -2983,11 +3381,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; @@ -2998,11 +3398,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; @@ -3013,11 +3415,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; @@ -3028,11 +3432,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -3043,11 +3449,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -3058,11 +3466,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -3073,11 +3483,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -3088,11 +3500,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -3103,11 +3517,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; @@ -3118,11 +3534,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -3133,11 +3551,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; @@ -3148,11 +3568,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -3163,11 +3585,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -3178,11 +3602,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -3193,11 +3619,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -3208,11 +3636,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -3223,11 +3653,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; @@ -3238,11 +3670,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -3253,11 +3687,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_drop.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_drop.test index ffa8ec7a160..9b73c8ee7c7 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_drop.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_blob_drop.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,11 +15,13 @@ let $diff_tables= test.foo, test.bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa; alter table bar drop column aa; @@ -28,11 +32,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb; alter table bar drop column bb; @@ -43,11 +49,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc; alter table bar drop column cc; @@ -58,11 +66,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd; alter table bar drop column dd; @@ -73,11 +83,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb; alter table bar drop column aa, drop column bb; @@ -88,11 +100,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column cc; alter table bar drop column aa, drop column cc; @@ -103,11 +117,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column dd; alter table bar drop column aa, drop column dd; @@ -118,11 +134,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column aa; alter table bar drop column bb, drop column aa; @@ -133,11 +151,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column cc; alter table bar drop column bb, drop column cc; @@ -148,11 +168,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column dd; alter table bar drop column bb, drop column dd; @@ -163,11 +185,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column aa; alter table bar drop column cc, drop column aa; @@ -178,11 +202,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column bb; alter table bar drop column cc, drop column bb; @@ -193,11 +219,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column dd; alter table bar drop column cc, drop column dd; @@ -208,11 +236,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column aa; alter table bar drop column dd, drop column aa; @@ -223,11 +253,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column bb; alter table bar drop column dd, drop column bb; @@ -238,11 +270,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column cc; alter table bar drop column dd, drop column cc; @@ -253,11 +287,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb, drop column cc; alter table bar drop column aa, drop column bb, drop column cc; @@ -268,11 +304,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb, drop column dd; alter table bar drop column aa, drop column bb, drop column dd; @@ -283,11 +321,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column cc, drop column dd; alter table bar drop column aa, drop column cc, drop column dd; @@ -298,11 +338,13 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values ("adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column cc, drop column dd; alter table bar drop column bb, drop column cc, drop column dd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_drop.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_drop.test index c281c6ee0bb..c23afa5b88c 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_drop.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_drop.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,6 +15,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -78,6 +81,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a; alter table bar drop column a; @@ -88,6 +92,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -153,6 +158,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b; alter table bar drop column b; @@ -163,6 +169,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -228,6 +235,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c; alter table bar drop column c; @@ -238,6 +246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -303,6 +312,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d; alter table bar drop column d; @@ -313,6 +323,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -378,6 +389,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa; alter table bar drop column aa; @@ -388,6 +400,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -453,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb; alter table bar drop column bb; @@ -463,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -528,6 +543,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc; alter table bar drop column cc; @@ -538,6 +554,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -603,6 +620,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd; alter table bar drop column dd; @@ -613,6 +631,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +697,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa; alter table bar drop column aaa; @@ -688,6 +708,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -753,6 +774,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb; alter table bar drop column bbb; @@ -763,6 +785,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -828,6 +851,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc; alter table bar drop column ccc; @@ -838,6 +862,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -903,6 +928,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd; alter table bar drop column ddd; @@ -913,6 +939,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -978,6 +1005,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b; alter table bar drop column a, drop column b; @@ -988,6 +1016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1053,6 +1082,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column c; alter table bar drop column a, drop column c; @@ -1063,6 +1093,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1128,6 +1159,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column d; alter table bar drop column a, drop column d; @@ -1138,6 +1170,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1203,6 +1236,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column aa; alter table bar drop column a, drop column aa; @@ -1213,6 +1247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1278,6 +1313,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column bb; alter table bar drop column a, drop column bb; @@ -1288,6 +1324,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1390,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column cc; alter table bar drop column a, drop column cc; @@ -1363,6 +1401,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1428,6 +1467,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column dd; alter table bar drop column a, drop column dd; @@ -1438,6 +1478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1503,6 +1544,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column aaa; alter table bar drop column a, drop column aaa; @@ -1513,6 +1555,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1578,6 +1621,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column bbb; alter table bar drop column a, drop column bbb; @@ -1588,6 +1632,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1653,6 +1698,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column ccc; alter table bar drop column a, drop column ccc; @@ -1663,6 +1709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1728,6 +1775,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column ddd; alter table bar drop column a, drop column ddd; @@ -1738,6 +1786,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1803,6 +1852,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column a; alter table bar drop column b, drop column a; @@ -1813,6 +1863,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1878,6 +1929,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column c; alter table bar drop column b, drop column c; @@ -1888,6 +1940,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -1953,6 +2006,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column d; alter table bar drop column b, drop column d; @@ -1963,6 +2017,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2083,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column aa; alter table bar drop column b, drop column aa; @@ -2038,6 +2094,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2103,6 +2160,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column bb; alter table bar drop column b, drop column bb; @@ -2113,6 +2171,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2178,6 +2237,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column cc; alter table bar drop column b, drop column cc; @@ -2188,6 +2248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2253,6 +2314,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column dd; alter table bar drop column b, drop column dd; @@ -2263,6 +2325,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2328,6 +2391,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column aaa; alter table bar drop column b, drop column aaa; @@ -2338,6 +2402,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2403,6 +2468,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column bbb; alter table bar drop column b, drop column bbb; @@ -2413,6 +2479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2478,6 +2545,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column ccc; alter table bar drop column b, drop column ccc; @@ -2488,6 +2556,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2553,6 +2622,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column ddd; alter table bar drop column b, drop column ddd; @@ -2563,6 +2633,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2628,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column a; alter table bar drop column c, drop column a; @@ -2638,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2776,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column b; alter table bar drop column c, drop column b; @@ -2713,6 +2787,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2778,6 +2853,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column d; alter table bar drop column c, drop column d; @@ -2788,6 +2864,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2853,6 +2930,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column aa; alter table bar drop column c, drop column aa; @@ -2863,6 +2941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -2928,6 +3007,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column bb; alter table bar drop column c, drop column bb; @@ -2938,6 +3018,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3003,6 +3084,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column cc; alter table bar drop column c, drop column cc; @@ -3013,6 +3095,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3078,6 +3161,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column dd; alter table bar drop column c, drop column dd; @@ -3088,6 +3172,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3153,6 +3238,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column aaa; alter table bar drop column c, drop column aaa; @@ -3163,6 +3249,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3228,6 +3315,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column bbb; alter table bar drop column c, drop column bbb; @@ -3238,6 +3326,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3303,6 +3392,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column ccc; alter table bar drop column c, drop column ccc; @@ -3313,6 +3403,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3469,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column ddd; alter table bar drop column c, drop column ddd; @@ -3388,6 +3480,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3453,6 +3546,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column a; alter table bar drop column d, drop column a; @@ -3463,6 +3557,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3528,6 +3623,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column b; alter table bar drop column d, drop column b; @@ -3538,6 +3634,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3603,6 +3700,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column c; alter table bar drop column d, drop column c; @@ -3613,6 +3711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3678,6 +3777,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column aa; alter table bar drop column d, drop column aa; @@ -3688,6 +3788,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3753,6 +3854,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column bb; alter table bar drop column d, drop column bb; @@ -3763,6 +3865,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3828,6 +3931,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column cc; alter table bar drop column d, drop column cc; @@ -3838,6 +3942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3903,6 +4008,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column dd; alter table bar drop column d, drop column dd; @@ -3913,6 +4019,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -3978,6 +4085,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column aaa; alter table bar drop column d, drop column aaa; @@ -3988,6 +4096,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4162,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column bbb; alter table bar drop column d, drop column bbb; @@ -4063,6 +4173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4128,6 +4239,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column ccc; alter table bar drop column d, drop column ccc; @@ -4138,6 +4250,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4203,6 +4316,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column ddd; alter table bar drop column d, drop column ddd; @@ -4213,6 +4327,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4278,6 +4393,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column a; alter table bar drop column aa, drop column a; @@ -4288,6 +4404,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4353,6 +4470,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column b; alter table bar drop column aa, drop column b; @@ -4363,6 +4481,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4428,6 +4547,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column c; alter table bar drop column aa, drop column c; @@ -4438,6 +4558,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4503,6 +4624,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column d; alter table bar drop column aa, drop column d; @@ -4513,6 +4635,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4578,6 +4701,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb; alter table bar drop column aa, drop column bb; @@ -4588,6 +4712,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4653,6 +4778,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column cc; alter table bar drop column aa, drop column cc; @@ -4663,6 +4789,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +4855,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column dd; alter table bar drop column aa, drop column dd; @@ -4738,6 +4866,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4803,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column aaa; alter table bar drop column aa, drop column aaa; @@ -4813,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4878,6 +5009,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bbb; alter table bar drop column aa, drop column bbb; @@ -4888,6 +5020,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -4953,6 +5086,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column ccc; alter table bar drop column aa, drop column ccc; @@ -4963,6 +5097,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5028,6 +5163,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column ddd; alter table bar drop column aa, drop column ddd; @@ -5038,6 +5174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5103,6 +5240,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column a; alter table bar drop column bb, drop column a; @@ -5113,6 +5251,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5178,6 +5317,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column b; alter table bar drop column bb, drop column b; @@ -5188,6 +5328,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5253,6 +5394,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column c; alter table bar drop column bb, drop column c; @@ -5263,6 +5405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5328,6 +5471,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column d; alter table bar drop column bb, drop column d; @@ -5338,6 +5482,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5548,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column aa; alter table bar drop column bb, drop column aa; @@ -5413,6 +5559,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5478,6 +5625,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column cc; alter table bar drop column bb, drop column cc; @@ -5488,6 +5636,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5553,6 +5702,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column dd; alter table bar drop column bb, drop column dd; @@ -5563,6 +5713,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5628,6 +5779,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column aaa; alter table bar drop column bb, drop column aaa; @@ -5638,6 +5790,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5703,6 +5856,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column bbb; alter table bar drop column bb, drop column bbb; @@ -5713,6 +5867,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5778,6 +5933,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column ccc; alter table bar drop column bb, drop column ccc; @@ -5788,6 +5944,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5853,6 +6010,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bb, drop column ddd; alter table bar drop column bb, drop column ddd; @@ -5863,6 +6021,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -5928,6 +6087,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column a; alter table bar drop column cc, drop column a; @@ -5938,6 +6098,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6003,6 +6164,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column b; alter table bar drop column cc, drop column b; @@ -6013,6 +6175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6078,6 +6241,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column c; alter table bar drop column cc, drop column c; @@ -6088,6 +6252,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6153,6 +6318,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column d; alter table bar drop column cc, drop column d; @@ -6163,6 +6329,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6228,6 +6395,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column aa; alter table bar drop column cc, drop column aa; @@ -6238,6 +6406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6303,6 +6472,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column bb; alter table bar drop column cc, drop column bb; @@ -6313,6 +6483,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6378,6 +6549,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column dd; alter table bar drop column cc, drop column dd; @@ -6388,6 +6560,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6453,6 +6626,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column aaa; alter table bar drop column cc, drop column aaa; @@ -6463,6 +6637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6528,6 +6703,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column bbb; alter table bar drop column cc, drop column bbb; @@ -6538,6 +6714,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6603,6 +6780,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column ccc; alter table bar drop column cc, drop column ccc; @@ -6613,6 +6791,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6678,6 +6857,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column cc, drop column ddd; alter table bar drop column cc, drop column ddd; @@ -6688,6 +6868,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6753,6 +6934,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column a; alter table bar drop column dd, drop column a; @@ -6763,6 +6945,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6828,6 +7011,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column b; alter table bar drop column dd, drop column b; @@ -6838,6 +7022,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6903,6 +7088,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column c; alter table bar drop column dd, drop column c; @@ -6913,6 +7099,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -6978,6 +7165,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column d; alter table bar drop column dd, drop column d; @@ -6988,6 +7176,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7053,6 +7242,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column aa; alter table bar drop column dd, drop column aa; @@ -7063,6 +7253,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7128,6 +7319,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column bb; alter table bar drop column dd, drop column bb; @@ -7138,6 +7330,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7203,6 +7396,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column cc; alter table bar drop column dd, drop column cc; @@ -7213,6 +7407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7278,6 +7473,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column aaa; alter table bar drop column dd, drop column aaa; @@ -7288,6 +7484,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7353,6 +7550,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column bbb; alter table bar drop column dd, drop column bbb; @@ -7363,6 +7561,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7428,6 +7627,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column ccc; alter table bar drop column dd, drop column ccc; @@ -7438,6 +7638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7503,6 +7704,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column dd, drop column ddd; alter table bar drop column dd, drop column ddd; @@ -7513,6 +7715,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7578,6 +7781,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column a; alter table bar drop column aaa, drop column a; @@ -7588,6 +7792,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7653,6 +7858,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column b; alter table bar drop column aaa, drop column b; @@ -7663,6 +7869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7728,6 +7935,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column c; alter table bar drop column aaa, drop column c; @@ -7738,6 +7946,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7803,6 +8012,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column d; alter table bar drop column aaa, drop column d; @@ -7813,6 +8023,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7878,6 +8089,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column aa; alter table bar drop column aaa, drop column aa; @@ -7888,6 +8100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -7953,6 +8166,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bb; alter table bar drop column aaa, drop column bb; @@ -7963,6 +8177,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8028,6 +8243,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column cc; alter table bar drop column aaa, drop column cc; @@ -8038,6 +8254,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8103,6 +8320,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column dd; alter table bar drop column aaa, drop column dd; @@ -8113,6 +8331,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8178,6 +8397,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -8188,6 +8408,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8253,6 +8474,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -8263,6 +8485,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8328,6 +8551,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -8338,6 +8562,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8403,6 +8628,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column a; alter table bar drop column bbb, drop column a; @@ -8413,6 +8639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8478,6 +8705,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column b; alter table bar drop column bbb, drop column b; @@ -8488,6 +8716,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8553,6 +8782,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column c; alter table bar drop column bbb, drop column c; @@ -8563,6 +8793,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8628,6 +8859,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column d; alter table bar drop column bbb, drop column d; @@ -8638,6 +8870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8703,6 +8936,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column aa; alter table bar drop column bbb, drop column aa; @@ -8713,6 +8947,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8778,6 +9013,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column bb; alter table bar drop column bbb, drop column bb; @@ -8788,6 +9024,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8853,6 +9090,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column cc; alter table bar drop column bbb, drop column cc; @@ -8863,6 +9101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -8928,6 +9167,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column dd; alter table bar drop column bbb, drop column dd; @@ -8938,6 +9178,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9003,6 +9244,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -9013,6 +9255,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9078,6 +9321,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -9088,6 +9332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9153,6 +9398,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -9163,6 +9409,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9228,6 +9475,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column a; alter table bar drop column ccc, drop column a; @@ -9238,6 +9486,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9303,6 +9552,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column b; alter table bar drop column ccc, drop column b; @@ -9313,6 +9563,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9378,6 +9629,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column c; alter table bar drop column ccc, drop column c; @@ -9388,6 +9640,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9453,6 +9706,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column d; alter table bar drop column ccc, drop column d; @@ -9463,6 +9717,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9528,6 +9783,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column aa; alter table bar drop column ccc, drop column aa; @@ -9538,6 +9794,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9603,6 +9860,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column bb; alter table bar drop column ccc, drop column bb; @@ -9613,6 +9871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9678,6 +9937,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column cc; alter table bar drop column ccc, drop column cc; @@ -9688,6 +9948,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9753,6 +10014,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column dd; alter table bar drop column ccc, drop column dd; @@ -9763,6 +10025,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9828,6 +10091,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -9838,6 +10102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9903,6 +10168,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -9913,6 +10179,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -9978,6 +10245,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -9988,6 +10256,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10053,6 +10322,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column a; alter table bar drop column ddd, drop column a; @@ -10063,6 +10333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10128,6 +10399,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column b; alter table bar drop column ddd, drop column b; @@ -10138,6 +10410,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10203,6 +10476,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column c; alter table bar drop column ddd, drop column c; @@ -10213,6 +10487,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10278,6 +10553,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column d; alter table bar drop column ddd, drop column d; @@ -10288,6 +10564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10353,6 +10630,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column aa; alter table bar drop column ddd, drop column aa; @@ -10363,6 +10641,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10428,6 +10707,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column bb; alter table bar drop column ddd, drop column bb; @@ -10438,6 +10718,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10503,6 +10784,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column cc; alter table bar drop column ddd, drop column cc; @@ -10513,6 +10795,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10578,6 +10861,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column dd; alter table bar drop column ddd, drop column dd; @@ -10588,6 +10872,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10653,6 +10938,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -10663,6 +10949,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10728,6 +11015,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -10738,6 +11026,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10803,6 +11092,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -10813,6 +11103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10878,6 +11169,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c; alter table bar drop column a, drop column b, drop column c; @@ -10888,6 +11180,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -10953,6 +11246,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column d; alter table bar drop column a, drop column b, drop column d; @@ -10963,6 +11257,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11028,6 +11323,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column c, drop column d; alter table bar drop column a, drop column c, drop column d; @@ -11038,6 +11334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11103,6 +11400,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column c, drop column d; alter table bar drop column b, drop column c, drop column d; @@ -11113,6 +11411,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11178,6 +11477,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c, drop column d; alter table bar drop column a, drop column b, drop column c, drop column d; @@ -11188,6 +11488,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11253,6 +11554,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb, drop column cc, drop column dd; alter table bar drop column aa, drop column bb, drop column cc, drop column dd; @@ -11263,6 +11565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11328,6 +11631,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11338,6 +11642,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11403,6 +11708,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c, drop column d, drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column a, drop column b, drop column c, drop column d, drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11413,6 +11719,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11478,6 +11785,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aa, drop column bb, drop column cc, drop column dd, drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aa, drop column bb, drop column cc, drop column dd, drop column aaa, drop column bbb, drop column ccc, drop column ddd; @@ -11488,6 +11796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, "adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,"oifds",NULL,"fdsjfds"); @@ -11553,6 +11862,7 @@ insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "ad insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew", "rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c, drop column d, drop column aa, drop column bb, drop column cc, drop column dd; alter table bar drop column a, drop column b, drop column c, drop column d, drop column aa, drop column bb, drop column cc, drop column dd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_add.test index 3b29114bfda..aadd54753d3 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_add.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,11 +15,13 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -28,11 +32,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -43,11 +49,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -58,11 +66,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -73,11 +83,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -88,11 +100,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -103,11 +117,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -118,11 +134,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -133,11 +151,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -148,11 +168,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -163,11 +185,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -178,11 +202,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -193,11 +219,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -208,11 +236,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -223,11 +253,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -238,11 +270,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -253,11 +287,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -268,11 +304,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -283,11 +321,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -298,11 +338,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -313,11 +355,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -328,11 +372,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -343,11 +389,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -358,11 +406,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -373,11 +423,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -388,11 +440,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -403,11 +457,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -418,11 +474,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -433,11 +491,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -448,11 +508,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -463,11 +525,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -478,11 +542,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -493,11 +559,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -508,11 +576,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -523,11 +593,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -538,11 +610,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -553,11 +627,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -568,11 +644,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -583,11 +661,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -598,11 +678,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -613,11 +695,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -628,11 +712,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -643,11 +729,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -658,11 +746,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -673,11 +763,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -688,11 +780,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -703,11 +797,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -718,11 +814,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -733,11 +831,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -748,11 +848,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -763,11 +865,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -778,11 +882,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -793,11 +899,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -808,11 +916,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,11 +933,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -838,11 +950,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -853,11 +967,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -868,11 +984,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -883,11 +1001,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -898,11 +1018,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -913,11 +1035,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -928,11 +1052,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -943,11 +1069,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -958,11 +1086,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -973,11 +1103,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -988,11 +1120,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1003,11 +1137,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1018,11 +1154,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1033,11 +1171,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1048,11 +1188,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1063,11 +1205,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1078,11 +1222,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1093,11 +1239,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1108,11 +1256,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -1123,11 +1273,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -1138,11 +1290,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -1153,11 +1307,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1168,11 +1324,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1183,11 +1341,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -1198,11 +1358,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -1213,11 +1375,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -1228,11 +1392,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -1243,11 +1409,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -1258,11 +1426,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -1273,11 +1443,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1288,11 +1460,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1303,11 +1477,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -1318,11 +1494,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -1333,11 +1511,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -1348,11 +1528,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -1363,11 +1545,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1378,11 +1562,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -1393,11 +1579,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1408,11 +1596,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1423,11 +1613,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -1438,11 +1630,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -1453,11 +1647,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -1468,11 +1664,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -1483,11 +1681,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1498,11 +1698,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -1513,11 +1715,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1528,11 +1732,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1543,11 +1749,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -1558,11 +1766,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -1573,11 +1783,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -1588,11 +1800,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -1603,11 +1817,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -1618,11 +1834,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -1633,11 +1851,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -1648,11 +1868,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1663,11 +1885,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -1678,11 +1902,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -1693,11 +1919,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -1708,11 +1936,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -1723,11 +1953,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -1738,11 +1970,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -1753,11 +1987,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -1768,11 +2004,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1783,11 +2021,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -1798,11 +2038,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -1813,11 +2055,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -1828,11 +2072,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -1843,11 +2089,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -1858,11 +2106,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -1873,11 +2123,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -1888,11 +2140,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,11 +2157,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -1918,11 +2174,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -1933,11 +2191,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -1948,11 +2208,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -1963,11 +2225,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -1978,11 +2242,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -1993,11 +2259,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -2008,11 +2276,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2023,11 +2293,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -2038,11 +2310,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -2053,11 +2327,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -2068,11 +2344,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -2083,11 +2361,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2098,11 +2378,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -2113,11 +2395,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2128,11 +2412,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2143,11 +2429,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -2158,11 +2446,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -2173,11 +2463,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -2188,11 +2480,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -2203,11 +2497,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2218,11 +2514,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -2233,11 +2531,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2248,11 +2548,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2263,11 +2565,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -2278,11 +2582,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -2293,11 +2599,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -2308,11 +2616,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -2323,11 +2633,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2338,11 +2650,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2353,11 +2667,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2368,11 +2684,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2383,11 +2701,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -2398,11 +2718,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -2413,11 +2735,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -2428,11 +2752,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -2443,11 +2769,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2458,11 +2786,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -2473,11 +2803,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2488,11 +2820,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2503,11 +2837,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -2518,11 +2854,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -2533,11 +2871,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -2548,11 +2888,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -2563,11 +2905,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2578,11 +2922,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -2593,11 +2939,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2608,11 +2956,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2623,11 +2973,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -2638,11 +2990,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -2653,11 +3007,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -2668,11 +3024,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -2683,11 +3041,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2698,11 +3058,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -2713,11 +3075,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2728,11 +3092,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2743,11 +3109,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -2758,11 +3126,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -2773,11 +3143,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -2788,11 +3160,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -2803,11 +3177,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2818,11 +3194,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -2833,11 +3211,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2848,11 +3228,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2863,11 +3245,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -2878,11 +3262,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -2893,11 +3279,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -2908,11 +3296,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -2923,11 +3313,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -2938,11 +3330,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -2953,11 +3347,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -2968,11 +3364,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -2983,11 +3381,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -2998,11 +3398,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -3013,11 +3415,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -3028,11 +3432,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -3043,11 +3449,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -3058,11 +3466,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -3073,11 +3483,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -3088,11 +3500,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -3103,11 +3517,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -3118,11 +3534,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -3133,11 +3551,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -3148,11 +3568,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -3163,11 +3585,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -3178,11 +3602,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -3193,11 +3619,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -3208,11 +3636,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -3223,11 +3653,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -3238,11 +3670,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -3253,11 +3687,13 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_drop.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_drop.test index 1076165a225..ae81d4c9ff5 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_drop.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_fixed_drop.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_add.test index c36ccf85c04..957be39a313 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_add.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_drop.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_drop.test index be93a988c7a..c953b35c40f 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_drop.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_all_var_drop.test @@ -1,3 +1,5 @@ +# This test takes rather long time so let us run it only in --big-test mode +--source include/big_test.inc #--source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE='tokudb'; @@ -13,11 +15,13 @@ let $diff_tables= test.foo, test.bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa; alter table bar drop column aaa; @@ -28,11 +32,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb; alter table bar drop column bbb; @@ -43,11 +49,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc; alter table bar drop column ccc; @@ -58,11 +66,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd; alter table bar drop column ddd; @@ -73,11 +83,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -88,11 +100,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -103,11 +117,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -118,11 +134,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -133,11 +151,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -148,11 +168,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -163,11 +185,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -178,11 +202,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -193,11 +219,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -208,11 +236,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -223,11 +253,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -238,11 +270,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -253,11 +287,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb, drop column ccc; alter table bar drop column aaa, drop column bbb, drop column ccc; @@ -268,11 +304,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ddd; @@ -283,11 +321,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column ccc, drop column ddd; @@ -298,11 +338,13 @@ drop table foo; drop table bar; create table foo (aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL); insert into foo values (-1,NULL,'2008-1-1',NULL); insert into foo values (NULL,12345678987,NULL,1); insert into foo values (2,20,'1999-11-11',0); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ccc, drop column ddd; alter table bar drop column bbb, drop column ccc, drop column ddd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add.test index 607c29dd3dd..b86ac4cab17 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,6 +2043,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1920,6 +2061,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1930,6 +2072,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1947,6 +2090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1957,6 +2101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1974,6 +2119,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1984,6 +2130,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2001,6 +2148,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -2011,6 +2159,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2177,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2188,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2055,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -2065,6 +2217,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2082,6 +2235,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2092,6 +2246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2109,6 +2264,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2119,6 +2275,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2136,6 +2293,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2146,6 +2304,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2163,6 +2322,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2173,6 +2333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2190,6 +2351,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2200,6 +2362,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2217,6 +2380,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2227,6 +2391,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2244,6 +2409,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2254,6 +2420,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2271,6 +2438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2281,6 +2449,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2298,6 +2467,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2308,6 +2478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2325,6 +2496,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2335,6 +2507,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2352,6 +2525,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2362,6 +2536,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2379,6 +2554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2389,6 +2565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2406,6 +2583,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2416,6 +2594,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2433,6 +2612,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2443,6 +2623,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2460,6 +2641,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2470,6 +2652,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2487,6 +2670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2497,6 +2681,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2514,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2524,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2541,6 +2728,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2551,6 +2739,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2568,6 +2757,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2578,6 +2768,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2605,6 +2797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2622,6 +2815,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2632,6 +2826,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2649,6 +2844,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2659,6 +2855,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2676,6 +2873,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2686,6 +2884,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2713,6 +2913,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2730,6 +2931,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2740,6 +2942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2757,6 +2960,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2767,6 +2971,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2784,6 +2989,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2794,6 +3000,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2811,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2821,6 +3029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2838,6 +3047,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2848,6 +3058,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2865,6 +3076,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2875,6 +3087,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2892,6 +3105,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2902,6 +3116,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2919,6 +3134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2929,6 +3145,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2946,6 +3163,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2956,6 +3174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2973,6 +3192,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2983,6 +3203,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3000,6 +3221,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -3010,6 +3232,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3027,6 +3250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -3037,6 +3261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3054,6 +3279,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -3064,6 +3290,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3081,6 +3308,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -3091,6 +3319,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3108,6 +3337,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3118,6 +3348,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3135,6 +3366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3145,6 +3377,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3162,6 +3395,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3172,6 +3406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3189,6 +3424,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3199,6 +3435,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3216,6 +3453,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3226,6 +3464,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3243,6 +3482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3253,6 +3493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3270,6 +3511,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3280,6 +3522,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3540,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3307,6 +3551,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3324,6 +3569,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3334,6 +3580,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3351,6 +3598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3361,6 +3609,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3627,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3405,6 +3656,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3415,6 +3667,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3432,6 +3685,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3442,6 +3696,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3459,6 +3714,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3469,6 +3725,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3486,6 +3743,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3496,6 +3754,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3513,6 +3772,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3523,6 +3783,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3540,6 +3801,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3550,6 +3812,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3567,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3577,6 +3841,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3594,6 +3859,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3604,6 +3870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3888,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3631,6 +3899,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3648,6 +3917,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3658,6 +3928,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3675,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3685,6 +3957,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3702,6 +3975,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3712,6 +3986,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3729,6 +4004,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3739,6 +4015,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3756,6 +4033,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3766,6 +4044,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3783,6 +4062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3793,6 +4073,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3810,6 +4091,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3820,6 +4102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3837,6 +4120,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3847,6 +4131,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3864,6 +4149,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3874,6 +4160,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3891,6 +4178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3901,6 +4189,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3918,6 +4207,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3928,6 +4218,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3945,6 +4236,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3955,6 +4247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3972,6 +4265,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3982,6 +4276,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4294,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -4009,6 +4305,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4026,6 +4323,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -4036,6 +4334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4352,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4363,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4080,6 +4381,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -4090,6 +4392,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4107,6 +4410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -4117,6 +4421,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4134,6 +4439,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -4144,6 +4450,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4161,6 +4468,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -4171,6 +4479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4188,6 +4497,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4198,6 +4508,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4215,6 +4526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4225,6 +4537,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4242,6 +4555,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4252,6 +4566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4269,6 +4584,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4279,6 +4595,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4296,6 +4613,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -4306,6 +4624,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4323,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4333,6 +4653,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4350,6 +4671,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -4360,6 +4682,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4377,6 +4700,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -4387,6 +4711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4404,6 +4729,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4414,6 +4740,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4431,6 +4758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4441,6 +4769,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4458,6 +4787,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4468,6 +4798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4485,6 +4816,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4495,6 +4827,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4512,6 +4845,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -4522,6 +4856,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4539,6 +4874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4549,6 +4885,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4566,6 +4903,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -4576,6 +4914,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4593,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -4603,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4620,6 +4961,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4630,6 +4972,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4647,6 +4990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4657,6 +5001,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4674,6 +5019,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4684,6 +5030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5048,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4711,6 +5059,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +5077,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -4738,6 +5088,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4755,6 +5106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4765,6 +5117,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4782,6 +5135,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -4792,6 +5146,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4809,6 +5164,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -4819,6 +5175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4836,6 +5193,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4846,6 +5204,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4863,6 +5222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4873,6 +5233,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4890,6 +5251,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4900,6 +5262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4917,6 +5280,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4927,6 +5291,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4944,6 +5309,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -4954,6 +5320,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4971,6 +5338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4981,6 +5349,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4998,6 +5367,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -5008,6 +5378,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5025,6 +5396,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -5035,6 +5407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5052,6 +5425,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5062,6 +5436,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5079,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -5089,6 +5465,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5106,6 +5483,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5116,6 +5494,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5133,6 +5512,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5143,6 +5523,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5160,6 +5541,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -5170,6 +5552,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5187,6 +5570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -5197,6 +5581,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5214,6 +5599,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -5224,6 +5610,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5241,6 +5628,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -5251,6 +5639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5268,6 +5657,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5278,6 +5668,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5295,6 +5686,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -5305,6 +5697,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5322,6 +5715,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5332,6 +5726,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5349,6 +5744,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5359,6 +5755,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5376,6 +5773,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -5386,6 +5784,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -5413,6 +5813,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5430,6 +5831,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -5440,6 +5842,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5457,6 +5860,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -5467,6 +5871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5484,6 +5889,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5494,6 +5900,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5511,6 +5918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5521,6 +5929,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5538,6 +5947,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5548,6 +5958,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5565,6 +5976,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5575,6 +5987,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5592,6 +6005,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -5602,6 +6016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +6034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5629,6 +6045,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5646,6 +6063,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -5656,6 +6074,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5673,6 +6092,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -5683,6 +6103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5700,6 +6121,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5710,6 +6132,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5727,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5737,6 +6161,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5754,6 +6179,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5764,6 +6190,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5781,6 +6208,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5791,6 +6219,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5808,6 +6237,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -5818,6 +6248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5835,6 +6266,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5845,6 +6277,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5862,6 +6295,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add2.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add2.test index aa91da1d0fb..e22d2985df0 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add2.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedblob_add2.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb; alter table bar add column added_2 bigint default -1 after bb; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb; alter table bar add column added_7 text default NULL after bb; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,6 +2043,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1920,6 +2061,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1930,6 +2072,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1947,6 +2090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1957,6 +2101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1974,6 +2119,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1984,6 +2130,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2001,6 +2148,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -2011,6 +2159,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2177,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2188,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2055,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -2065,6 +2217,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2082,6 +2235,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2092,6 +2246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2109,6 +2264,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2119,6 +2275,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2136,6 +2293,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2146,6 +2304,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2163,6 +2322,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2173,6 +2333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2190,6 +2351,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2200,6 +2362,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2217,6 +2380,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2227,6 +2391,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2244,6 +2409,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2254,6 +2420,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2271,6 +2438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2281,6 +2449,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2298,6 +2467,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2308,6 +2478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2325,6 +2496,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2335,6 +2507,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2352,6 +2525,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2362,6 +2536,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2379,6 +2554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2389,6 +2565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2406,6 +2583,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2416,6 +2594,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2433,6 +2612,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2443,6 +2623,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2460,6 +2641,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2470,6 +2652,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2487,6 +2670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2497,6 +2681,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2514,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2524,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2541,6 +2728,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2551,6 +2739,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2568,6 +2757,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2578,6 +2768,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2605,6 +2797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2622,6 +2815,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2632,6 +2826,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2649,6 +2844,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2659,6 +2855,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2676,6 +2873,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2686,6 +2884,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2713,6 +2913,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2730,6 +2931,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2740,6 +2942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2757,6 +2960,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2767,6 +2971,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2784,6 +2989,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2794,6 +3000,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2811,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2821,6 +3029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2838,6 +3047,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2848,6 +3058,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2865,6 +3076,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2875,6 +3087,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2892,6 +3105,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2902,6 +3116,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2919,6 +3134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2929,6 +3145,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2946,6 +3163,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2956,6 +3174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2973,6 +3192,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2983,6 +3203,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3000,6 +3221,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -3010,6 +3232,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3027,6 +3250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -3037,6 +3261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3054,6 +3279,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -3064,6 +3290,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3081,6 +3308,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -3091,6 +3319,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3108,6 +3337,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3118,6 +3348,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3135,6 +3366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3145,6 +3377,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3162,6 +3395,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3172,6 +3406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3189,6 +3424,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3199,6 +3435,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3216,6 +3453,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3226,6 +3464,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3243,6 +3482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3253,6 +3493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3270,6 +3511,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3280,6 +3522,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3540,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3307,6 +3551,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3324,6 +3569,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3334,6 +3580,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3351,6 +3598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3361,6 +3609,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3627,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3405,6 +3656,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3415,6 +3667,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3432,6 +3685,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3442,6 +3696,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3459,6 +3714,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3469,6 +3725,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3486,6 +3743,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3496,6 +3754,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3513,6 +3772,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3523,6 +3783,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3540,6 +3801,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3550,6 +3812,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3567,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3577,6 +3841,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3594,6 +3859,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3604,6 +3870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3888,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3631,6 +3899,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3648,6 +3917,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3658,6 +3928,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3675,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3685,6 +3957,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3702,6 +3975,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3712,6 +3986,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3729,6 +4004,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3739,6 +4015,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3756,6 +4033,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3766,6 +4044,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3783,6 +4062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3793,6 +4073,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3810,6 +4091,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3820,6 +4102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3837,6 +4120,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3847,6 +4131,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3864,6 +4149,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3874,6 +4160,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3891,6 +4178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3901,6 +4189,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3918,6 +4207,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3928,6 +4218,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3945,6 +4236,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3955,6 +4247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3972,6 +4265,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3982,6 +4276,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4294,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -4009,6 +4305,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4026,6 +4323,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -4036,6 +4334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4352,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4363,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4080,6 +4381,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -4090,6 +4392,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4107,6 +4410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -4117,6 +4421,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4134,6 +4439,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_11 bigint default NULL after bb; @@ -4144,6 +4450,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4161,6 +4468,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -4171,6 +4479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4188,6 +4497,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4198,6 +4508,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4215,6 +4526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -4225,6 +4537,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4242,6 +4555,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4252,6 +4566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4269,6 +4584,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4279,6 +4595,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4296,6 +4613,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_71 text default NULL after bb; @@ -4306,6 +4624,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4323,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_1 bigint default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -4333,6 +4653,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4350,6 +4671,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_11 bigint default NULL after bb; @@ -4360,6 +4682,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4377,6 +4700,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -4387,6 +4711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4404,6 +4729,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4414,6 +4740,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4431,6 +4758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -4441,6 +4769,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4458,6 +4787,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4468,6 +4798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4485,6 +4816,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4495,6 +4827,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4512,6 +4845,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_71 text default NULL after bb; @@ -4522,6 +4856,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4539,6 +4874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_2 bigint default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -4549,6 +4885,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4566,6 +4903,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_11 bigint default NULL after bb; @@ -4576,6 +4914,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4593,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_21 bigint default 1234 after bb; @@ -4603,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4620,6 +4961,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4630,6 +4972,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4647,6 +4990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_41 varchar(10) default NULL after bb; @@ -4657,6 +5001,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4674,6 +5019,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4684,6 +5030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5048,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4711,6 +5059,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +5077,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_71 text default NULL after bb; @@ -4738,6 +5088,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4755,6 +5106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_3 bigint NOT NULL default -1 after bb, add column added_81 mediumtext default NULL after bb; @@ -4765,6 +5117,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4782,6 +5135,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_11 bigint default NULL after bb; @@ -4792,6 +5146,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4809,6 +5164,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -4819,6 +5175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4836,6 +5193,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -4846,6 +5204,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4863,6 +5222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -4873,6 +5233,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4890,6 +5251,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -4900,6 +5262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4917,6 +5280,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -4927,6 +5291,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4944,6 +5309,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_71 text default NULL after bb; @@ -4954,6 +5320,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4971,6 +5338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_4 varchar(10) default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -4981,6 +5349,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4998,6 +5367,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_11 bigint default NULL after bb; @@ -5008,6 +5378,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5025,6 +5396,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_21 bigint default 1234 after bb; @@ -5035,6 +5407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5052,6 +5425,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5062,6 +5436,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5079,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_41 varchar(10) default NULL after bb; @@ -5089,6 +5465,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5106,6 +5483,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5116,6 +5494,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5133,6 +5512,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5143,6 +5523,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5160,6 +5541,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_71 text default NULL after bb; @@ -5170,6 +5552,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5187,6 +5570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_5 varchar(10) default "qwerty" after bb, add column added_81 mediumtext default NULL after bb; @@ -5197,6 +5581,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5214,6 +5599,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_11 bigint default NULL after bb; @@ -5224,6 +5610,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5241,6 +5628,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_21 bigint default 1234 after bb; @@ -5251,6 +5639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5268,6 +5657,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5278,6 +5668,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5295,6 +5686,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_41 varchar(10) default NULL after bb; @@ -5305,6 +5697,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5322,6 +5715,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5332,6 +5726,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5349,6 +5744,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5359,6 +5755,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5376,6 +5773,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_71 text default NULL after bb; @@ -5386,6 +5784,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bb, add column added_81 mediumtext default NULL after bb; @@ -5413,6 +5813,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5430,6 +5831,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_11 bigint default NULL after bb; @@ -5440,6 +5842,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5457,6 +5860,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_7 text default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -5467,6 +5871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5484,6 +5889,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_7 text default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5494,6 +5900,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5511,6 +5918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -5521,6 +5929,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5538,6 +5947,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5548,6 +5958,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5565,6 +5976,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_7 text default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5575,6 +5987,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5592,6 +6005,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_71 text default NULL after bb; @@ -5602,6 +6016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +6034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_7 text default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -5629,6 +6045,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5646,6 +6063,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_11 bigint default NULL after bb; @@ -5656,6 +6074,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5673,6 +6092,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_21 bigint default 1234 after bb; @@ -5683,6 +6103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5700,6 +6121,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_31 bigint NOT NULL default 54 after bb; @@ -5710,6 +6132,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5727,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_41 varchar(10) default NULL after bb; @@ -5737,6 +6161,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5754,6 +6179,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_51 varchar(10) default "abracadab" after bb; @@ -5764,6 +6190,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5781,6 +6208,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_61 varchar(10) NOT NULL default "abracadab" after bb; @@ -5791,6 +6219,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5808,6 +6237,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_71 text default NULL after bb; @@ -5818,6 +6248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5835,6 +6266,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; alter table bar add column added_8 mediumtext default NULL after bb, add column added_81 mediumtext default NULL after bb; @@ -5845,6 +6277,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5862,6 +6295,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add.test index 20ecc14b733..d2dc63184ae 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b; alter table bar add column added_2 bigint default -1 after b; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b; alter table bar add column added_7 text default NULL after b; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,6 +2043,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1920,6 +2061,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1930,6 +2072,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1947,6 +2090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1957,6 +2101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1974,6 +2119,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1984,6 +2130,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2001,6 +2148,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -2011,6 +2159,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2177,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2188,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2055,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -2065,6 +2217,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2082,6 +2235,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2092,6 +2246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2109,6 +2264,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2119,6 +2275,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2136,6 +2293,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2146,6 +2304,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2163,6 +2322,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2173,6 +2333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2190,6 +2351,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2200,6 +2362,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2217,6 +2380,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2227,6 +2391,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2244,6 +2409,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2254,6 +2420,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2271,6 +2438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2281,6 +2449,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2298,6 +2467,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2308,6 +2478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2325,6 +2496,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2335,6 +2507,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2352,6 +2525,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2362,6 +2536,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2379,6 +2554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2389,6 +2565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2406,6 +2583,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2416,6 +2594,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2433,6 +2612,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2443,6 +2623,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2460,6 +2641,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2470,6 +2652,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2487,6 +2670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2497,6 +2681,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2514,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2524,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2541,6 +2728,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2551,6 +2739,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2568,6 +2757,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2578,6 +2768,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2605,6 +2797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2622,6 +2815,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2632,6 +2826,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2649,6 +2844,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2659,6 +2855,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2676,6 +2873,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2686,6 +2884,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2713,6 +2913,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2730,6 +2931,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2740,6 +2942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2757,6 +2960,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2767,6 +2971,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2784,6 +2989,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2794,6 +3000,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2811,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2821,6 +3029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2838,6 +3047,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2848,6 +3058,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2865,6 +3076,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2875,6 +3087,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2892,6 +3105,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2902,6 +3116,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2919,6 +3134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2929,6 +3145,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2946,6 +3163,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2956,6 +3174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2973,6 +3192,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2983,6 +3203,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3000,6 +3221,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -3010,6 +3232,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3027,6 +3250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -3037,6 +3261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3054,6 +3279,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -3064,6 +3290,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3081,6 +3308,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -3091,6 +3319,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3108,6 +3337,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3118,6 +3348,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3135,6 +3366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3145,6 +3377,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3162,6 +3395,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3172,6 +3406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3189,6 +3424,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3199,6 +3435,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3216,6 +3453,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3226,6 +3464,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3243,6 +3482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3253,6 +3493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3270,6 +3511,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3280,6 +3522,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3540,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3307,6 +3551,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3324,6 +3569,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3334,6 +3580,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3351,6 +3598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3361,6 +3609,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3627,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3405,6 +3656,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3415,6 +3667,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3432,6 +3685,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3442,6 +3696,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3459,6 +3714,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3469,6 +3725,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3486,6 +3743,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3496,6 +3754,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3513,6 +3772,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3523,6 +3783,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3540,6 +3801,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3550,6 +3812,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3567,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3577,6 +3841,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3594,6 +3859,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3604,6 +3870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3888,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3631,6 +3899,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3648,6 +3917,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3658,6 +3928,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3675,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3685,6 +3957,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3702,6 +3975,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3712,6 +3986,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3729,6 +4004,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3739,6 +4015,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3756,6 +4033,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3766,6 +4044,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3783,6 +4062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3793,6 +4073,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3810,6 +4091,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3820,6 +4102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3837,6 +4120,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3847,6 +4131,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3864,6 +4149,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3874,6 +4160,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3891,6 +4178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3901,6 +4189,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3918,6 +4207,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3928,6 +4218,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3945,6 +4236,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3955,6 +4247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3972,6 +4265,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3982,6 +4276,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4294,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -4009,6 +4305,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4026,6 +4323,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -4036,6 +4334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4352,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4363,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4080,6 +4381,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -4090,6 +4392,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4107,6 +4410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -4117,6 +4421,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4134,6 +4439,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b; @@ -4144,6 +4450,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4161,6 +4468,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b; @@ -4171,6 +4479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4188,6 +4497,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4198,6 +4508,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4215,6 +4526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4225,6 +4537,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4242,6 +4555,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4252,6 +4566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4269,6 +4584,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4279,6 +4595,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4296,6 +4613,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b; @@ -4306,6 +4624,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4323,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4333,6 +4653,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4350,6 +4671,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b; @@ -4360,6 +4682,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4377,6 +4700,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b; @@ -4387,6 +4711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4404,6 +4729,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4414,6 +4740,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4431,6 +4758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4441,6 +4769,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4458,6 +4787,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4468,6 +4798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4485,6 +4816,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4495,6 +4827,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4512,6 +4845,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b; @@ -4522,6 +4856,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4539,6 +4874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4549,6 +4885,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4566,6 +4903,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b; @@ -4576,6 +4914,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4593,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b; @@ -4603,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4620,6 +4961,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4630,6 +4972,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4647,6 +4990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b; @@ -4657,6 +5001,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4674,6 +5019,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4684,6 +5030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5048,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4711,6 +5059,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +5077,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b; @@ -4738,6 +5088,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4755,6 +5106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b; @@ -4765,6 +5117,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4782,6 +5135,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b; @@ -4792,6 +5146,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4809,6 +5164,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b; @@ -4819,6 +5175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4836,6 +5193,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -4846,6 +5204,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4863,6 +5222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -4873,6 +5233,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4890,6 +5251,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -4900,6 +5262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4917,6 +5280,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -4927,6 +5291,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4944,6 +5309,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b; @@ -4954,6 +5320,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4971,6 +5338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b; @@ -4981,6 +5349,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4998,6 +5367,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b; @@ -5008,6 +5378,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5025,6 +5396,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b; @@ -5035,6 +5407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5052,6 +5425,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5062,6 +5436,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5079,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b; @@ -5089,6 +5465,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5106,6 +5483,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5116,6 +5494,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5133,6 +5512,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5143,6 +5523,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5160,6 +5541,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b; @@ -5170,6 +5552,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5187,6 +5570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b; @@ -5197,6 +5581,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5214,6 +5599,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b; @@ -5224,6 +5610,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5241,6 +5628,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b; @@ -5251,6 +5639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5268,6 +5657,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5278,6 +5668,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5295,6 +5686,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b; @@ -5305,6 +5697,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5322,6 +5715,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5332,6 +5726,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5349,6 +5744,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5359,6 +5755,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5376,6 +5773,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b; @@ -5386,6 +5784,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b; @@ -5413,6 +5813,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5430,6 +5831,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b; @@ -5440,6 +5842,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5457,6 +5860,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b; @@ -5467,6 +5871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5484,6 +5889,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5494,6 +5900,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5511,6 +5918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5521,6 +5929,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5538,6 +5947,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5548,6 +5958,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5565,6 +5976,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5575,6 +5987,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5592,6 +6005,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b; @@ -5602,6 +6016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +6034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5629,6 +6045,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5646,6 +6063,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b; @@ -5656,6 +6074,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5673,6 +6092,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b; @@ -5683,6 +6103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5700,6 +6121,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b; @@ -5710,6 +6132,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5727,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b; @@ -5737,6 +6161,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5754,6 +6179,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b; @@ -5764,6 +6190,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5781,6 +6208,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b; @@ -5791,6 +6219,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5808,6 +6237,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b; @@ -5818,6 +6248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5835,6 +6266,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b; @@ -5845,6 +6277,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5862,6 +6295,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add2.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add2.test index f32ecc93bf2..ba6ea7be44e 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add2.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_add2.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,6 +2043,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1920,6 +2061,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1930,6 +2072,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1947,6 +2090,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1957,6 +2101,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1974,6 +2119,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1984,6 +2130,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2001,6 +2148,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -2011,6 +2159,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2177,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2188,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2055,6 +2206,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -2065,6 +2217,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2082,6 +2235,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2092,6 +2246,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2109,6 +2264,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2119,6 +2275,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2136,6 +2293,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2146,6 +2304,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2163,6 +2322,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2173,6 +2333,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2190,6 +2351,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2200,6 +2362,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2217,6 +2380,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2227,6 +2391,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2244,6 +2409,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2254,6 +2420,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2271,6 +2438,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2281,6 +2449,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2298,6 +2467,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2308,6 +2478,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2325,6 +2496,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2335,6 +2507,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2352,6 +2525,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2362,6 +2536,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2379,6 +2554,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2389,6 +2565,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2406,6 +2583,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2416,6 +2594,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2433,6 +2612,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2443,6 +2623,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2460,6 +2641,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2470,6 +2652,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2487,6 +2670,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2497,6 +2681,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2514,6 +2699,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2524,6 +2710,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2541,6 +2728,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2551,6 +2739,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2568,6 +2757,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2578,6 +2768,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2786,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2605,6 +2797,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2622,6 +2815,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2632,6 +2826,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2649,6 +2844,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2659,6 +2855,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2676,6 +2873,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2686,6 +2884,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2902,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2713,6 +2913,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2730,6 +2931,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2740,6 +2942,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2757,6 +2960,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2767,6 +2971,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2784,6 +2989,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2794,6 +3000,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2811,6 +3018,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2821,6 +3029,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2838,6 +3047,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2848,6 +3058,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2865,6 +3076,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2875,6 +3087,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2892,6 +3105,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2902,6 +3116,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2919,6 +3134,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2929,6 +3145,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2946,6 +3163,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2956,6 +3174,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2973,6 +3192,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2983,6 +3203,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3000,6 +3221,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -3010,6 +3232,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3027,6 +3250,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -3037,6 +3261,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3054,6 +3279,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -3064,6 +3290,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3081,6 +3308,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -3091,6 +3319,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3108,6 +3337,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3118,6 +3348,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3135,6 +3366,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3145,6 +3377,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3162,6 +3395,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3172,6 +3406,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3189,6 +3424,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3199,6 +3435,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3216,6 +3453,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3226,6 +3464,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3243,6 +3482,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3253,6 +3493,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3270,6 +3511,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3280,6 +3522,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3540,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3307,6 +3551,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3324,6 +3569,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3334,6 +3580,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3351,6 +3598,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3361,6 +3609,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3627,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3638,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3405,6 +3656,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3415,6 +3667,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3432,6 +3685,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3442,6 +3696,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3459,6 +3714,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3469,6 +3725,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3486,6 +3743,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3496,6 +3754,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3513,6 +3772,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3523,6 +3783,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3540,6 +3801,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3550,6 +3812,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3567,6 +3830,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3577,6 +3841,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3594,6 +3859,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3604,6 +3870,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3888,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3631,6 +3899,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3648,6 +3917,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3658,6 +3928,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3675,6 +3946,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3685,6 +3957,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3702,6 +3975,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3712,6 +3986,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3729,6 +4004,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3739,6 +4015,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3756,6 +4033,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3766,6 +4044,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3783,6 +4062,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3793,6 +4073,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3810,6 +4091,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3820,6 +4102,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3837,6 +4120,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3847,6 +4131,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3864,6 +4149,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3874,6 +4160,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3891,6 +4178,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3901,6 +4189,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3918,6 +4207,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3928,6 +4218,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3945,6 +4236,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3955,6 +4247,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3972,6 +4265,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3982,6 +4276,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4294,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -4009,6 +4305,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4026,6 +4323,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -4036,6 +4334,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4352,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4363,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4080,6 +4381,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -4090,6 +4392,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4107,6 +4410,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -4117,6 +4421,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4134,6 +4439,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4144,6 +4450,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4161,6 +4468,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4171,6 +4479,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4188,6 +4497,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4198,6 +4508,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4215,6 +4526,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4225,6 +4537,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4242,6 +4555,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4252,6 +4566,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4269,6 +4584,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4279,6 +4595,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4296,6 +4613,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4306,6 +4624,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4323,6 +4642,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4333,6 +4653,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4350,6 +4671,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4360,6 +4682,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4377,6 +4700,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4387,6 +4711,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4404,6 +4729,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4414,6 +4740,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4431,6 +4758,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4441,6 +4769,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4458,6 +4787,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4468,6 +4798,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4485,6 +4816,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4495,6 +4827,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4512,6 +4845,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4522,6 +4856,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4539,6 +4874,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4549,6 +4885,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4566,6 +4903,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4576,6 +4914,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4593,6 +4932,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4603,6 +4943,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4620,6 +4961,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4630,6 +4972,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4647,6 +4990,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4657,6 +5001,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4674,6 +5019,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4684,6 +5030,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5048,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4711,6 +5059,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +5077,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4738,6 +5088,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4755,6 +5106,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4765,6 +5117,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4782,6 +5135,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4792,6 +5146,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4809,6 +5164,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4819,6 +5175,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4836,6 +5193,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4846,6 +5204,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4863,6 +5222,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4873,6 +5233,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4890,6 +5251,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4900,6 +5262,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4917,6 +5280,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4927,6 +5291,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4944,6 +5309,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4954,6 +5320,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4971,6 +5338,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4981,6 +5349,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4998,6 +5367,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -5008,6 +5378,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5025,6 +5396,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5035,6 +5407,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5052,6 +5425,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5062,6 +5436,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5079,6 +5454,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5089,6 +5465,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5106,6 +5483,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5116,6 +5494,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5133,6 +5512,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5143,6 +5523,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5160,6 +5541,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -5170,6 +5552,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5187,6 +5570,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5197,6 +5581,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5214,6 +5599,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -5224,6 +5610,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5241,6 +5628,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5251,6 +5639,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5268,6 +5657,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5278,6 +5668,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5295,6 +5686,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5305,6 +5697,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5322,6 +5715,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5332,6 +5726,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5349,6 +5744,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5359,6 +5755,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5376,6 +5773,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -5386,6 +5784,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5802,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5413,6 +5813,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5430,6 +5831,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5440,6 +5842,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5457,6 +5860,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5467,6 +5871,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5484,6 +5889,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5494,6 +5900,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5511,6 +5918,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5521,6 +5929,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5538,6 +5947,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5548,6 +5958,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5565,6 +5976,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5575,6 +5987,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5592,6 +6005,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5602,6 +6016,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +6034,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5629,6 +6045,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5646,6 +6063,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5656,6 +6074,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5673,6 +6092,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5683,6 +6103,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5700,6 +6121,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5710,6 +6132,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5727,6 +6150,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5737,6 +6161,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5754,6 +6179,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5764,6 +6190,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5781,6 +6208,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5791,6 +6219,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5808,6 +6237,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5818,6 +6248,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5835,6 +6266,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5845,6 +6277,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5862,6 +6295,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_drop.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_drop.test index 885dd5cf362..29717885ae7 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_drop.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_fixedvar_drop.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a; alter table bar drop column a; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b; alter table bar drop column b; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c; alter table bar drop column c; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d; alter table bar drop column d; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa; alter table bar drop column aaa; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb; alter table bar drop column bbb; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc; alter table bar drop column ccc; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd; alter table bar drop column ddd; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b; alter table bar drop column a, drop column b; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column c; alter table bar drop column a, drop column c; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column d; alter table bar drop column a, drop column d; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column aaa; alter table bar drop column a, drop column aaa; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column bbb; alter table bar drop column a, drop column bbb; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column ccc; alter table bar drop column a, drop column ccc; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column ddd; alter table bar drop column a, drop column ddd; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column a; alter table bar drop column b, drop column a; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column c; alter table bar drop column b, drop column c; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column d; alter table bar drop column b, drop column d; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column aaa; alter table bar drop column b, drop column aaa; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column bbb; alter table bar drop column b, drop column bbb; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column ccc; alter table bar drop column b, drop column ccc; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column ddd; alter table bar drop column b, drop column ddd; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column a; alter table bar drop column c, drop column a; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column b; alter table bar drop column c, drop column b; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column d; alter table bar drop column c, drop column d; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column aaa; alter table bar drop column c, drop column aaa; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column bbb; alter table bar drop column c, drop column bbb; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column ccc; alter table bar drop column c, drop column ccc; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column c, drop column ddd; alter table bar drop column c, drop column ddd; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column a; alter table bar drop column d, drop column a; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column b; alter table bar drop column d, drop column b; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column c; alter table bar drop column d, drop column c; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column aaa; alter table bar drop column d, drop column aaa; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column bbb; alter table bar drop column d, drop column bbb; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column ccc; alter table bar drop column d, drop column ccc; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column d, drop column ddd; alter table bar drop column d, drop column ddd; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column a; alter table bar drop column aaa, drop column a; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column b; alter table bar drop column aaa, drop column b; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column c; alter table bar drop column aaa, drop column c; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column d; alter table bar drop column aaa, drop column d; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb; alter table bar drop column aaa, drop column bbb; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ccc; alter table bar drop column aaa, drop column ccc; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column ddd; alter table bar drop column aaa, drop column ddd; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column a; alter table bar drop column bbb, drop column a; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column b; alter table bar drop column bbb, drop column b; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column c; alter table bar drop column bbb, drop column c; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column d; alter table bar drop column bbb, drop column d; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column aaa; alter table bar drop column bbb, drop column aaa; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ccc; alter table bar drop column bbb, drop column ccc; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column bbb, drop column ddd; alter table bar drop column bbb, drop column ddd; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column a; alter table bar drop column ccc, drop column a; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column b; alter table bar drop column ccc, drop column b; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column c; alter table bar drop column ccc, drop column c; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column d; alter table bar drop column ccc, drop column d; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column aaa; alter table bar drop column ccc, drop column aaa; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column bbb; alter table bar drop column ccc, drop column bbb; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ccc, drop column ddd; alter table bar drop column ccc, drop column ddd; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column a; alter table bar drop column ddd, drop column a; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column b; alter table bar drop column ddd, drop column b; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column c; alter table bar drop column ddd, drop column c; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column d; alter table bar drop column ddd, drop column d; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column aaa; alter table bar drop column ddd, drop column aaa; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column bbb; alter table bar drop column ddd, drop column bbb; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column ddd, drop column ccc; alter table bar drop column ddd, drop column ccc; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c; alter table bar drop column a, drop column b, drop column c; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column d; alter table bar drop column a, drop column b, drop column d; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column c, drop column d; alter table bar drop column a, drop column c, drop column d; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column b, drop column c, drop column d; alter table bar drop column b, drop column c, drop column d; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column a, drop column b, drop column c, drop column d; alter table bar drop column a, drop column b, drop column c, drop column d; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (a int, b bigint, c date, d tinyint, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL); insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds"); insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo drop column aaa, drop column bbb, drop column ccc, drop column ddd; alter table bar drop column aaa, drop column bbb, drop column ccc, drop column ddd; diff --git a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_varblob_add.test b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_varblob_add.test index cf96aedf4f7..c6b3d194c9c 100644 --- a/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_varblob_add.test +++ b/storage/tokudb/mysql-test/tokudb_alter_table/t/hcad_varblob_add.test @@ -13,6 +13,7 @@ let $diff_tables= test.foo, test.bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -30,6 +31,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL; alter table bar add column added_1 bigint default NULL; @@ -40,6 +42,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -57,6 +60,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1; alter table bar add column added_2 bigint default -1; @@ -67,6 +71,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -84,6 +89,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1; alter table bar add column added_3 bigint NOT NULL default -1; @@ -94,6 +100,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -111,6 +118,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL; @@ -121,6 +129,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -138,6 +147,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty"; alter table bar add column added_5 varchar(10) default "qwerty"; @@ -148,6 +158,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -165,6 +176,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt"; @@ -175,6 +187,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -192,6 +205,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL; alter table bar add column added_7 text default NULL; @@ -202,6 +216,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -219,6 +234,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL; @@ -229,6 +245,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -246,6 +263,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first; alter table bar add column added_1 bigint default NULL first; @@ -256,6 +274,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -273,6 +292,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first; alter table bar add column added_2 bigint default -1 first; @@ -283,6 +303,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -300,6 +321,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first; alter table bar add column added_3 bigint NOT NULL default -1 first; @@ -310,6 +332,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -327,6 +350,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first; alter table bar add column added_4 varchar(10) default NULL first; @@ -337,6 +361,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -354,6 +379,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first; alter table bar add column added_5 varchar(10) default "qwerty" first; @@ -364,6 +390,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -381,6 +408,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first; @@ -391,6 +419,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -408,6 +437,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first; alter table bar add column added_7 text default NULL first; @@ -418,6 +448,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -435,6 +466,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first; alter table bar add column added_8 mediumtext default NULL first; @@ -445,6 +477,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -462,6 +495,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb; @@ -472,6 +506,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -489,6 +524,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb; alter table bar add column added_2 bigint default -1 after bbb; @@ -499,6 +535,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -516,6 +553,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb; @@ -526,6 +564,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -543,6 +582,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb; @@ -553,6 +593,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -570,6 +611,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb; @@ -580,6 +622,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -597,6 +640,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb; @@ -607,6 +651,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -624,6 +669,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb; @@ -634,6 +680,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -651,6 +698,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb; @@ -661,6 +709,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -678,6 +727,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL; @@ -688,6 +738,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -705,6 +756,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234; @@ -715,6 +767,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -732,6 +785,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54; @@ -742,6 +796,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -759,6 +814,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL; @@ -769,6 +825,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -786,6 +843,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab"; @@ -796,6 +854,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -813,6 +872,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -823,6 +883,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -840,6 +901,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL; @@ -850,6 +912,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -867,6 +930,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL; @@ -877,6 +941,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -894,6 +959,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL; @@ -904,6 +970,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -921,6 +988,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234; @@ -931,6 +999,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -948,6 +1017,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54; @@ -958,6 +1028,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -975,6 +1046,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL; @@ -985,6 +1057,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1002,6 +1075,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab"; @@ -1012,6 +1086,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1029,6 +1104,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1039,6 +1115,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1056,6 +1133,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1, add column added_71 text default NULL; @@ -1066,6 +1144,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1083,6 +1162,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL; @@ -1093,6 +1173,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1110,6 +1191,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL; @@ -1120,6 +1202,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1137,6 +1220,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234; @@ -1147,6 +1231,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1164,6 +1249,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54; @@ -1174,6 +1260,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1191,6 +1278,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL; @@ -1201,6 +1289,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1218,6 +1307,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab"; @@ -1228,6 +1318,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1245,6 +1336,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1255,6 +1347,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1272,6 +1365,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL; @@ -1282,6 +1376,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1299,6 +1394,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL; @@ -1309,6 +1405,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1326,6 +1423,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL; @@ -1336,6 +1434,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1353,6 +1452,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234; @@ -1363,6 +1463,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1380,6 +1481,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54; @@ -1390,6 +1492,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1407,6 +1510,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL; @@ -1417,6 +1521,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1434,6 +1539,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab"; @@ -1444,6 +1550,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1461,6 +1568,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1471,6 +1579,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1488,6 +1597,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL; @@ -1498,6 +1608,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1515,6 +1626,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL; @@ -1525,6 +1637,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1542,6 +1655,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL; @@ -1552,6 +1666,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1569,6 +1684,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234; @@ -1579,6 +1695,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1596,6 +1713,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54; @@ -1606,6 +1724,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1623,6 +1742,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL; @@ -1633,6 +1753,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1650,6 +1771,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab"; @@ -1660,6 +1782,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1677,6 +1800,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1687,6 +1811,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1704,6 +1829,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL; @@ -1714,6 +1840,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1731,6 +1858,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL; @@ -1741,6 +1869,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1758,6 +1887,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL; @@ -1768,6 +1898,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1785,6 +1916,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234; @@ -1795,6 +1927,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1812,6 +1945,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54; @@ -1822,6 +1956,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1839,6 +1974,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL; @@ -1849,6 +1985,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1866,6 +2003,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab"; @@ -1876,6 +2014,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1893,6 +2032,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -1903,6 +2043,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1920,6 +2061,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL; @@ -1930,6 +2072,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1947,6 +2090,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL; @@ -1957,6 +2101,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -1974,6 +2119,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL; @@ -1984,6 +2130,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2001,6 +2148,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234; @@ -2011,6 +2159,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2028,6 +2177,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54; @@ -2038,6 +2188,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2055,6 +2206,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL; @@ -2065,6 +2217,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2082,6 +2235,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2092,6 +2246,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2109,6 +2264,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2119,6 +2275,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2136,6 +2293,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_71 text default NULL; alter table bar add column added_7 text default NULL, add column added_71 text default NULL; @@ -2146,6 +2304,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2163,6 +2322,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL; @@ -2173,6 +2333,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2190,6 +2351,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL; @@ -2200,6 +2362,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2217,6 +2380,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234; @@ -2227,6 +2391,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2244,6 +2409,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54; @@ -2254,6 +2420,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2271,6 +2438,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL; @@ -2281,6 +2449,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2298,6 +2467,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab"; @@ -2308,6 +2478,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2325,6 +2496,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2335,6 +2507,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2352,6 +2525,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL; @@ -2362,6 +2536,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2379,6 +2554,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL; @@ -2389,6 +2565,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2406,6 +2583,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL; alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL; @@ -2416,6 +2594,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2433,6 +2612,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234; alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234; @@ -2443,6 +2623,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2460,6 +2641,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54; @@ -2470,6 +2652,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2487,6 +2670,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL; @@ -2497,6 +2681,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2514,6 +2699,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -2524,6 +2710,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2541,6 +2728,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2551,6 +2739,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2568,6 +2757,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL; alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL; @@ -2578,6 +2768,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2595,6 +2786,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL; @@ -2605,6 +2797,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2622,6 +2815,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL; alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL; @@ -2632,6 +2826,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2649,6 +2844,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234; alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234; @@ -2659,6 +2855,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2676,6 +2873,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2686,6 +2884,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2703,6 +2902,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL; @@ -2713,6 +2913,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2730,6 +2931,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2740,6 +2942,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2757,6 +2960,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2767,6 +2971,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2784,6 +2989,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL; alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL; @@ -2794,6 +3000,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2811,6 +3018,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL; @@ -2821,6 +3029,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2838,6 +3047,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL; @@ -2848,6 +3058,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2865,6 +3076,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234; @@ -2875,6 +3087,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2892,6 +3105,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54; @@ -2902,6 +3116,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2919,6 +3134,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL; @@ -2929,6 +3145,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2946,6 +3163,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab"; @@ -2956,6 +3174,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -2973,6 +3192,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -2983,6 +3203,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3000,6 +3221,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL; @@ -3010,6 +3232,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3027,6 +3250,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL; @@ -3037,6 +3261,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3054,6 +3279,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL; @@ -3064,6 +3290,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3081,6 +3308,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234; @@ -3091,6 +3319,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3108,6 +3337,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3118,6 +3348,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3135,6 +3366,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL; @@ -3145,6 +3377,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3162,6 +3395,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3172,6 +3406,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3189,6 +3424,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3199,6 +3435,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3216,6 +3453,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL; @@ -3226,6 +3464,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3243,6 +3482,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL; @@ -3253,6 +3493,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3270,6 +3511,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL; @@ -3280,6 +3522,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3297,6 +3540,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234; @@ -3307,6 +3551,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3324,6 +3569,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54; @@ -3334,6 +3580,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3351,6 +3598,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL; @@ -3361,6 +3609,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3378,6 +3627,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab"; @@ -3388,6 +3638,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3405,6 +3656,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3415,6 +3667,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3432,6 +3685,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL; @@ -3442,6 +3696,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3459,6 +3714,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL; @@ -3469,6 +3725,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3486,6 +3743,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL; @@ -3496,6 +3754,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3513,6 +3772,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234; @@ -3523,6 +3783,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3540,6 +3801,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54; @@ -3550,6 +3812,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3567,6 +3830,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL; @@ -3577,6 +3841,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3594,6 +3859,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab"; @@ -3604,6 +3870,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3621,6 +3888,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3631,6 +3899,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3648,6 +3917,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL; @@ -3658,6 +3928,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3675,6 +3946,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL; @@ -3685,6 +3957,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3702,6 +3975,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL; alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL; @@ -3712,6 +3986,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3729,6 +4004,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234; alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234; @@ -3739,6 +4015,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3756,6 +4033,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3766,6 +4044,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3783,6 +4062,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL; @@ -3793,6 +4073,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3810,6 +4091,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -3820,6 +4102,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3837,6 +4120,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -3847,6 +4131,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3864,6 +4149,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_71 text default NULL; alter table bar add column added_7 text default NULL first, add column added_71 text default NULL; @@ -3874,6 +4160,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3891,6 +4178,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL; @@ -3901,6 +4189,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3918,6 +4207,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL; @@ -3928,6 +4218,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3945,6 +4236,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234; @@ -3955,6 +4247,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3972,6 +4265,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54; @@ -3982,6 +4276,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -3999,6 +4294,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL; @@ -4009,6 +4305,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4026,6 +4323,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab"; @@ -4036,6 +4334,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4053,6 +4352,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab"; @@ -4063,6 +4363,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4080,6 +4381,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL; @@ -4090,6 +4392,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4107,6 +4410,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL; @@ -4117,6 +4421,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4134,6 +4439,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4144,6 +4450,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4161,6 +4468,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4171,6 +4479,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4188,6 +4497,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4198,6 +4508,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4215,6 +4526,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4225,6 +4537,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4242,6 +4555,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4252,6 +4566,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4269,6 +4584,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4279,6 +4595,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4296,6 +4613,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4306,6 +4624,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4323,6 +4642,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_1 bigint default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4333,6 +4653,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4350,6 +4671,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4360,6 +4682,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4377,6 +4700,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4387,6 +4711,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4404,6 +4729,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4414,6 +4740,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4431,6 +4758,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4441,6 +4769,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4458,6 +4787,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4468,6 +4798,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4485,6 +4816,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4495,6 +4827,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4512,6 +4845,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4522,6 +4856,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4539,6 +4874,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_2 bigint default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4549,6 +4885,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4566,6 +4903,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_11 bigint default NULL after bbb; @@ -4576,6 +4914,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4593,6 +4932,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_21 bigint default 1234 after bbb; @@ -4603,6 +4943,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4620,6 +4961,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4630,6 +4972,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4647,6 +4990,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4657,6 +5001,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4674,6 +5019,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4684,6 +5030,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4701,6 +5048,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4711,6 +5059,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4728,6 +5077,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_71 text default NULL after bbb; @@ -4738,6 +5088,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4755,6 +5106,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_3 bigint NOT NULL default -1 after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4765,6 +5117,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4782,6 +5135,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -4792,6 +5146,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4809,6 +5164,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -4819,6 +5175,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4836,6 +5193,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -4846,6 +5204,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4863,6 +5222,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -4873,6 +5233,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4890,6 +5251,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -4900,6 +5262,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4917,6 +5280,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -4927,6 +5291,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4944,6 +5309,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_71 text default NULL after bbb; @@ -4954,6 +5320,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4971,6 +5338,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_4 varchar(10) default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -4981,6 +5349,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -4998,6 +5367,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_11 bigint default NULL after bbb; @@ -5008,6 +5378,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5025,6 +5396,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5035,6 +5407,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5052,6 +5425,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5062,6 +5436,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5079,6 +5454,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5089,6 +5465,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5106,6 +5483,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5116,6 +5494,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5133,6 +5512,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5143,6 +5523,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5160,6 +5541,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_71 text default NULL after bbb; @@ -5170,6 +5552,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5187,6 +5570,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_5 varchar(10) default "qwerty" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5197,6 +5581,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5214,6 +5599,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_11 bigint default NULL after bbb; @@ -5224,6 +5610,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5241,6 +5628,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_21 bigint default 1234 after bbb; @@ -5251,6 +5639,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5268,6 +5657,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5278,6 +5668,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5295,6 +5686,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5305,6 +5697,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5322,6 +5715,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5332,6 +5726,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5349,6 +5744,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5359,6 +5755,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5376,6 +5773,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_71 text default NULL after bbb; @@ -5386,6 +5784,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5403,6 +5802,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5413,6 +5813,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5430,6 +5831,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5440,6 +5842,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5457,6 +5860,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5467,6 +5871,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5484,6 +5889,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5494,6 +5900,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5511,6 +5918,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5521,6 +5929,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5538,6 +5947,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5548,6 +5958,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5565,6 +5976,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5575,6 +5987,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5592,6 +6005,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5602,6 +6016,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5619,6 +6034,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_7 text default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5629,6 +6045,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5646,6 +6063,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_11 bigint default NULL after bbb; @@ -5656,6 +6074,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5673,6 +6092,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_21 bigint default 1234 after bbb; @@ -5683,6 +6103,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5700,6 +6121,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_31 bigint NOT NULL default 54 after bbb; @@ -5710,6 +6132,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5727,6 +6150,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_41 varchar(10) default NULL after bbb; @@ -5737,6 +6161,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5754,6 +6179,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_51 varchar(10) default "abracadab" after bbb; @@ -5764,6 +6190,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5781,6 +6208,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_61 varchar(10) NOT NULL default "abracadab" after bbb; @@ -5791,6 +6219,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5808,6 +6237,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_71 text default NULL after bbb; @@ -5818,6 +6248,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5835,6 +6266,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; alter table bar add column added_8 mediumtext default NULL after bbb, add column added_81 mediumtext default NULL after bbb; @@ -5845,6 +6277,7 @@ drop table foo; drop table bar; create table foo (aa blob, bb longblob, cc tinyblob, dd mediumblob, aaa varchar(12), bbb varbinary(20), ccc varchar(50), ddd varchar(3000)) engine=TokuDB; create table bar like foo; alter table bar engine=MyISAM; +begin; insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL); insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds"); @@ -5862,6 +6295,7 @@ insert into foo values ("rewoiu","fds","fr","oiufdsrew","adsf",NULL,"hjfdshj",NU insert into foo values ("rewoiu","fds","fr","oiufdsrew",NULL,"oifds",NULL,"fdsjfds"); insert into foo values ("rewoiu","fds","fr","oiufdsrew","rewoiu","fds","fr","oiufdsrew"); insert into bar select * from foo; +commit; source include/diff_tables.inc; alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after bbb, add column added_3 bigint NOT NULL default -1; -- cgit v1.2.1 From 6e699eb409df090fd3ac77d68d11e31990405954 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 26 Jan 2014 21:47:31 +0100 Subject: Fixed bug that I accidently introduced in mysql_tzinfo_to_sql Added test cases mysql-test/r/mysql_tzinfo_to_sql_symlink.result: Updated results mysql-test/std_data/zoneinfo/garbage: test file mysql-test/std_data/zoneinfo/ignored.tab: test file mysql-test/t/mysql_tzinfo_to_sql_symlink.test: Added test cases for all options sql/tztime.cc: Better error messages. Fixed wrong place for 'continue' --- mysql-test/r/mysql_tzinfo_to_sql_symlink.result | 40 +++++++++++++++++++++++++ mysql-test/t/mysql_tzinfo_to_sql_symlink.test | 24 +++++++++++++++ sql/tztime.cc | 7 +++-- 3 files changed, 68 insertions(+), 3 deletions(-) diff --git a/mysql-test/r/mysql_tzinfo_to_sql_symlink.result b/mysql-test/r/mysql_tzinfo_to_sql_symlink.result index fce61687c83..dda732937ee 100644 --- a/mysql-test/r/mysql_tzinfo_to_sql_symlink.result +++ b/mysql-test/r/mysql_tzinfo_to_sql_symlink.result @@ -1,6 +1,7 @@ # # MDEV-5226 mysql_tzinfo_to_sql errors with tzdata 2013f and above # +# Verbose run TRUNCATE TABLE time_zone; TRUNCATE TABLE time_zone_name; TRUNCATE TABLE time_zone_transition; @@ -11,12 +12,51 @@ INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('GMT', @time_zone_id); INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES (@time_zone_id, 0, 0, 0, 'GMT') ; +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/garbage' as time zone. Skipping it. +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/ignored.tab' as time zone. Skipping it. INSERT INTO time_zone (Use_leap_seconds) VALUES ('N'); SET @time_zone_id= LAST_INSERT_ID(); INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('posix/GMT', @time_zone_id); INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES (@time_zone_id, 0, 0, 0, 'GMT') ; +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/garbage' as time zone. Skipping it. +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/ignored.tab' as time zone. Skipping it. Warning: Skipping directory 'MYSQLTEST_VARDIR/zoneinfo/posix/posix': to avoid infinite symlink recursion. ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time; ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id; +# Silent run +TRUNCATE TABLE time_zone; +TRUNCATE TABLE time_zone_name; +TRUNCATE TABLE time_zone_transition; +TRUNCATE TABLE time_zone_transition_type; +INSERT INTO time_zone (Use_leap_seconds) VALUES ('N'); +SET @time_zone_id= LAST_INSERT_ID(); +INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('GMT', @time_zone_id); +INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES + (@time_zone_id, 0, 0, 0, 'GMT') +; +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/garbage' as time zone. Skipping it. +INSERT INTO time_zone (Use_leap_seconds) VALUES ('N'); +SET @time_zone_id= LAST_INSERT_ID(); +INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('posix/GMT', @time_zone_id); +INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES + (@time_zone_id, 0, 0, 0, 'GMT') +; +Warning: Unable to load 'MYSQLTEST_VARDIR/zoneinfo/posix/garbage' as time zone. Skipping it. +ALTER TABLE time_zone_transition ORDER BY Time_zone_id, Transition_time; +ALTER TABLE time_zone_transition_type ORDER BY Time_zone_id, Transition_type_id; +# +# Testing with explicit timezonefile +# +INSERT INTO time_zone (Use_leap_seconds) VALUES ('N'); +SET @time_zone_id= LAST_INSERT_ID(); +INSERT INTO time_zone_name (Name, Time_zone_id) VALUES ('XXX', @time_zone_id); +INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES + (@time_zone_id, 0, 0, 0, 'GMT') +; +# +# Testing --leap +# +TRUNCATE TABLE time_zone_leap_second; +ALTER TABLE time_zone_leap_second ORDER BY Transition_time; diff --git a/mysql-test/t/mysql_tzinfo_to_sql_symlink.test b/mysql-test/t/mysql_tzinfo_to_sql_symlink.test index d29d40f5679..1ba4e91be3c 100644 --- a/mysql-test/t/mysql_tzinfo_to_sql_symlink.test +++ b/mysql-test/t/mysql_tzinfo_to_sql_symlink.test @@ -8,8 +8,32 @@ --exec mkdir $MYSQLTEST_VARDIR/zoneinfo --exec ln -s $MYSQLTEST_VARDIR/zoneinfo $MYSQLTEST_VARDIR/zoneinfo/posix --copy_file std_data/zoneinfo/GMT $MYSQLTEST_VARDIR/zoneinfo/GMT +--copy_file std_data/words.dat $MYSQLTEST_VARDIR/zoneinfo/garbage +--copy_file std_data/words.dat $MYSQLTEST_VARDIR/zoneinfo/ignored.tab +--echo # Verbose run +--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR +--exec $MYSQL_TZINFO_TO_SQL --verbose $MYSQLTEST_VARDIR/zoneinfo 2>&1 + +--echo # Silent run --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR --exec $MYSQL_TZINFO_TO_SQL $MYSQLTEST_VARDIR/zoneinfo 2>&1 +--echo # +--echo # Testing with explicit timezonefile +--echo # + +--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR +--exec $MYSQL_TZINFO_TO_SQL $MYSQLTEST_VARDIR/zoneinfo/GMT XXX 2>&1 + +--echo # +--echo # Testing --leap +--echo # + +--exec $MYSQL_TZINFO_TO_SQL --leap $MYSQLTEST_VARDIR/zoneinfo/GMT 2>&1 + +# +# Cleanup +# + --exec rm -rf $MYSQLTEST_VARDIR/zoneinfo diff --git a/sql/tztime.cc b/sql/tztime.cc index 7cfae1529ab..da23d6fc8c2 100644 --- a/sql/tztime.cc +++ b/sql/tztime.cc @@ -2558,8 +2558,8 @@ scan_tz_dir(char * name_end, uint symlink_recursion_level, uint verbose) fflush(stdout); fprintf(stderr, "Warning: Skipping directory '%s': " "to avoid infinite symlink recursion.\n", fullname); - continue; } + continue; } if (scan_tz_dir(name_end_tmp, symlink_recursion_level + is_symlink, verbose)) @@ -2720,8 +2720,9 @@ main(int argc, char **argv) if (scan_tz_dir(root_name_end, 0, opt_verbose)) { fflush(stdout); - fprintf(stderr, "There were fatal errors during processing " - "of zoneinfo directory\n"); + fprintf(stderr, + "There were fatal errors during processing " + "of zoneinfo directory '%s'\n", fullname); return 1; } -- cgit v1.2.1 From fb018850dc04f15234e3b1afdfb5911f28f9ecb9 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 26 Jan 2014 21:48:23 +0100 Subject: Fixed that setup_natural_join_row_types can safely be called twice sql/item.h: Added cache for setup_natural_join_row_types sql/sql_base.cc: Cache old value of first_name_resolution_table for next call. (It's not safe to try to recalculate the value as the join structure may have been changed by the optimizer) --- sql/item.h | 2 ++ sql/sql_base.cc | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/sql/item.h b/sql/item.h index c4fe24bf482..20b7104bcda 100644 --- a/sql/item.h +++ b/sql/item.h @@ -332,6 +332,8 @@ struct Name_resolution_context: Sql_alloc */ TABLE_LIST *last_name_resolution_table; + /* Cache first_name_resolution_table in setup_natural_join_row_types */ + TABLE_LIST *natural_join_first_table; /* SELECT_LEX item belong to, in case of merged VIEW it can differ from SELECT_LEX where item was created, so we can't use table_list/field_list diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 1dbb23226ef..723c4f2c50d 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -7925,6 +7925,11 @@ err: order, thus when we iterate over it, we are moving from the right to the left in the FROM clause. + NOTES + We can't run this many times as the first_name_resolution_table would + be different for subsequent runs when sub queries has been optimized + away. + RETURN TRUE Error FALSE OK @@ -7946,7 +7951,8 @@ static bool setup_natural_join_row_types(THD *thd, */ if (!context->select_lex->first_natural_join_processing) { - DBUG_PRINT("info", ("using cached store_top_level_join_columns")); + context->first_name_resolution_table= context->natural_join_first_table; + DBUG_PRINT("info", ("using cached setup_natural_join_row_types")); DBUG_RETURN(false); } context->select_lex->first_natural_join_processing= false; @@ -7989,6 +7995,11 @@ static bool setup_natural_join_row_types(THD *thd, DBUG_ASSERT(right_neighbor); context->first_name_resolution_table= right_neighbor->first_leaf_for_name_resolution(); + /* + This is only to ensure that first_name_resolution_table doesn't + change on re-execution + */ + context->natural_join_first_table= context->first_name_resolution_table; DBUG_RETURN (false); } -- cgit v1.2.1 From 680288873c4dd0418657fbc718687b1f91e2afbd Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sun, 26 Jan 2014 21:48:42 +0100 Subject: Fix for MDEV-5168: MariaDB returns warnings for INSERT IGNORE Added variable "OLD_MODE" that can be used to turn off the new behavior mysql-test/r/insert.result: Added test case mysql-test/r/mysqld--help.result: Added old_mode mysql-test/suite/sys_vars/r/old_mode_basic.result: Added testing of new variable mysql-test/suite/sys_vars/t/old_mode_basic.test: Added testing of new variable mysql-test/t/insert.test: Added test case sql/sql_class.h: Added bit flags for OLD_MODE sql/sql_insert.cc: Disable duplicate key warnings for INSERT IGNORE of OLD_MODE NO_DUP_KEY_WARNINGS_WITH_IGNORE is used sql/sql_show.cc: Don't show progress reporting on SHOW PROCESSLIST if OLD_MODE NO_PROGRESS_INFO is used sql/sys_vars.cc: Added OLD_MODE --- mysql-test/r/insert.result | 20 ++ mysql-test/r/mysqld--help.result | 7 +- mysql-test/suite/sys_vars/r/old_mode_basic.result | 174 +++++++++++++++ mysql-test/suite/sys_vars/t/old_mode_basic.test | 244 ++++++++++++++++++++++ mysql-test/t/insert.test | 18 ++ sql/sql_class.h | 5 + sql/sql_insert.cc | 8 +- sql/sql_show.cc | 6 +- sql/sys_vars.cc | 26 ++- 9 files changed, 502 insertions(+), 6 deletions(-) create mode 100644 mysql-test/suite/sys_vars/r/old_mode_basic.result create mode 100644 mysql-test/suite/sys_vars/t/old_mode_basic.test diff --git a/mysql-test/r/insert.result b/mysql-test/r/insert.result index a722ab8d97f..82f3977e231 100644 --- a/mysql-test/r/insert.result +++ b/mysql-test/r/insert.result @@ -697,3 +697,23 @@ ERROR 42000: Column 'a' specified twice INSERT IGNORE t1 (a, a) SELECT 1,1 UNION SELECT 2,2; ERROR 42000: Column 'a' specified twice DROP TABLE t1; +# +# MDEV-5168: Ensure that we can disable duplicate key warnings +# from INSERT IGNORE +# +create table t1 (f1 int unique, f2 int unique); +insert into t1 values (1,12); +insert into t1 values (2,13); +insert into t1 values (1,12); +ERROR 23000: Duplicate entry '1' for key 'f1' +insert ignore into t1 values (1,12); +Warnings: +Warning 1062 Duplicate entry '1' for key 'f1' +set @@old_mode="NO_DUP_KEY_WARNINGS_WITH_IGNORE"; +insert ignore into t1 values (1,12); +insert ignore into t1 values (1,12) on duplicate key update f2=13; +set @@old_mode=""; +insert ignore into t1 values (1,12); +Warnings: +Warning 1062 Duplicate entry '1' for key 'f1' +DROP TABLE t1; diff --git a/mysql-test/r/mysqld--help.result b/mysql-test/r/mysqld--help.result index c36cc96bb1a..16da8eae7f9 100644 --- a/mysql-test/r/mysqld--help.result +++ b/mysql-test/r/mysqld--help.result @@ -454,8 +454,12 @@ The following options may be given as the first argument: --net-write-timeout=# Number of seconds to wait for a block to be written to a connection before aborting the write - --old Use compatible behavior + --old Use compatible behavior from previous MariaDB version. + See also --old-mode --old-alter-table Use old, non-optimized alter table + --old-mode=name Used to emulate old behavior from earlier MariaDB or + MySQL versions. Syntax: old_mode=mode[,mode[,mode...]]. + See the manual for the complete list of valid old modes --old-passwords Use old password encryption method (needed for 4.0 and older clients) --old-style-user-limits @@ -997,6 +1001,7 @@ net-retry-count 10 net-write-timeout 60 old FALSE old-alter-table FALSE +old-mode old-passwords FALSE old-style-user-limits FALSE optimizer-prune-level 1 diff --git a/mysql-test/suite/sys_vars/r/old_mode_basic.result b/mysql-test/suite/sys_vars/r/old_mode_basic.result new file mode 100644 index 00000000000..c9a650e7b15 --- /dev/null +++ b/mysql-test/suite/sys_vars/r/old_mode_basic.result @@ -0,0 +1,174 @@ +SET @global_start_value = @@global.old_mode; +SELECT @global_start_value; +@global_start_value + +SET @session_start_value = @@session.old_mode; +SELECT @session_start_value; +@session_start_value + +'#--------------------FN_DYNVARS_152_01------------------------#' +SET @@global.old_mode = "NO_PROGRESS_INFO"; +SET @@global.old_mode = DEFAULT; +SELECT @@global.old_mode; +@@global.old_mode + +SET @@session.old_mode = "NO_PROGRESS_INFO"; +SET @@session.old_mode = DEFAULT; +SELECT @@session.old_mode; +@@session.old_mode + +'#---------------------FN_DYNVARS_152_02-------------------------#' +SET @@global.old_mode = NULL; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'NULL' +SET @@global.old_mode = ''; +SELECT @@global.old_mode; +@@global.old_mode + +SET @@global.old_mode = ' '; +SELECT @@global.old_mode; +@@global.old_mode + +SET @@session.old_mode = NULL; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'NULL' +SET @@session.old_mode = ''; +SELECT @@session.old_mode; +@@session.old_mode + +SET @@session.old_mode = ' '; +SELECT @@session.old_mode; +@@session.old_mode + +'#--------------------FN_DYNVARS_152_03------------------------#' +SET @@global.old_mode = NO_PROGRESS_INFO; +SELECT @@global.old_mode; +@@global.old_mode +NO_PROGRESS_INFO +SET @@global.old_mode = NO_DUP_KEY_WARNINGS_WITH_IGNORE; +SELECT @@global.old_mode; +@@global.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +SET @@global.old_mode = OFF; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'OFF' +SET @@session.old_mode = NO_PROGRESS_INFO; +SELECT @@session.old_mode; +@@session.old_mode +NO_PROGRESS_INFO +SET @@session.old_mode = NO_DUP_KEY_WARNINGS_WITH_IGNORE; +SELECT @@session.old_mode; +@@session.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +SET @@session.old_mode = OFF; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'OFF' +SET @@global.old_mode = '?'; +ERROR 42000: Variable 'old_mode' can't be set to the value of '?' +SELECT @@global.old_mode; +@@global.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +'#--------------------FN_DYNVARS_152_04-------------------------#' +SET @@global.old_mode = -1; +ERROR 42000: Variable 'old_mode' can't be set to the value of '-1' +SET @@global.old_mode = ASCII; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'ASCII' +SET @@global.old_mode = NON_TRADITIONAL; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'NON_TRADITIONAL' +SET @@global.old_mode = 'OF'; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'OF' +SET @@global.old_mode = NONE; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'NONE' +SET @@session.old_mode = -1; +ERROR 42000: Variable 'old_mode' can't be set to the value of '-1' +SET @@session.old_mode = ANSI_SINGLE_QUOTES; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'ANSI_SINGLE_QUOTES' +SET @@session.old_mode = 'ON'; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'ON' +SET @@session.old_mode = 'OF'; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'OF' +SET @@session.old_mode = DISABLE; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'DISABLE' +'#-------------------FN_DYNVARS_152_05----------------------------#' +SELECT @@session.old_mode = VARIABLE_VALUE +FROM INFORMATION_SCHEMA.SESSION_VARIABLES +WHERE VARIABLE_NAME='old_mode'; +@@session.old_mode = VARIABLE_VALUE +1 +'#----------------------FN_DYNVARS_152_06------------------------#' +SELECT @@global.old_mode = VARIABLE_VALUE +FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES +WHERE VARIABLE_NAME='old_mode'; +@@global.old_mode = VARIABLE_VALUE +1 +'#---------------------FN_DYNVARS_152_07-------------------------#' +SET @@global.old_mode = 0; +SELECT @@global.old_mode; +@@global.old_mode + +SET @@global.old_mode = 1; +SELECT @@global.old_mode; +@@global.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +SET @@global.old_mode = 2; +SELECT @@global.old_mode; +@@global.old_mode +NO_PROGRESS_INFO +SET @@global.old_mode = 4; +ERROR 42000: Variable 'old_mode' can't be set to the value of '4' +SELECT @@global.old_mode; +@@global.old_mode +NO_PROGRESS_INFO +SET @@global.old_mode = 0.4; +ERROR 42000: Incorrect argument type to variable 'old_mode' +'#---------------------FN_DYNVARS_152_08----------------------#' +SET @@global.old_mode = TRUE; +SELECT @@global.old_mode; +@@global.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +SET @@global.old_mode = FALSE; +SELECT @@global.old_mode; +@@global.old_mode + +'#---------------------FN_DYNVARS_152_09----------------------#' +SET old_mode = 'NO_PROGRESS_INFO'; +SET session.old_mode = 'ANSI'; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'old_mode = 'ANSI'' at line 1 +SET global.old_mode = 'ANSI'; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'old_mode = 'ANSI'' at line 1 +SET session old_mode = 1; +SELECT @@old_mode; +@@old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE +SET global old_mode = 0; +SELECT @@global.old_mode; +@@global.old_mode + +'#---------------------FN_DYNVARS_152_10----------------------#' +SET @@session.old_mode = 'NO_PROGRESS_INFO,NO_DUP_KEY_WARNINGS_WITH_IGNORE'; +SELECT @@session.old_mode; +@@session.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE,NO_PROGRESS_INFO +SET @@global.old_mode = 'NO_DUP_KEY_WARNINGS_WITH_IGNORE,NO_PROGRESS_INFO'; +SELECT @@global.old_mode; +@@global.old_mode +NO_DUP_KEY_WARNINGS_WITH_IGNORE,NO_PROGRESS_INFO +SET @@session.old_mode = 'NO_PROGRESS_INFO,NO_SUCH_MODE'; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'NO_SUCH_MODE' +SET @@old_mode=','; +SELECT @@old_mode; +@@old_mode + +SET @@old_mode=',,,,NO_PROGRESS_INFO,,,'; +SELECT @@old_mode; +@@old_mode +NO_PROGRESS_INFO +SET @@old_mode=',,,,FOOBAR,,,,,'; +ERROR 42000: Variable 'old_mode' can't be set to the value of 'FOOBAR' +SELECT @@old_mode; +@@old_mode +NO_PROGRESS_INFO +SET @@global.old_mode = @global_start_value; +SELECT @@global.old_mode; +@@global.old_mode + +SET @@session.old_mode = @session_start_value; +SELECT @@session.old_mode; +@@session.old_mode + diff --git a/mysql-test/suite/sys_vars/t/old_mode_basic.test b/mysql-test/suite/sys_vars/t/old_mode_basic.test new file mode 100644 index 00000000000..6770219887d --- /dev/null +++ b/mysql-test/suite/sys_vars/t/old_mode_basic.test @@ -0,0 +1,244 @@ +#################### mysql-test\t\sql_mode_basic.test ######################### +# # +# Variable Name: old_mode # +# Scope: GLOBAL | SESSION # +# Access Type: Dynamic # +# Data Type: enumeration # +# Default Value: YES # +# Valid Values : NO_DUP_KEY_WARNINGS_WITH_IGNORE, NO_PROGRESS_INFO # +# # +# # +# Description: Test Cases of Dynamic System Variable old_mode # +# that checks the behavior of this variable in the following ways# +# * Default Value # +# * Valid & Invalid values # +# * Scope & Access method # +# * Data Integrity # +# # +# # +############################################################################### + +--source include/load_sysvars.inc + +################################################################ +# START OF sql_mode TESTS # +################################################################ + + +################################################################### +# Saving initial value of sql_mode in a temporary variable # +################################################################### + +SET @global_start_value = @@global.old_mode; +SELECT @global_start_value; + +SET @session_start_value = @@session.old_mode; +SELECT @session_start_value; + +--echo '#--------------------FN_DYNVARS_152_01------------------------#' +################################################################ +# Display the DEFAULT value of old_mode # +################################################################ + +SET @@global.old_mode = "NO_PROGRESS_INFO"; +SET @@global.old_mode = DEFAULT; +SELECT @@global.old_mode; + +SET @@session.old_mode = "NO_PROGRESS_INFO"; +SET @@session.old_mode = DEFAULT; +SELECT @@session.old_mode; + +--echo '#---------------------FN_DYNVARS_152_02-------------------------#' +######################################################### +# Check if NULL or empty value is accepeted # +######################################################### + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = NULL; + +# resets sql mode to nothing +SET @@global.old_mode = ''; +SELECT @@global.old_mode; + +SET @@global.old_mode = ' '; +SELECT @@global.old_mode; + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = NULL; + +SET @@session.old_mode = ''; +SELECT @@session.old_mode; + +SET @@session.old_mode = ' '; +SELECT @@session.old_mode; + + +--echo '#--------------------FN_DYNVARS_152_03------------------------#' +######################################################################## +# Change the value of old_mode to a valid value # +######################################################################## + +# sql modes ref: http://dev.mysql.com/doc/refman/5.1/en/server-sql-mode.html + +# check valid values for global + +SET @@global.old_mode = NO_PROGRESS_INFO; +SELECT @@global.old_mode; +SET @@global.old_mode = NO_DUP_KEY_WARNINGS_WITH_IGNORE; +SELECT @@global.old_mode; + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = OFF; + +#check valid values for session +SET @@session.old_mode = NO_PROGRESS_INFO; +SELECT @@session.old_mode; +SET @@session.old_mode = NO_DUP_KEY_WARNINGS_WITH_IGNORE; +SELECT @@session.old_mode; + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = OFF; + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = '?'; +SELECT @@global.old_mode; + +--echo '#--------------------FN_DYNVARS_152_04-------------------------#' +########################################################################### +# Change the value of old_mode to invalid value # +########################################################################### + +# invalid values for global +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = -1; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = ASCII; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = NON_TRADITIONAL; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = 'OF'; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = NONE; + +#invalid values for session + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = -1; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = ANSI_SINGLE_QUOTES; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = 'ON'; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = 'OF'; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = DISABLE; + + +--echo '#-------------------FN_DYNVARS_152_05----------------------------#' +######################################################################### +# Check if the value in session Table matches value in variable # +######################################################################### + +SELECT @@session.old_mode = VARIABLE_VALUE +FROM INFORMATION_SCHEMA.SESSION_VARIABLES +WHERE VARIABLE_NAME='old_mode'; + +--echo '#----------------------FN_DYNVARS_152_06------------------------#' +######################################################################### +# Check if the value in GLOBAL Table matches value in variable # +######################################################################### + +SELECT @@global.old_mode = VARIABLE_VALUE +FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES +WHERE VARIABLE_NAME='old_mode'; + + +--echo '#---------------------FN_DYNVARS_152_07-------------------------#' +################################################################### +# Check if numbers can be used on variable # +################################################################### + +# test if variable accepts 0,1,2 +SET @@global.old_mode = 0; +SELECT @@global.old_mode; + +SET @@global.old_mode = 1; +SELECT @@global.old_mode; + +SET @@global.old_mode = 2; +SELECT @@global.old_mode; + +--Error ER_WRONG_VALUE_FOR_VAR +SET @@global.old_mode = 4; +SELECT @@global.old_mode; + +# use of decimal values + +--Error ER_WRONG_TYPE_FOR_VAR +SET @@global.old_mode = 0.4; + +--echo '#---------------------FN_DYNVARS_152_08----------------------#' +################################################################### +# Check if TRUE and FALSE values can be used on variable # +################################################################### + +SET @@global.old_mode = TRUE; +SELECT @@global.old_mode; +SET @@global.old_mode = FALSE; +SELECT @@global.old_mode; + +--echo '#---------------------FN_DYNVARS_152_09----------------------#' +######################################################################### +# Check if old_mode can be accessed with and without @@ sign # +######################################################################### + +SET old_mode = 'NO_PROGRESS_INFO'; + +--Error ER_PARSE_ERROR +SET session.old_mode = 'ANSI'; +--Error ER_PARSE_ERROR +SET global.old_mode = 'ANSI'; + +SET session old_mode = 1; +SELECT @@old_mode; + +SET global old_mode = 0; +SELECT @@global.old_mode; + +--echo '#---------------------FN_DYNVARS_152_10----------------------#' +####################################################################### +# Check if old_mode values can be combined as specified # +####################################################################### + +SET @@session.old_mode = 'NO_PROGRESS_INFO,NO_DUP_KEY_WARNINGS_WITH_IGNORE'; +SELECT @@session.old_mode; + +SET @@global.old_mode = 'NO_DUP_KEY_WARNINGS_WITH_IGNORE,NO_PROGRESS_INFO'; +SELECT @@global.old_mode; + +#try combining invalid mode with correct mode +--Error ER_WRONG_VALUE_FOR_VAR +SET @@session.old_mode = 'NO_PROGRESS_INFO,NO_SUCH_MODE'; + +#zero-length values are ok +SET @@old_mode=','; +SELECT @@old_mode; +SET @@old_mode=',,,,NO_PROGRESS_INFO,,,'; +SELECT @@old_mode; +--Error ER_WRONG_VALUE_FOR_VAR +SET @@old_mode=',,,,FOOBAR,,,,,'; +SELECT @@old_mode; + +############################## +# Restore initial value # +############################## + +SET @@global.old_mode = @global_start_value; +SELECT @@global.old_mode; + +SET @@session.old_mode = @session_start_value; +SELECT @@session.old_mode; + +################################################################ +# END OF old_mode TESTS # +################################################################ diff --git a/mysql-test/t/insert.test b/mysql-test/t/insert.test index f9b9fcf266d..ff8396fd7fd 100644 --- a/mysql-test/t/insert.test +++ b/mysql-test/t/insert.test @@ -555,3 +555,21 @@ INSERT IGNORE t1 (a, a) SELECT 1,1; INSERT IGNORE t1 (a, a) SELECT 1,1 UNION SELECT 2,2; DROP TABLE t1; + +--echo # +--echo # MDEV-5168: Ensure that we can disable duplicate key warnings +--echo # from INSERT IGNORE +--echo # + +create table t1 (f1 int unique, f2 int unique); +insert into t1 values (1,12); +insert into t1 values (2,13); +--error ER_DUP_ENTRY +insert into t1 values (1,12); +insert ignore into t1 values (1,12); +set @@old_mode="NO_DUP_KEY_WARNINGS_WITH_IGNORE"; +insert ignore into t1 values (1,12); +insert ignore into t1 values (1,12) on duplicate key update f2=13; +set @@old_mode=""; +insert ignore into t1 values (1,12); +DROP TABLE t1; diff --git a/sql/sql_class.h b/sql/sql_class.h index a21917a0814..c25a5f82eac 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -108,6 +108,10 @@ enum enum_filetype { FILETYPE_CSV, FILETYPE_XML }; #define MODE_NO_ENGINE_SUBSTITUTION (MODE_HIGH_NOT_PRECEDENCE*2) #define MODE_PAD_CHAR_TO_FULL_LENGTH (ULL(1) << 31) +/* Bits for different old style modes */ +#define OLD_MODE_NO_DUP_KEY_WARNINGS_WITH_IGNORE 1 +#define OLD_MODE_NO_PROGRESS_INFO 2 + extern char internal_table_name[2]; extern char empty_c_string[1]; extern MYSQL_PLUGIN_IMPORT const char **errmesg; @@ -473,6 +477,7 @@ typedef struct system_variables ulonglong long_query_time; ulonglong optimizer_switch; ulonglong sql_mode; ///< which non-standard SQL behaviour should be enabled + ulonglong old_behavior; ///< which old SQL behaviour should be enabled ulonglong option_bits; ///< OPTION_xxx constants, e.g. OPTION_PROFILING ulonglong join_buff_space_limit; ulonglong log_slow_filter; diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 10e943458bd..0bc1453ddef 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1714,7 +1714,9 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info) if (info->ignore && !table->file->is_fatal_error(error, HA_CHECK_DUP_KEY)) { - table->file->print_error(error, MYF(ME_JUST_WARNING)); + if (!(thd->variables.old_behavior & + OLD_MODE_NO_DUP_KEY_WARNINGS_WITH_IGNORE)) + table->file->print_error(error, MYF(ME_JUST_WARNING)); goto ok_or_after_trg_err; } goto err; @@ -1844,7 +1846,9 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info) if (!info->ignore || table->file->is_fatal_error(error, HA_CHECK_DUP)) goto err; - table->file->print_error(error, MYF(ME_JUST_WARNING)); + if (!(thd->variables.old_behavior & + OLD_MODE_NO_DUP_KEY_WARNINGS_WITH_IGNORE)) + table->file->print_error(error, MYF(ME_JUST_WARNING)); table->file->restore_auto_increment(prev_insert_id); goto ok_or_after_trg_err; } diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 5104eb7bb3f..20b2b9cc7b8 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2174,7 +2174,8 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) field->maybe_null=1; field_list.push_back(field=new Item_empty_string("Info",max_query_length)); field->maybe_null=1; - if (!thd->variables.old_mode) + if (!thd->variables.old_mode && + !(thd->variables.old_behavior & OLD_MODE_NO_PROGRESS_INFO)) { field_list.push_back(field= new Item_float("Progress", 0.0, 3, 7)); field->maybe_null= 0; @@ -2280,7 +2281,8 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) protocol->store(thd_info->state_info, system_charset_info); protocol->store(thd_info->query_string.str(), thd_info->query_string.charset()); - if (!thd->variables.old_mode) + if (!thd->variables.old_mode && + !(thd->variables.old_behavior & OLD_MODE_NO_PROGRESS_INFO)) protocol->store(thd_info->progress, 3, &store_buffer); if (protocol->write()) break; /* purecov: inspected */ diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 5b4d4fdb4eb..49b90006000 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -1390,7 +1390,7 @@ static Sys_var_ulong Sys_net_retry_count( ON_UPDATE(fix_net_retry_count)); static Sys_var_mybool Sys_old_mode( - "old", "Use compatible behavior", + "old", "Use compatible behavior from previous MariaDB version. See also --old-mode", SESSION_VAR(old_mode), CMD_LINE(OPT_ARG), DEFAULT(FALSE)); static Sys_var_mybool Sys_old_alter_table( @@ -2211,6 +2211,30 @@ static Sys_var_set Sys_sql_mode( sql_mode_names, DEFAULT(0), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(check_sql_mode), ON_UPDATE(fix_sql_mode)); +static const char *old_mode_names[]= +{ + "NO_DUP_KEY_WARNINGS_WITH_IGNORE", "NO_PROGRESS_INFO", + 0 +}; + +export bool old_mode_string_representation(THD *thd, ulonglong sql_mode, + LEX_STRING *ls) +{ + set_to_string(thd, ls, sql_mode, old_mode_names); + return ls->str == 0; +} +/* + sql_mode should *not* be IN_BINLOG as the slave can't remember this + anyway on restart. +*/ +static Sys_var_set Sys_old_behavior( + "old_mode", + "Used to emulate old behavior from earlier MariaDB or MySQL versions. " + "Syntax: old_mode=mode[,mode[,mode...]]. " + "See the manual for the complete list of valid old modes", + SESSION_VAR(old_behavior), CMD_LINE(REQUIRED_ARG), + old_mode_names, DEFAULT(0), NO_MUTEX_GUARD, NOT_IN_BINLOG); + #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY) #define SSL_OPT(X) CMD_LINE(REQUIRED_ARG,X) #else -- cgit v1.2.1 From 0df3c2033bdf96272c426295e1f711e1299a62ac Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 26 Jan 2014 21:49:04 +0100 Subject: fix the test for MDEV-5029 to clean up after itself --- mysql-test/t/bad_frm_crash_5029.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/t/bad_frm_crash_5029.test b/mysql-test/t/bad_frm_crash_5029.test index 858922886ab..dadfc86e28e 100644 --- a/mysql-test/t/bad_frm_crash_5029.test +++ b/mysql-test/t/bad_frm_crash_5029.test @@ -18,3 +18,6 @@ copy_file std_data/mdev5029_2.MAI $datadir/test/t1.MAI; copy_file std_data/mdev5029_2.MAD $datadir/test/t1.MAD; show create table t1; drop table t1; +remove_file $datadir/test/t1.MAI; +remove_file $datadir/test/t1.MAD; + -- cgit v1.2.1 From 3f2f9c36b16ad88d34a400f92cbb61e77a6ae63c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 26 Jan 2014 21:49:11 +0100 Subject: move innodb specific test from group_by.test to group_by_innodb.test --- mysql-test/r/group_by.result | 26 -------------------------- mysql-test/r/group_by_innodb.result | 28 +++++++++++++++++++++++++++- mysql-test/t/group_by.test | 25 ------------------------- mysql-test/t/group_by_innodb.test | 27 ++++++++++++++++++++++++++- 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/mysql-test/r/group_by.result b/mysql-test/r/group_by.result index 553607dc03f..a9e91199949 100644 --- a/mysql-test/r/group_by.result +++ b/mysql-test/r/group_by.result @@ -2473,29 +2473,3 @@ c 1c v 2v,2v NULL 1c,2v,2v DROP TABLE t1,t2; -# -# Test of MDEV-4002 -# -CREATE TABLE t1 ( -pk INT NOT NULL PRIMARY KEY, -d1 DOUBLE, -d2 DOUBLE, -i INT NOT NULL DEFAULT '0', -KEY (i) -) ENGINE=InnoDB; -INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2); -PREPARE stmt FROM " -SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) -FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP -"; -EXECUTE stmt; -i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) -1 11.1 -2 22.2 -NULL 11.1,22.2 -EXECUTE stmt; -i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) -1 11.1 -2 22.2 -NULL 11.1,22.2 -DROP TABLE t1; diff --git a/mysql-test/r/group_by_innodb.result b/mysql-test/r/group_by_innodb.result index 86d431b00d2..4b5d9990c51 100644 --- a/mysql-test/r/group_by_innodb.result +++ b/mysql-test/r/group_by_innodb.result @@ -29,5 +29,31 @@ SELECT COUNT(*), pk field1 FROM t1 WHERE a = 'r' OR pk = 183 GROUP BY field1, field1; COUNT(*) field1 drop table t1; -End of 5.5 tests set optimizer_switch=@save_ext_key_optimizer_switch; +# +# MDEV-4002 Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add +# +CREATE TABLE t1 ( +pk INT NOT NULL PRIMARY KEY, +d1 DOUBLE, +d2 DOUBLE, +i INT NOT NULL DEFAULT '0', +KEY (i) +) ENGINE=InnoDB; +INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2); +PREPARE stmt FROM " +SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) +FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP +"; +EXECUTE stmt; +i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) +1 11.1 +2 22.2 +NULL 11.1,22.2 +EXECUTE stmt; +i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) +1 11.1 +2 22.2 +NULL 11.1,22.2 +DROP TABLE t1; +End of 5.5 tests diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index e4120f284de..c6d594edc1f 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -1,5 +1,3 @@ ---source include/have_innodb.inc - # Initialise --disable_warnings drop table if exists t1,t2,t3; @@ -1645,26 +1643,3 @@ FROM t1 JOIN t2 ON c = b GROUP BY b WITH ROLLUP; DROP TABLE t1,t2; ---echo # ---echo # Test of MDEV-4002 ---echo # - -CREATE TABLE t1 ( - pk INT NOT NULL PRIMARY KEY, - d1 DOUBLE, - d2 DOUBLE, - i INT NOT NULL DEFAULT '0', - KEY (i) -) ENGINE=InnoDB; - -INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2); - -PREPARE stmt FROM " -SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) -FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP -"; - -EXECUTE stmt; -EXECUTE stmt; - -DROP TABLE t1; diff --git a/mysql-test/t/group_by_innodb.test b/mysql-test/t/group_by_innodb.test index 9733610dde1..df213cc189f 100644 --- a/mysql-test/t/group_by_innodb.test +++ b/mysql-test/t/group_by_innodb.test @@ -39,6 +39,31 @@ WHERE a = 'r' OR pk = 183 GROUP BY field1, field1; drop table t1; +set optimizer_switch=@save_ext_key_optimizer_switch; + +--echo # +--echo # MDEV-4002 Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add +--echo # + +CREATE TABLE t1 ( + pk INT NOT NULL PRIMARY KEY, + d1 DOUBLE, + d2 DOUBLE, + i INT NOT NULL DEFAULT '0', + KEY (i) +) ENGINE=InnoDB; + +INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2); + +PREPARE stmt FROM " +SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 ) +FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP +"; + +EXECUTE stmt; +EXECUTE stmt; + +DROP TABLE t1; + --echo End of 5.5 tests -set optimizer_switch=@save_ext_key_optimizer_switch; -- cgit v1.2.1 From 90e2240869b9e0eba4fb8a87003e0d001872228e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 26 Jan 2014 21:49:19 +0100 Subject: MDEV-5461 Assertion `length <= column->length' fails in write_block_record with functions in select list, GROUP BY, ORDER BY Old code in create_tmp_table(), that created an extra one-byte field (recinfo) before every NULL-able grouping field (Field) in the tmp table, did not actually work. Because the matching code in end_update(), that was supposed to update this byte, was using a wrong offset, updating the first byte of the Field, not a byte before it. Normally this wasn't an issue, because the Field value (written later in end_update) was overwriting this byte anyway. But in this bug the Field was Field_null, with zero length, so end_update() was overwriting the first byte of the following field. And the following field was not-nullable constant, which was stored only once in create_tmp_table and never updated later. Fixed by removing the code that didn't do any useful work anyway. --- mysql-test/r/group_by_null.result | 6 ++++++ mysql-test/t/group_by_null.test | 7 +++++++ sql/sql_select.cc | 32 ++------------------------------ 3 files changed, 15 insertions(+), 30 deletions(-) create mode 100644 mysql-test/r/group_by_null.result create mode 100644 mysql-test/t/group_by_null.test diff --git a/mysql-test/r/group_by_null.result b/mysql-test/r/group_by_null.result new file mode 100644 index 00000000000..01053514cb0 --- /dev/null +++ b/mysql-test/r/group_by_null.result @@ -0,0 +1,6 @@ +create table t1 (a int); +insert into t1 values (1),(2); +select max('foo') from t1 group by values(a), extractvalue('bar','qux') order by "v"; +max('foo') +foo +drop table t1; diff --git a/mysql-test/t/group_by_null.test b/mysql-test/t/group_by_null.test new file mode 100644 index 00000000000..b3fa2a003ec --- /dev/null +++ b/mysql-test/t/group_by_null.test @@ -0,0 +1,7 @@ +# +# MDEV-5461 Assertion `length <= column->length' fails in write_block_record with functions in select list, GROUP BY, ORDER BY +# +create table t1 (a int); +insert into t1 values (1),(2); +select max('foo') from t1 group by values(a), extractvalue('bar','qux') order by "v"; +drop table t1; diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 3f515b27278..5d7594bf3d7 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -15243,23 +15243,8 @@ create_tmp_table(THD *thd, TMP_TABLE_PARAM *param, List &fields, if (!(field->flags & NOT_NULL_FLAG)) { - if (field->flags & GROUP_FLAG && !using_unique_constraint) - { - /* - We have to reserve one byte here for NULL bits, - as this is updated by 'end_update()' - */ - *pos++=0; // Null is stored here - recinfo->length=1; - recinfo->type=FIELD_NORMAL; - recinfo++; - bzero((uchar*) recinfo,sizeof(*recinfo)); - } - else - { - recinfo->null_bit= (uint8)1 << (null_count & 7); - recinfo->null_pos= null_count/8; - } + recinfo->null_bit= (uint8)1 << (null_count & 7); + recinfo->null_pos= null_count/8; field->move_field(pos,null_flags+null_count/8, (uint8)1 << (null_count & 7)); null_count++; @@ -18186,19 +18171,6 @@ end_update(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), goto end; } - /* - Copy null bits from group key to table - We can't copy all data as the key may have different format - as the row data (for example as with VARCHAR keys) - */ - KEY_PART_INFO *key_part; - for (group=table->group,key_part=table->key_info[0].key_part; - group ; - group=group->next,key_part++) - { - if (key_part->null_bit) - memcpy(table->record[0]+key_part->offset, group->buff, 1); - } init_tmptable_sum_functions(join->sum_funcs); if (copy_funcs(join->tmp_table_param.items_to_copy, join->thd)) DBUG_RETURN(NESTED_LOOP_ERROR); /* purecov: inspected */ -- cgit v1.2.1 From 8ece9de8331798c3fefceebe72e43b1c40d06a99 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 26 Jan 2014 21:49:31 +0100 Subject: workaround test failures in buildbot: in some VMs readline thinks that the window size is zero. ignore it. --- client/mysql.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/mysql.cc b/client/mysql.cc index c2bfdce2f74..5e4e80373ad 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1408,7 +1408,8 @@ sig_handler window_resize(int sig) struct winsize window_size; if (ioctl(fileno(stdin), TIOCGWINSZ, &window_size) == 0) - terminal_width= window_size.ws_col; + if (window_size.ws_col > 0) + terminal_width= window_size.ws_col; } #endif -- cgit v1.2.1 From 879a05ce3f95a2abb3d9c50459e73fdb6094ed19 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 26 Jan 2014 21:49:39 +0100 Subject: improve oqgraph boost check to filter out newer boost versions --- storage/oqgraph/CMakeLists.txt | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/storage/oqgraph/CMakeLists.txt b/storage/oqgraph/CMakeLists.txt index 593fced6235..7b110b7de5a 100644 --- a/storage/oqgraph/CMakeLists.txt +++ b/storage/oqgraph/CMakeLists.txt @@ -11,26 +11,44 @@ IF(MSVC) SET(BOOST_OK 0) ELSE() SET(BOOST_OK 1) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") ENDIF() ELSE() + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -fno-strict-aliasing") + STRING(REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # See if that works. On old gcc it'll fail because of -fno-rtti CHECK_CXX_SOURCE_COMPILES( " #include #include -int main() { return 0; } +#include + +using namespace boost; +struct VertexInfo { int id; }; + +namespace boost +{ + namespace graph + { + template<> struct internal_vertex_name + { typedef multi_index::member type; }; + } +} + +typedef adjacency_list Graph; +int main() +{ + graph_traits::vertex_descriptor *orig; + Graph *g; + remove_vertex(*orig, *g); + return 0; +} " BOOST_OK) ENDIF() IF(BOOST_OK) ADD_DEFINITIONS(-DHAVE_OQGRAPH) - IF(MSVC) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") - ELSE(MSVC) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -fno-strict-aliasing") - STRING(REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) - STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) - ENDIF(MSVC) MYSQL_ADD_PLUGIN(oqgraph ha_oqgraph.cc graphcore.cc STORAGE_ENGINE MODULE_ONLY) -- cgit v1.2.1 From 7ea9d1e692c69c8715d98a9dbc44289d47a65447 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Mon, 27 Jan 2014 13:15:40 +0400 Subject: MDEV-5458 RQG hits 'sql/tztime.cc:799: my_time_t sec_since_epoch(...): Assertion `mon > 0 && mon < 13' failed.' --- mysql-test/r/func_time.result | 24 ++++++++++++++++++++++++ mysql-test/r/type_date.result | 2 +- mysql-test/r/type_time.result | 2 +- mysql-test/t/func_time.test | 11 +++++++++++ sql/item_func.cc | 12 +++++++----- sql/item_timefunc.cc | 22 ++++------------------ sql/mysql_priv.h | 1 + sql/time.cc | 14 ++++++++++++++ 8 files changed, 63 insertions(+), 25 deletions(-) diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result index ddbf42c8060..ac336418823 100644 --- a/mysql-test/r/func_time.result +++ b/mysql-test/r/func_time.result @@ -2348,6 +2348,30 @@ SELECT EXTRACT(DAY FROM TIME('1 02:00:00')), EXTRACT(DAY FROM TIME('26:00:00')); EXTRACT(DAY FROM TIME('1 02:00:00')) EXTRACT(DAY FROM TIME('26:00:00')) 1 1 # +# MDEV-5458 RQG hits 'sql/tztime.cc:799: my_time_t sec_since_epoch(int, int, int, int, int, int): Assertion `mon > 0 && mon < 13' failed.' +# +SET TIMESTAMP=UNIX_TIMESTAMP('2014-01-22 18:19:20'); +CREATE TABLE t1 (t TIME); +INSERT INTO t1 VALUES ('03:22:30'),('18:30:05'); +SELECT CONVERT_TZ(GREATEST(t, CURRENT_DATE()), '+02:00', '+10:00') FROM t1; +CONVERT_TZ(GREATEST(t, CURRENT_DATE()), '+02:00', '+10:00') +NULL +NULL +Warnings: +Warning 1292 Truncated incorrect time value: '1296:00:00' +Warning 1292 Incorrect datetime value: '838:59:59' +Warning 1292 Truncated incorrect time value: '1296:00:00' +Warning 1292 Incorrect datetime value: '838:59:59' +SELECT GREATEST(t, CURRENT_DATE()) FROM t1; +GREATEST(t, CURRENT_DATE()) +838:59:59 +838:59:59 +Warnings: +Warning 1292 Truncated incorrect time value: '1296:00:00' +Warning 1292 Truncated incorrect time value: '1296:00:00' +DROP TABLE t1; +SET TIMESTAMP=DEFAULT; +# # MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP # CREATE TABLE t1 (i INT); diff --git a/mysql-test/r/type_date.result b/mysql-test/r/type_date.result index e452b3255ae..b7776d67651 100644 --- a/mysql-test/r/type_date.result +++ b/mysql-test/r/type_date.result @@ -305,7 +305,7 @@ SELECT CONVERT_TZ(GREATEST(DATE('2021-00-00'),DATE('2022-00-00')),'+00:00','+7:5 CONVERT_TZ(GREATEST(DATE('2021-00-00'),DATE('2022-00-00')),'+00:00','+7:5') NULL Warnings: -Warning 1292 Incorrect datetime value: '2022-00-00 00:00:00' +Warning 1292 Incorrect datetime value: '2022-00-00' # # MDEV-4804 Date comparing false result # diff --git a/mysql-test/r/type_time.result b/mysql-test/r/type_time.result index 84cd6ca4d9e..26e42d3b3b2 100644 --- a/mysql-test/r/type_time.result +++ b/mysql-test/r/type_time.result @@ -180,7 +180,7 @@ SELECT CONVERT_TZ(GREATEST(TIME('00:00:00'),TIME('00:00:00')),'+00:00','+7:5'); CONVERT_TZ(GREATEST(TIME('00:00:00'),TIME('00:00:00')),'+00:00','+7:5') NULL Warnings: -Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' +Warning 1292 Incorrect datetime value: '00:00:00' # # MDEV-4652 Wrong result for CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00'))) # diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 2e8716f3297..4205a70ee56 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -1418,6 +1418,17 @@ SELECT EXTRACT(HOUR FROM TIME'1 02:00:00'), EXTRACT(HOUR FROM TIME'26:00:00'); SELECT EXTRACT(HOUR FROM TIME('1 02:00:00')), EXTRACT(HOUR FROM TIME('26:00:00')); SELECT EXTRACT(DAY FROM TIME('1 02:00:00')), EXTRACT(DAY FROM TIME('26:00:00')); +--echo # +--echo # MDEV-5458 RQG hits 'sql/tztime.cc:799: my_time_t sec_since_epoch(int, int, int, int, int, int): Assertion `mon > 0 && mon < 13' failed.' +--echo # +SET TIMESTAMP=UNIX_TIMESTAMP('2014-01-22 18:19:20'); +CREATE TABLE t1 (t TIME); +INSERT INTO t1 VALUES ('03:22:30'),('18:30:05'); +SELECT CONVERT_TZ(GREATEST(t, CURRENT_DATE()), '+02:00', '+10:00') FROM t1; +SELECT GREATEST(t, CURRENT_DATE()) FROM t1; +DROP TABLE t1; +SET TIMESTAMP=DEFAULT; + --echo # --echo # MDEV-5504 Server crashes in String::length on SELECT with MONTHNAME, GROUP BY, ROLLUP diff --git a/sql/item_func.cc b/sql/item_func.cc index 03cd6b5139d..d6a63348dc2 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -2635,11 +2635,6 @@ bool Item_func_min_max::get_date(MYSQL_TIME *ltime, uint fuzzy_date) } unpack_time(min_max, ltime); - if (!(fuzzy_date & TIME_TIME_ONLY) && - ((null_value= check_date_with_warn(ltime, fuzzy_date, - MYSQL_TIMESTAMP_ERROR)))) - return true; - if (compare_as_dates->field_type() == MYSQL_TYPE_DATE) { ltime->time_type= MYSQL_TIMESTAMP_DATE; @@ -2650,8 +2645,15 @@ bool Item_func_min_max::get_date(MYSQL_TIME *ltime, uint fuzzy_date) ltime->time_type= MYSQL_TIMESTAMP_TIME; ltime->hour+= (ltime->month * 32 + ltime->day) * 24; ltime->month= ltime->day= 0; + if (adjust_time_range_with_warn(ltime, + min(decimals, TIME_SECOND_PART_DIGITS))) + return (null_value= true); } + if (!(fuzzy_date & TIME_TIME_ONLY) && + ((null_value= check_date_with_warn(ltime, fuzzy_date, + MYSQL_TIMESTAMP_ERROR)))) + return true; return 0; } diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index b5d43786248..ebc61e02a82 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2448,7 +2448,7 @@ bool Item_func_add_time::get_date(MYSQL_TIME *ltime, uint fuzzy_date) bool is_time= 0; long days, microseconds; longlong seconds; - int l_sign= sign, was_cut= 0; + int l_sign= sign; if (is_date) // TIMESTAMP function { @@ -2499,16 +2499,7 @@ bool Item_func_add_time::get_date(MYSQL_TIME *ltime, uint fuzzy_date) } ltime->hour+= days*24; - - MYSQL_TIME copy= *ltime; - Lazy_string_time str(©); - - check_time_range(ltime, decimals, &was_cut); - if (was_cut) - make_truncated_value_warning(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, - &str, MYSQL_TIMESTAMP_TIME, NullS); - - return (null_value= 0); + return (null_value= adjust_time_range_with_warn(ltime, decimals)); } @@ -2546,7 +2537,7 @@ bool Item_func_timediff::get_date(MYSQL_TIME *ltime, uint fuzzy_date) DBUG_ASSERT(fixed == 1); longlong seconds; long microseconds; - int l_sign= 1, was_cut= 0; + int l_sign= 1; MYSQL_TIME l_time1,l_time2,l_time3; Lazy_string_time str(&l_time3); @@ -2590,12 +2581,7 @@ bool Item_func_timediff::get_date(MYSQL_TIME *ltime, uint fuzzy_date) goto null_date; *ltime= l_time3; - check_time_range(ltime, decimals, &was_cut); - - if (was_cut) - make_truncated_value_warning(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, - &str, MYSQL_TIMESTAMP_TIME, NullS); - return (null_value= 0); + return (null_value= adjust_time_range_with_warn(ltime, decimals)); null_date: return (null_value= 1); diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 191e6663ff1..0bfdac2f531 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -2582,6 +2582,7 @@ check_date(const MYSQL_TIME *ltime, ulonglong flags, int *was_cut) } bool check_date_with_warn(const MYSQL_TIME *ltime, uint fuzzy_date, timestamp_type ts_type); +bool adjust_time_range_with_warn(MYSQL_TIME *ltime, uint dec); int test_if_number(char *str,int *res,bool allow_wildcards); void change_byte(uchar *,uint,char,char); bool init_read_record(READ_RECORD *info, THD *thd, TABLE *reg_form, diff --git a/sql/time.cc b/sql/time.cc index dc724e21a16..4dce2f4135a 100644 --- a/sql/time.cc +++ b/sql/time.cc @@ -229,6 +229,20 @@ check_date_with_warn(const MYSQL_TIME *ltime, uint fuzzy_date, } +bool +adjust_time_range_with_warn(MYSQL_TIME *ltime, uint dec) +{ + MYSQL_TIME copy= *ltime; + Lazy_string_time str(©); + int warnings= 0; + if (check_time_range(ltime, dec, &warnings)) + return true; + if (warnings) + make_truncated_value_warning(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, + &str, MYSQL_TIMESTAMP_TIME, NullS); + return false; +} + /* Convert a timestamp string to a MYSQL_TIME value and produce a warning if string was truncated during conversion. -- cgit v1.2.1 From ebaac51c2f047892cdfc0e30415a4880df9de2e8 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 27 Jan 2014 12:10:53 +0100 Subject: mtr: check that tests clean up debug_sync. fix tests that didn't. --- mysql-test/include/mtr_check.sql | 3 +++ mysql-test/r/myisam_optimize.result | 1 + mysql-test/r/processlist.result | 1 + mysql-test/r/quick_select_4161.result | 1 + mysql-test/suite/rpl/r/rpl_mdev359.result | 1 + mysql-test/suite/rpl/r/rpl_start_slave_deadlock_sys_vars.result | 1 + mysql-test/suite/rpl/r/rpl_stop_slave.result | 2 +- mysql-test/suite/rpl/t/rpl_mdev359.test | 1 + mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test | 1 + mysql-test/suite/rpl/t/rpl_stop_slave.test | 2 +- mysql-test/t/myisam_optimize.test | 1 + mysql-test/t/processlist.test | 2 +- mysql-test/t/quick_select_4161.test | 1 + storage/tokudb/mysql-test/tokudb_mariadb/r/optimize.result | 1 + storage/tokudb/mysql-test/tokudb_mariadb/t/optimize.test | 1 + 15 files changed, 17 insertions(+), 3 deletions(-) diff --git a/mysql-test/include/mtr_check.sql b/mysql-test/include/mtr_check.sql index 7cca74d52f0..e0d4f407633 100644 --- a/mysql-test/include/mtr_check.sql +++ b/mysql-test/include/mtr_check.sql @@ -78,6 +78,9 @@ BEGIN -- verify that no plugin changed its disabled/enabled state SELECT * FROM INFORMATION_SCHEMA.PLUGINS; + select * from information_schema.session_variables + where variable_name = 'debug_sync'; + show status like 'slave_open_temp_tables'; END|| diff --git a/mysql-test/r/myisam_optimize.result b/mysql-test/r/myisam_optimize.result index 185d49e6391..341c3e180b8 100644 --- a/mysql-test/r/myisam_optimize.result +++ b/mysql-test/r/myisam_optimize.result @@ -21,3 +21,4 @@ a left(b,10) 3 CCCCCCCCCC 4 CCCCCCCCCC drop table t1; +set debug_sync='reset'; diff --git a/mysql-test/r/processlist.result b/mysql-test/r/processlist.result index fc03f920533..127fa96b84b 100644 --- a/mysql-test/r/processlist.result +++ b/mysql-test/r/processlist.result @@ -13,3 +13,4 @@ sleep(5) select command, time < 5 from information_schema.processlist where id != connection_id(); command time < 5 Sleep 1 +set debug_sync='reset'; diff --git a/mysql-test/r/quick_select_4161.result b/mysql-test/r/quick_select_4161.result index 862be6055ce..18ac4362a84 100644 --- a/mysql-test/r/quick_select_4161.result +++ b/mysql-test/r/quick_select_4161.result @@ -29,3 +29,4 @@ kill %connection%; set debug_sync='now signal done'; Got one of the listed errors drop table t1; +set debug_sync='reset'; diff --git a/mysql-test/suite/rpl/r/rpl_mdev359.result b/mysql-test/suite/rpl/r/rpl_mdev359.result index f4382f672e4..f0709a8158f 100644 --- a/mysql-test/suite/rpl/r/rpl_mdev359.result +++ b/mysql-test/suite/rpl/r/rpl_mdev359.result @@ -9,5 +9,6 @@ SET DEBUG_SYNC= "now WAIT_FOR m1_ready"; SET GLOBAL rpl_semi_sync_master_enabled = OFF; SET DEBUG_SYNC= "now SIGNAL m1_cont"; DROP TABLE t1; +SET DEBUG_SYNC= "RESET"; UNINSTALL PLUGIN rpl_semi_sync_master; include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_start_slave_deadlock_sys_vars.result b/mysql-test/suite/rpl/r/rpl_start_slave_deadlock_sys_vars.result index f69a323f980..033027addf9 100644 --- a/mysql-test/suite/rpl/r/rpl_start_slave_deadlock_sys_vars.result +++ b/mysql-test/suite/rpl/r/rpl_start_slave_deadlock_sys_vars.result @@ -28,4 +28,5 @@ SET DEBUG_SYNC='now SIGNAL go'; # connection: slave # cleanup SET @@GLOBAL.slave_net_timeout = @save_slave_net_timeout; +SET DEBUG_SYNC='RESET'; include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_stop_slave.result b/mysql-test/suite/rpl/r/rpl_stop_slave.result index 3d9bad18ab6..5959ee09993 100644 --- a/mysql-test/suite/rpl/r/rpl_stop_slave.result +++ b/mysql-test/suite/rpl/r/rpl_stop_slave.result @@ -113,7 +113,6 @@ ROLLBACK; [connection master] SET DEBUG_SYNC= 'now SIGNAL signal.continue'; SET DEBUG_SYNC= 'now WAIT_FOR signal.continued'; -SET DEBUG_SYNC= 'RESET'; [connection slave] include/wait_for_slave_to_stop.inc [connection slave1] @@ -121,3 +120,4 @@ include/start_slave.inc [connection master] DROP TABLE t1, t2; include/rpl_end.inc +SET DEBUG_SYNC= 'RESET'; diff --git a/mysql-test/suite/rpl/t/rpl_mdev359.test b/mysql-test/suite/rpl/t/rpl_mdev359.test index ef4e41f5291..e657474129e 100644 --- a/mysql-test/suite/rpl/t/rpl_mdev359.test +++ b/mysql-test/suite/rpl/t/rpl_mdev359.test @@ -28,6 +28,7 @@ SET DEBUG_SYNC= "now SIGNAL m1_cont"; connection master; DROP TABLE t1; +SET DEBUG_SYNC= "RESET"; disable_warnings; UNINSTALL PLUGIN rpl_semi_sync_master; diff --git a/mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test b/mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test index 3eaff761108..96a629484f2 100644 --- a/mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test +++ b/mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test @@ -53,5 +53,6 @@ disconnect slave2; connection slave; --echo # cleanup SET @@GLOBAL.slave_net_timeout = @save_slave_net_timeout; +SET DEBUG_SYNC='RESET'; source include/rpl_end.inc; diff --git a/mysql-test/suite/rpl/t/rpl_stop_slave.test b/mysql-test/suite/rpl/t/rpl_stop_slave.test index 7e57359877b..d9d7f39c321 100644 --- a/mysql-test/suite/rpl/t/rpl_stop_slave.test +++ b/mysql-test/suite/rpl/t/rpl_stop_slave.test @@ -107,7 +107,6 @@ ROLLBACK; --source include/rpl_connection_master.inc SET DEBUG_SYNC= 'now SIGNAL signal.continue'; SET DEBUG_SYNC= 'now WAIT_FOR signal.continued'; -SET DEBUG_SYNC= 'RESET'; --source include/rpl_connection_slave.inc source include/wait_for_slave_to_stop.inc; @@ -122,3 +121,4 @@ DROP TABLE t1, t2; eval SET GLOBAL debug_dbug= '$debug_save'; --enable_query_log --source include/rpl_end.inc +SET DEBUG_SYNC= 'RESET'; diff --git a/mysql-test/t/myisam_optimize.test b/mysql-test/t/myisam_optimize.test index da47a7a4127..3788534e2a5 100644 --- a/mysql-test/t/myisam_optimize.test +++ b/mysql-test/t/myisam_optimize.test @@ -44,4 +44,5 @@ disconnect con2; connection default; drop table t1; +set debug_sync='reset'; diff --git a/mysql-test/t/processlist.test b/mysql-test/t/processlist.test index c7b775cf992..7a2b33699d5 100644 --- a/mysql-test/t/processlist.test +++ b/mysql-test/t/processlist.test @@ -32,4 +32,4 @@ connection default; select command, time < 5 from information_schema.processlist where id != connection_id(); disconnect con1; - +set debug_sync='reset'; diff --git a/mysql-test/t/quick_select_4161.test b/mysql-test/t/quick_select_4161.test index 1e746754b41..87323087622 100644 --- a/mysql-test/t/quick_select_4161.test +++ b/mysql-test/t/quick_select_4161.test @@ -50,4 +50,5 @@ connection default; disconnect killee; drop table t1; +set debug_sync='reset'; diff --git a/storage/tokudb/mysql-test/tokudb_mariadb/r/optimize.result b/storage/tokudb/mysql-test/tokudb_mariadb/r/optimize.result index 3fafa68f907..5151f2bc895 100644 --- a/storage/tokudb/mysql-test/tokudb_mariadb/r/optimize.result +++ b/storage/tokudb/mysql-test/tokudb_mariadb/r/optimize.result @@ -11,3 +11,4 @@ set debug_sync='now SIGNAL go'; Table Op Msg_type Msg_text test.t1 optimize status OK drop table t1; +set debug_sync='reset'; diff --git a/storage/tokudb/mysql-test/tokudb_mariadb/t/optimize.test b/storage/tokudb/mysql-test/tokudb_mariadb/t/optimize.test index 20a6daf43fc..0eae53e77f9 100644 --- a/storage/tokudb/mysql-test/tokudb_mariadb/t/optimize.test +++ b/storage/tokudb/mysql-test/tokudb_mariadb/t/optimize.test @@ -14,4 +14,5 @@ connection default; reap; drop table t1; +set debug_sync='reset'; -- cgit v1.2.1 From b4dd13b519e1346d81641ccd3331181ab13e1d41 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 27 Jan 2014 12:11:04 +0100 Subject: MDEV-5405 RQG induced crash in mi_assign_to_key_cache in safe mutex unlock if two threads were calling mi_assign_to_key_cache() for the same table, one could change share->key_cache while the other was having share->key_cache->op_lock locked. The other thread would crash then, trying to unlock share->key_cache->op_lock (because it would be a different mutex). fixed by caching the value of share->key_cache in a local variable. The thread can still call flush_key_blocks() for an unassigned keycache, but it's harmless. --- mysql-test/r/assign_key_cache-5405.result | 14 ++++++++++++++ mysql-test/t/assign_key_cache-5405.test | 27 +++++++++++++++++++++++++++ storage/myisam/mi_keycache.c | 23 +++++++++++++---------- 3 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 mysql-test/r/assign_key_cache-5405.result create mode 100644 mysql-test/t/assign_key_cache-5405.test diff --git a/mysql-test/r/assign_key_cache-5405.result b/mysql-test/r/assign_key_cache-5405.result new file mode 100644 index 00000000000..4a0fc58cd4f --- /dev/null +++ b/mysql-test/r/assign_key_cache-5405.result @@ -0,0 +1,14 @@ +create table t1 (f int, key(f)) engine=myisam; +set global kc1.key_buffer_size = 65536; +set debug_sync='assign_key_cache_op_unlock wait_for op_locked'; +cache index t1 in kc1; +set debug_sync='assign_key_cache_op_lock signal op_locked wait_for assigned'; +cache index t1 in kc1; +Table Op Msg_type Msg_text +test.t1 assign_to_keycache status OK +set debug_sync='now signal assigned'; +Table Op Msg_type Msg_text +test.t1 assign_to_keycache status OK +drop table t1; +set global kc1.key_buffer_size = 0; +set debug_sync='reset'; diff --git a/mysql-test/t/assign_key_cache-5405.test b/mysql-test/t/assign_key_cache-5405.test new file mode 100644 index 00000000000..2839e040bd3 --- /dev/null +++ b/mysql-test/t/assign_key_cache-5405.test @@ -0,0 +1,27 @@ +# +# MDEV-5405 RQG induced crash in mi_assign_to_key_cache in safe mutex unlock +# +--source include/have_debug_sync.inc +create table t1 (f int, key(f)) engine=myisam; +set global kc1.key_buffer_size = 65536; + +connect (con1, localhost, root); + +set debug_sync='assign_key_cache_op_unlock wait_for op_locked'; +send cache index t1 in kc1; + +connection default; +sleep 1; +set debug_sync='assign_key_cache_op_lock signal op_locked wait_for assigned'; +send cache index t1 in kc1; + +connection con1; +reap; +set debug_sync='now signal assigned'; +disconnect con1; +connection default; +reap; + +drop table t1; +set global kc1.key_buffer_size = 0; +set debug_sync='reset'; diff --git a/storage/myisam/mi_keycache.c b/storage/myisam/mi_keycache.c index b45f0efa2f7..59a1ca27614 100644 --- a/storage/myisam/mi_keycache.c +++ b/storage/myisam/mi_keycache.c @@ -49,19 +49,20 @@ int mi_assign_to_key_cache(MI_INFO *info, ulonglong key_map __attribute__((unused)), - KEY_CACHE *key_cache) + KEY_CACHE *new_key_cache) { int error= 0; MYISAM_SHARE* share= info->s; + KEY_CACHE *old_key_cache= share->key_cache; DBUG_ENTER("mi_assign_to_key_cache"); - DBUG_PRINT("enter",("old_key_cache_handle: 0x%lx new_key_cache_handle: 0x%lx", - (long) share->key_cache, (long) key_cache)); + DBUG_PRINT("enter",("old_key_cache_handle: %p new_key_cache_handle: %p", + old_key_cache, new_key_cache)); /* Skip operation if we didn't change key cache. This can happen if we call this for all open instances of the same table */ - if (share->key_cache == key_cache) + if (old_key_cache == new_key_cache) DBUG_RETURN(0); /* @@ -76,15 +77,17 @@ int mi_assign_to_key_cache(MI_INFO *info, in the old key cache. */ - pthread_mutex_lock(&share->key_cache->op_lock); - if (flush_key_blocks(share->key_cache, share->kfile, &share->dirty_part_map, + pthread_mutex_lock(&old_key_cache->op_lock); + DEBUG_SYNC_C("assign_key_cache_op_lock"); + if (flush_key_blocks(old_key_cache, share->kfile, &share->dirty_part_map, FLUSH_RELEASE)) { error= my_errno; mi_print_error(info->s, HA_ERR_CRASHED); mi_mark_crashed(info); /* Mark that table must be checked */ } - pthread_mutex_unlock(&share->key_cache->op_lock); + pthread_mutex_unlock(&old_key_cache->op_lock); + DEBUG_SYNC_C("assign_key_cache_op_unlock"); /* Flush the new key cache for this file. This is needed to ensure @@ -94,7 +97,7 @@ int mi_assign_to_key_cache(MI_INFO *info, (This can never fail as there is never any not written data in the new key cache) */ - (void) flush_key_blocks(key_cache, share->kfile, &share->dirty_part_map, + (void) flush_key_blocks(new_key_cache, share->kfile, &share->dirty_part_map, FLUSH_RELEASE); /* @@ -106,13 +109,13 @@ int mi_assign_to_key_cache(MI_INFO *info, Tell all threads to use the new key cache This should be seen at the lastes for the next call to an myisam function. */ - share->key_cache= key_cache; + share->key_cache= new_key_cache; share->dirty_part_map= 0; /* store the key cache in the global hash structure for future opens */ if (multi_key_cache_set((uchar*) share->unique_file_name, share->unique_name_length, - share->key_cache)) + new_key_cache)) error= my_errno; mysql_mutex_unlock(&share->intern_lock); DBUG_RETURN(error); -- cgit v1.2.1 From 4a3ea302211ec42e7bf8558c461caa1f0c94094b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 27 Jan 2014 16:58:26 +0100 Subject: MDEV-4787 Missing dependency to "patch" for the Debian/Ubuntu "mariadb-test" package add patch as a "suggested" dependency to mariadb-test-5.5 --- debian/dist/Debian/control | 1 + debian/dist/Ubuntu/control | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/dist/Debian/control b/debian/dist/Debian/control index 2b4c419ea8e..fb8153dc87f 100644 --- a/debian/dist/Debian/control +++ b/debian/dist/Debian/control @@ -171,6 +171,7 @@ Depends: mariadb-server-5.5 (= ${source:Version}), mariadb-client-5.5 (= ${sourc Conflicts: mariadb-test (<< ${source:Version}), mariadb-test-5.1, mariadb-test-5.2, mariadb-test-5.3, mariadb-server-5.5 (<< 5.5.33), mariadb-galera-server-5.5 (<< 5.5.33) +Suggests: patch Replaces: mariadb-test (<< ${source:Version}), mariadb-test-5.1, mariadb-test-5.2, mariadb-test-5.3 Description: MariaDB database regression test suite diff --git a/debian/dist/Ubuntu/control b/debian/dist/Ubuntu/control index a4e25565944..0cc065a8f35 100644 --- a/debian/dist/Ubuntu/control +++ b/debian/dist/Ubuntu/control @@ -162,6 +162,7 @@ Package: mariadb-test-5.5 Section: database Architecture: any Depends: mariadb-server-5.5 (= ${source:Version}), mariadb-client-5.5 (= ${source:Version}) +Suggests: patch Conflicts: mariadb-test (<< ${source:Version}), mariadb-test-5.1, mariadb-test-5.2, mariadb-test-5.3, mariadb-server-5.5 (<< 5.5.33), mariadb-galera-server-5.5 (<< 5.5.33) -- cgit v1.2.1 From 4bf002d6a02943bc94d918216d5dc86f2f00a0de Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 27 Jan 2014 20:50:32 +0100 Subject: MDEV-5576 ALTER TABLE progress report > 100% --- sql/sql_show.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 20b2b9cc7b8..acd67f807ca 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2247,6 +2247,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) (double) tmp->progress.max_counter) / (double) max_stage)) * 100.0); + set_if_smaller(thd_info->progress, 100); } else thd_info->progress= 0.0; -- cgit v1.2.1 From e1e5ce0da242c30a744f496dfc5b5a00584d0e56 Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Tue, 28 Jan 2014 11:12:43 +0400 Subject: MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and INSTALL PLUGIN There was mixed lock order between LOCK_plugin, LOCK_global_system_variables and LOCK_system_variables_hash. This patch ensures that write-lock on LOCK_system_variables_hash doesn't intersect with LOCK_plugin. Fixed by moving initialization/deinitialization of plugin options from plugin_add()/plugin_del() to plugin_initialize()/plugin_deinitalize(). So that plugin options are handled without protection of LOCK_plugin. --- mysql-test/r/plugin_vars.result | 22 ++++++ mysql-test/t/plugin_vars.test | 56 +++++++++++++++ sql/set_var.cc | 4 +- sql/sql_plugin.cc | 149 +++++++++++++++++++--------------------- 4 files changed, 152 insertions(+), 79 deletions(-) create mode 100644 mysql-test/r/plugin_vars.result create mode 100644 mysql-test/t/plugin_vars.test diff --git a/mysql-test/r/plugin_vars.result b/mysql-test/r/plugin_vars.result new file mode 100644 index 00000000000..869e0cf9a2a --- /dev/null +++ b/mysql-test/r/plugin_vars.result @@ -0,0 +1,22 @@ +# +# MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and +# INSTALL PLUGIN +# +CREATE PROCEDURE p_install(x INT) +BEGIN +DECLARE CONTINUE HANDLER FOR 1126 BEGIN END; +WHILE x DO +SET x= x - 1; +INSTALL PLUGIN no_such_plugin SONAME 'no_such_object'; +END WHILE; +END| +CREATE PROCEDURE p_show_vars(x INT) +WHILE x DO +SET x= x - 1; +SHOW VARIABLES; +END WHILE| +CALL p_install(100); +CALL p_show_vars(100); +USE test; +DROP PROCEDURE p_install; +DROP PROCEDURE p_show_vars; diff --git a/mysql-test/t/plugin_vars.test b/mysql-test/t/plugin_vars.test new file mode 100644 index 00000000000..8ba8fe2ec0e --- /dev/null +++ b/mysql-test/t/plugin_vars.test @@ -0,0 +1,56 @@ +--echo # +--echo # MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and +--echo # INSTALL PLUGIN +--echo # + +# Prepare test +delimiter |; +CREATE PROCEDURE p_install(x INT) +BEGIN + DECLARE CONTINUE HANDLER FOR 1126 BEGIN END; + WHILE x DO + SET x= x - 1; + INSTALL PLUGIN no_such_plugin SONAME 'no_such_object'; + END WHILE; +END| + +CREATE PROCEDURE p_show_vars(x INT) +WHILE x DO + SET x= x - 1; + SHOW VARIABLES; +END WHILE| +delimiter ;| + +connect(con1, localhost, root,,); +connect(con2, localhost, root,,); + +# Start test +connection con1; +--send CALL p_install(100) + +connection con2; +--send CALL p_show_vars(100) + +connection default; + +disable_result_log; +let $i= 100; +while ($i) +{ + change_user; + dec $i; +} + +# Cleanup +connection con1; +reap; +connection con2; +reap; +connection default; +enable_result_log; + +disconnect con1; +disconnect con2; +USE test; +DROP PROCEDURE p_install; +DROP PROCEDURE p_show_vars; diff --git a/sql/set_var.cc b/sql/set_var.cc index 2179f50d266..d4ca335e959 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -441,10 +441,10 @@ int mysql_del_sys_var_chain(sys_var *first) { int result= 0; - /* A write lock should be held on LOCK_system_variables_hash */ - + mysql_rwlock_wrlock(&LOCK_system_variables_hash); for (sys_var *var= first; var; var= var->next) result|= my_hash_delete(&system_variable_hash, (uchar*) var); + mysql_rwlock_unlock(&LOCK_system_variables_hash); return result; } diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index af4c458fbef..1ada66e01fb 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -192,6 +192,7 @@ mysql_mutex_t LOCK_plugin; static DYNAMIC_ARRAY plugin_dl_array; static DYNAMIC_ARRAY plugin_array; static HASH plugin_hash[MYSQL_MAX_PLUGIN_TYPE_NUM]; +static MEM_ROOT plugin_mem_root; static bool reap_needed= false; static int plugin_array_version=0; @@ -201,7 +202,7 @@ static bool initialized= 0; write-lock on LOCK_system_variables_hash is required before modifying the following variables/structures */ -static MEM_ROOT plugin_mem_root; +static MEM_ROOT plugin_vars_mem_root; static uint global_variables_dynamic_size= 0; static HASH bookmark_hash; @@ -297,8 +298,8 @@ public: /* prototypes */ -static void plugin_load(MEM_ROOT *tmp_root, int *argc, char **argv); -static bool plugin_load_list(MEM_ROOT *, int *, char **, const char *); +static void plugin_load(MEM_ROOT *tmp_root); +static bool plugin_load_list(MEM_ROOT *, const char *); static int test_plugin_options(MEM_ROOT *, struct st_plugin_int *, int *, char **); static bool register_builtin(struct st_maria_plugin *, struct st_plugin_int *, @@ -1038,8 +1039,7 @@ static st_plugin_int *plugin_insert_or_reuse(struct st_plugin_int *plugin) Requires that a write-lock is held on LOCK_system_variables_hash */ static bool plugin_add(MEM_ROOT *tmp_root, - const LEX_STRING *name, LEX_STRING *dl, - int *argc, char **argv, int report) + const LEX_STRING *name, LEX_STRING *dl, int report) { struct st_plugin_int tmp; struct st_maria_plugin *plugin; @@ -1102,15 +1102,9 @@ static bool plugin_add(MEM_ROOT *tmp_root, tmp.ref_count= 0; tmp.state= PLUGIN_IS_UNINITIALIZED; tmp.load_option= PLUGIN_ON; - if (test_plugin_options(tmp_root, &tmp, argc, argv)) - tmp.state= PLUGIN_IS_DISABLED; if (!(tmp_plugin_ptr= plugin_insert_or_reuse(&tmp))) - { - mysql_del_sys_var_chain(tmp.system_vars); - restore_pluginvar_names(tmp.system_vars); goto err; - } plugin_array_version++; if (my_hash_insert(&plugin_hash[plugin->type], (uchar*)tmp_plugin_ptr)) tmp_plugin_ptr->state= PLUGIN_IS_FREED; @@ -1196,6 +1190,8 @@ static void plugin_deinitialize(struct st_plugin_int *plugin, bool ref_check) if (ref_check && plugin->ref_count) sql_print_error("Plugin '%s' has ref_count=%d after deinitialization.", plugin->name.str, plugin->ref_count); + + restore_pluginvar_names(plugin->system_vars); } static void plugin_del(struct st_plugin_int *plugin) @@ -1203,10 +1199,6 @@ static void plugin_del(struct st_plugin_int *plugin) DBUG_ENTER("plugin_del"); mysql_mutex_assert_owner(&LOCK_plugin); /* Free allocated strings before deleting the plugin. */ - mysql_rwlock_wrlock(&LOCK_system_variables_hash); - mysql_del_sys_var_chain(plugin->system_vars); - mysql_rwlock_unlock(&LOCK_system_variables_hash); - restore_pluginvar_names(plugin->system_vars); plugin_vars_free_values(plugin->system_vars); my_hash_delete(&plugin_hash[plugin->plugin->type], (uchar*)plugin); if (plugin->plugin_dl) @@ -1342,7 +1334,8 @@ void plugin_unlock_list(THD *thd, plugin_ref *list, uint count) } -static int plugin_initialize(struct st_plugin_int *plugin) +static int plugin_initialize(MEM_ROOT *tmp_root, struct st_plugin_int *plugin, + int *argc, char **argv, bool options_only) { int ret= 1; DBUG_ENTER("plugin_initialize"); @@ -1352,6 +1345,18 @@ static int plugin_initialize(struct st_plugin_int *plugin) DBUG_ASSERT(state == PLUGIN_IS_UNINITIALIZED); mysql_mutex_unlock(&LOCK_plugin); + + mysql_rwlock_wrlock(&LOCK_system_variables_hash); + if (test_plugin_options(tmp_root, plugin, argc, argv)) + state= PLUGIN_IS_DISABLED; + mysql_rwlock_unlock(&LOCK_system_variables_hash); + + if (options_only || state == PLUGIN_IS_DISABLED) + { + ret= 0; + goto err; + } + if (plugin_type_initialize[plugin->plugin->type]) { if ((*plugin_type_initialize[plugin->plugin->type])(plugin)) @@ -1413,6 +1418,9 @@ static int plugin_initialize(struct st_plugin_int *plugin) ret= 0; err: + if (ret) + restore_pluginvar_names(plugin->system_vars); + mysql_mutex_lock(&LOCK_plugin); plugin->state= state; @@ -1508,6 +1516,7 @@ int plugin_init(int *argc, char **argv, int flags) #endif init_alloc_root(&plugin_mem_root, 4096, 4096); + init_alloc_root(&plugin_vars_mem_root, 4096, 4096); init_alloc_root(&tmp_root, 4096, 4096); if (my_hash_init(&bookmark_hash, &my_charset_bin, 16, 0, 0, @@ -1575,10 +1584,7 @@ int plugin_init(int *argc, char **argv, int flags) } free_root(&tmp_root, MYF(MY_MARK_BLOCKS_FREE)); - if (test_plugin_options(&tmp_root, &tmp, argc, argv)) - tmp.state= PLUGIN_IS_DISABLED; - else - tmp.state= PLUGIN_IS_UNINITIALIZED; + tmp.state= PLUGIN_IS_UNINITIALIZED; if (register_builtin(plugin, &tmp, &plugin_ptr)) goto err_unlock; @@ -1593,15 +1599,12 @@ int plugin_init(int *argc, char **argv, int flags) mysqld --help for all other users, we will only initialize MyISAM here. */ - if (!(flags & PLUGIN_INIT_SKIP_INITIALIZATION) || is_myisam) + if (plugin_initialize(&tmp_root, plugin_ptr, argc, argv, !is_myisam && + (flags & PLUGIN_INIT_SKIP_INITIALIZATION))) { - if (plugin_ptr->state == PLUGIN_IS_UNINITIALIZED && - plugin_initialize(plugin_ptr)) - { - if (mandatory) - goto err_unlock; - plugin_ptr->state= PLUGIN_IS_DISABLED; - } + if (mandatory) + goto err_unlock; + plugin_ptr->state= PLUGIN_IS_DISABLED; } /* @@ -1627,14 +1630,11 @@ int plugin_init(int *argc, char **argv, int flags) if (!(flags & PLUGIN_INIT_SKIP_DYNAMIC_LOADING)) { if (opt_plugin_load) - plugin_load_list(&tmp_root, argc, argv, opt_plugin_load); + plugin_load_list(&tmp_root, opt_plugin_load); if (!(flags & PLUGIN_INIT_SKIP_PLUGIN_TABLE)) - plugin_load(&tmp_root, argc, argv); + plugin_load(&tmp_root); } - if (flags & PLUGIN_INIT_SKIP_INITIALIZATION) - goto end; - /* Now we initialize all remaining plugins */ @@ -1646,9 +1646,10 @@ int plugin_init(int *argc, char **argv, int flags) for (i= 0; i < plugin_array.elements; i++) { plugin_ptr= *dynamic_element(&plugin_array, i, struct st_plugin_int **); - if (plugin_ptr->state == PLUGIN_IS_UNINITIALIZED) + if (plugin_ptr->plugin_dl && plugin_ptr->state == PLUGIN_IS_UNINITIALIZED) { - if (plugin_initialize(plugin_ptr)) + if (plugin_initialize(&tmp_root, plugin_ptr, argc, argv, + (flags & PLUGIN_INIT_SKIP_INITIALIZATION))) { plugin_ptr->state= PLUGIN_IS_DYING; *(reap++)= plugin_ptr; @@ -1675,7 +1676,6 @@ int plugin_init(int *argc, char **argv, int flags) if (reaped_mandatory_plugin) goto err; -end: free_root(&tmp_root, MYF(0)); DBUG_RETURN(0); @@ -1714,7 +1714,7 @@ static bool register_builtin(struct st_maria_plugin *plugin, /* called only by plugin_init() */ -static void plugin_load(MEM_ROOT *tmp_root, int *argc, char **argv) +static void plugin_load(MEM_ROOT *tmp_root) { THD thd; TABLE_LIST tables; @@ -1786,7 +1786,7 @@ static void plugin_load(MEM_ROOT *tmp_root, int *argc, char **argv) the mutex here to satisfy the assert */ mysql_mutex_lock(&LOCK_plugin); - if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG)) + if (plugin_add(tmp_root, &name, &dl, REPORT_TO_LOG)) sql_print_warning("Couldn't load plugin named '%s' with soname '%s'.", str_name.c_ptr(), str_dl.c_ptr()); free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE)); @@ -1807,8 +1807,7 @@ end: /* called only by plugin_init() */ -static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv, - const char *list) +static bool plugin_load_list(MEM_ROOT *tmp_root, const char *list) { char buffer[FN_REFLEN]; LEX_STRING name= {buffer, 0}, dl= {NULL, 0}, *str= &name; @@ -1843,14 +1842,14 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv, mysql_mutex_lock(&LOCK_plugin); free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE)); name.str= 0; // load everything - if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG)) + if (plugin_add(tmp_root, &name, &dl, REPORT_TO_LOG)) goto error; } else { free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE)); mysql_mutex_lock(&LOCK_plugin); - if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG)) + if (plugin_add(tmp_root, &name, &dl, REPORT_TO_LOG)) goto error; } mysql_mutex_unlock(&LOCK_plugin); @@ -2008,6 +2007,7 @@ void plugin_shutdown(void) my_hash_free(&bookmark_hash); free_root(&plugin_mem_root, MYF(0)); + free_root(&plugin_vars_mem_root, MYF(0)); global_variables_dynamic_size= 0; @@ -2019,28 +2019,22 @@ void plugin_shutdown(void) That is, initialize it, and update mysql.plugin table */ -static bool finalize_install(THD *thd, TABLE *table, const LEX_STRING *name) +static bool finalize_install(THD *thd, TABLE *table, const LEX_STRING *name, + int *argc, char **argv) { struct st_plugin_int *tmp= plugin_find_internal(name, MYSQL_ANY_PLUGIN); int error; DBUG_ASSERT(tmp); mysql_mutex_assert_owner(&LOCK_plugin); // because of tmp->state - if (tmp->state == PLUGIN_IS_DISABLED) - { - if (global_system_variables.log_warnings) - push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, - ER_CANT_INITIALIZE_UDF, ER(ER_CANT_INITIALIZE_UDF), - name->str, "Plugin is disabled"); - } - else if (tmp->state != PLUGIN_IS_UNINITIALIZED) + if (tmp->state != PLUGIN_IS_UNINITIALIZED) { /* already installed */ return 0; } else { - if (plugin_initialize(tmp)) + if (plugin_initialize(thd->mem_root, tmp, argc, argv, false)) { report_error(REPORT_TO_USER, ER_CANT_INITIALIZE_UDF, name->str, "Plugin initialization function failed."); @@ -2048,6 +2042,13 @@ static bool finalize_install(THD *thd, TABLE *table, const LEX_STRING *name) return 1; } } + if (tmp->state == PLUGIN_IS_DISABLED) + { + if (global_system_variables.log_warnings) + push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, + ER_CANT_INITIALIZE_UDF, ER(ER_CANT_INITIALIZE_UDF), + name->str, "Plugin is disabled"); + } /* We do not replicate the INSTALL PLUGIN statement. Disable binlogging @@ -2097,6 +2098,12 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, MYSQL_LOCK_IGNORE_TIMEOUT))) DBUG_RETURN(TRUE); + if (my_load_defaults(MYSQL_CONFIG_NAME, load_default_groups, &argc, &argv, NULL)) + { + report_error(REPORT_TO_USER, ER_PLUGIN_IS_NOT_LOADED, name->str); + DBUG_RETURN(TRUE); + } + /* Pre-acquire audit plugins for events that may potentially occur during [UN]INSTALL PLUGIN. @@ -2123,23 +2130,12 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, mysql_audit_acquire_plugins(thd, event_class_mask); mysql_mutex_lock(&LOCK_plugin); - mysql_rwlock_wrlock(&LOCK_system_variables_hash); - - if (my_load_defaults(MYSQL_CONFIG_NAME, load_default_groups, &argc, &argv, NULL)) - { - report_error(REPORT_TO_USER, ER_PLUGIN_IS_NOT_LOADED, name->str); - goto err; - } - error= plugin_add(thd->mem_root, name, &dl, &argc, argv, REPORT_TO_USER); - if (argv) - free_defaults(argv); - mysql_rwlock_unlock(&LOCK_system_variables_hash); - + error= plugin_add(thd->mem_root, name, &dl, REPORT_TO_USER); if (error) goto err; if (name->str) - error= finalize_install(thd, table, name); + error= finalize_install(thd, table, name, &argc, argv); else { st_plugin_dl *plugin_dl= plugin_dl_find(&dl); @@ -2147,22 +2143,20 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, for (plugin= plugin_dl->plugins; plugin->info; plugin++) { LEX_STRING str= { const_cast(plugin->name), strlen(plugin->name) }; - error|= finalize_install(thd, table, &str); + error|= finalize_install(thd, table, &str, &argc, argv); } } if (error) - goto deinit; - - mysql_mutex_unlock(&LOCK_plugin); - DBUG_RETURN(FALSE); - -deinit: - reap_needed= true; - reap_plugins(); + { + reap_needed= true; + reap_plugins(); + } err: mysql_mutex_unlock(&LOCK_plugin); - DBUG_RETURN(TRUE); + if (argv) + free_defaults(argv); + DBUG_RETURN(error); } @@ -2817,7 +2811,7 @@ static st_bookmark *register_var(const char *plugin, const char *name, if (!(result= find_bookmark(NULL, varname + 1, flags))) { - result= (st_bookmark*) alloc_root(&plugin_mem_root, + result= (st_bookmark*) alloc_root(&plugin_vars_mem_root, sizeof(struct st_bookmark) + length-1); varname[0]= plugin_var_bookmark_key(flags); memcpy(result->key, varname, length); @@ -2876,6 +2870,7 @@ static st_bookmark *register_var(const char *plugin, const char *name, static void restore_pluginvar_names(sys_var *first) { + mysql_del_sys_var_chain(first); for (sys_var *var= first; var; var= var->next) { sys_var_pluginvar *pv= var->cast_pluginvar(); @@ -3806,7 +3801,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp, enum_plugin_load_option plugin_load_option= tmp->load_option; MEM_ROOT *mem_root= alloc_root_inited(&tmp->mem_root) ? - &tmp->mem_root : &plugin_mem_root; + &tmp->mem_root : &plugin_vars_mem_root; st_mysql_sys_var **opt; my_option *opts= NULL; LEX_STRING plugin_name; -- cgit v1.2.1 From f189ed5009cfd4149aa90ba18bfc9c80de9f0a39 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 28 Jan 2014 12:25:29 +0400 Subject: MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ It's wrong to return my_empty_string from val_str(). Removing my_empty_string. Using make_empty_result() instead. --- mysql-test/r/date_formats.result | 2 ++ mysql-test/r/timezone2.result | 6 ++++++ mysql-test/t/date_formats.test | 2 ++ mysql-test/t/timezone2.test | 6 ++++++ sql/item_strfunc.cc | 7 +------ sql/mysql_priv.h | 1 - sql/set_var.cc | 10 ++++------ sql/sql_class.cc | 3 ++- 8 files changed, 23 insertions(+), 14 deletions(-) diff --git a/mysql-test/r/date_formats.result b/mysql-test/r/date_formats.result index 88255a06adb..c1519b769f5 100644 --- a/mysql-test/r/date_formats.result +++ b/mysql-test/r/date_formats.result @@ -24,6 +24,8 @@ SET date_format='%Y%m%d'; SET date_format='%Y.%m.%d'; SET date_format='%d.%m.%Y'; SET date_format='%m-%d-%Y'; +SET datetime_format= NULL; +ERROR 42000: Variable 'datetime_format' can't be set to the value of 'NULL' set datetime_format= '%Y%m%d%H%i%s'; set datetime_format= '%Y-%m-%d %H:%i:%s'; set datetime_format= '%m-%d-%y %H:%i:%s.%f'; diff --git a/mysql-test/r/timezone2.result b/mysql-test/r/timezone2.result index 70f5ef9edc1..0ac4ddca277 100644 --- a/mysql-test/r/timezone2.result +++ b/mysql-test/r/timezone2.result @@ -326,5 +326,11 @@ NULL Warnings: Warning 1292 Incorrect datetime value: '00:00:00' # +# MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ +# +SELECT CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' ); +CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' ) +NULL +# # End of 5.3 tests # diff --git a/mysql-test/t/date_formats.test b/mysql-test/t/date_formats.test index 55e08e420b1..81cd125d750 100644 --- a/mysql-test/t/date_formats.test +++ b/mysql-test/t/date_formats.test @@ -32,6 +32,8 @@ SET date_format='%Y.%m.%d'; SET date_format='%d.%m.%Y'; SET date_format='%m-%d-%Y'; +--error ER_WRONG_VALUE_FOR_VAR +SET datetime_format= NULL; set datetime_format= '%Y%m%d%H%i%s'; set datetime_format= '%Y-%m-%d %H:%i:%s'; set datetime_format= '%m-%d-%y %H:%i:%s.%f'; diff --git a/mysql-test/t/timezone2.test b/mysql-test/t/timezone2.test index 7764b39bf33..2d61c7631f2 100644 --- a/mysql-test/t/timezone2.test +++ b/mysql-test/t/timezone2.test @@ -297,6 +297,12 @@ DROP TABLE t1; SELECT CONVERT_TZ(TIME('00:00:00'),'+00:00','+7:5'); SELECT CONVERT_TZ(TIME('2010-01-01 00:00:00'),'+00:00','+7:5'); +--echo # +--echo # MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ +--echo # +SELECT CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' ); + + --echo # --echo # End of 5.3 tests --echo # diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index a21dd9cc02a..497739f112a 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -40,11 +40,6 @@ C_MODE_START #include "../mysys/my_static.h" // For soundex_map C_MODE_END -/** - @todo Remove this. It is not safe to use a shared String object. - */ -String my_empty_string("",default_charset_info); - /* Convert an array of bytes to a hexadecimal representation. @@ -2250,7 +2245,7 @@ String *Item_func_make_set::val_str(String *str) ulonglong bits; bool first_found=0; Item **ptr=args+1; - String *result=&my_empty_string; + String *result= make_empty_result(); bits=args[0]->val_int(); if ((null_value=args[0]->null_value)) diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 0bfdac2f531..ace62e9c640 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -2357,7 +2357,6 @@ extern pthread_attr_t connection_attrib; extern I_List threads; extern I_List key_caches; extern MY_BITMAP temp_pool; -extern String my_empty_string; extern const String my_null_string; extern SHOW_VAR status_vars[]; #endif /* MYSQL_SERVER */ diff --git a/sql/set_var.cc b/sql/set_var.cc index 94a1b6a1cef..44e54ab4eb1 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -2196,13 +2196,11 @@ bool sys_var_thd_date_time_format::check(THD *thd, set_var *var) String str(buff,sizeof(buff) - 1, system_charset_info), *res; DATE_TIME_FORMAT *format; - if (!(res=var->value->val_str(&str))) - res= &my_empty_string; - - if (!(format= date_time_format_make(date_time_type, - res->ptr(), res->length()))) + if (!(res= var->value->val_str(&str)) || + !(format= date_time_format_make(date_time_type, + res->ptr(), res->length()))) { - my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), name, res->c_ptr()); + my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), name, res ? res->c_ptr() : "NULL"); return 1; } diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 5b0d0470370..48d32a13a1b 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1923,12 +1923,13 @@ bool select_result::check_simple_select() const static String default_line_term("\n",default_charset_info); static String default_escaped("\\",default_charset_info); static String default_field_term("\t",default_charset_info); +static String default_enclosed_and_line_start("", default_charset_info); sql_exchange::sql_exchange(char *name,bool flag) :file_name(name), opt_enclosed(0), dumpfile(flag), skip_lines(0) { field_term= &default_field_term; - enclosed= line_start= &my_empty_string; + enclosed= line_start= &default_enclosed_and_line_start; line_term= &default_line_term; escaped= &default_escaped; cs= NULL; -- cgit v1.2.1 From 16e0cae0ccaf1e744d29c55cc96b8d9a53e589c0 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 28 Jan 2014 10:21:47 +0100 Subject: fixed a client-side overflow in mysql cli --- client/mysql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mysql.cc b/client/mysql.cc index 385266d7c11..db4557d10bc 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1171,7 +1171,7 @@ int main(int argc,char *argv[]) put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.", INFO_INFO); - sprintf((char*) glob_buffer.ptr(), + my_snprintf((char*) glob_buffer.ptr(), glob_buffer.alloced_length(), "Your %s connection id is %lu\nServer version: %s\n", mysql_get_server_name(&mysql), mysql_thread_id(&mysql), server_version_string(&mysql)); -- cgit v1.2.1 From ce02738d7f2f2688eeec7004dd6a30293d36044f Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Fri, 31 Jan 2014 13:52:29 +0400 Subject: Adding a new command into CMakeLists.txt: SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) to find header files from the bundled libraries (jemalloc, yassl, readline, pcre, etc) before the ones installed in the system. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfa63cb8c92..e431f3e027b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,6 +260,11 @@ ENDIF() # Run platform tests INCLUDE(configure.cmake) +# Find header files from the bundled libraries +# (jemalloc, yassl, readline, pcre, etc) +# before the ones installed in the system +SET(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) + # Common defines and includes ADD_DEFINITIONS(-DHAVE_CONFIG_H) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include) -- cgit v1.2.1 From 2acc01b3cfa27074f93016b893cda20fa0a3497f Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 1 Feb 2014 00:54:28 +0100 Subject: make sequence and sql_discovery suites default too --- storage/sequence/mysql-test/sequence/suite.pm | 7 +++++++ storage/test_sql_discovery/mysql-test/sql_discovery/suite.pm | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 storage/sequence/mysql-test/sequence/suite.pm create mode 100644 storage/test_sql_discovery/mysql-test/sql_discovery/suite.pm diff --git a/storage/sequence/mysql-test/sequence/suite.pm b/storage/sequence/mysql-test/sequence/suite.pm new file mode 100644 index 00000000000..3964415db73 --- /dev/null +++ b/storage/sequence/mysql-test/sequence/suite.pm @@ -0,0 +1,7 @@ +package My::Suite::Sequence; +@ISA = qw(My::Suite); + +sub is_default { 1 } + +bless { }; + diff --git a/storage/test_sql_discovery/mysql-test/sql_discovery/suite.pm b/storage/test_sql_discovery/mysql-test/sql_discovery/suite.pm new file mode 100644 index 00000000000..22f22514b3a --- /dev/null +++ b/storage/test_sql_discovery/mysql-test/sql_discovery/suite.pm @@ -0,0 +1,7 @@ +package My::Suite::SQL_Discovery; +@ISA = qw(My::Suite); + +sub is_default { 1 } + +bless { }; + -- cgit v1.2.1