mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
Vanilla cleanups and refactorings
Dead code cleanup: part_info->num_parts usage was wrong and working incorrectly in mysql_drop_partitions() because num_parts is already updated in prep_alter_part_table(). We don't have to update part_info->partitions because part_info is destroyed at alter_partition_lock_handling(). Cleanups: - DBUG_EVALUATE_IF() macro replaced by shorter form DBUG_IF(); - Typo in ER_KEY_COLUMN_DOES_NOT_EXITS. Refactorings: - Splitted write_log_replace_delete_frm() into write_log_delete_frm() and write_log_replace_frm(); - partition_info via DDL_LOG_STATE; - set_part_info_exec_log_entry() removed. DBUG_EVALUATE removed DBUG_EVALUTATE was only added for consistency together with DBUG_EVALUATE_IF. It is not used anywhere in the code. DBUG_SUICIDE() fix on release build On release DBUG_SUICIDE() was statement. It was wrong as DBUG_SUICIDE() is used in expression context.
This commit is contained in:
parent
2dc3c32070
commit
d324c03d0c
66 changed files with 691 additions and 841 deletions
dbug
include
mysql-test
main
alter_table.testassign_key_cache.resultcreate.testinvisible_field_debug.testlong_unique_bugs.testmdl_sync.testpartition.resultpartition_binlog.resultpartition_binlog.testpartition_error.resultpartition_mgm_err.resultpartition_mgm_err.testpartition_sync.resultpartition_sync.testunion.test
suite
engines/funcs
r
t
gcol/inc
innodb/t
innodb-alter.testinnodb-index-online-fk.testinnodb-index.testinnodb-table-online.testinnodb-wl5980-alter.testinnodb_bug44571.test
parts
inc
r
rpl/include
versioning
mysys
plugin/win_auth_client
sql
ddl_log.ccddl_log.hhandler.cclog.cclog_event_server.ccmysqld.ccpartition_info.hrpl_parallel.ccrpl_utility.ccsemisync_master_ack_receiver.ccsemisync_slave.cc
share
slave.ccsql_admin.ccsql_base.ccsql_class.ccsql_partition.ccsql_show.ccsql_table.ccsql_yacc.yystorage/innobase/include
|
@ -44,12 +44,10 @@ __DATA__
|
|||
% ./tests -#d
|
||||
func2: info: s=ok
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d
|
||||
func2: info: s=ok
|
||||
% ./tests d,ret3
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
#
|
||||
## Testing negative lists
|
||||
|
@ -57,7 +55,6 @@ func2: info: s=ok
|
|||
% ./tests d:-d,ret3
|
||||
func2: info: s=ko
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d:-d,ret3
|
||||
func2: info: s=ko
|
||||
|
@ -69,7 +66,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -85,7 +81,6 @@ func2: info: s=ko
|
|||
| | | info: s=ko
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -99,19 +94,15 @@ func2: info: s=ko
|
|||
| | | >func3
|
||||
| | | <func3
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| | >func3
|
||||
| | <func3
|
||||
<main
|
||||
% ./tests t:d,info:-d,ret3:-f,func2 d,evaluate
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
% ./tests t:d,info:-d,ret3:-f,func2 d,evaluate_if
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: ON
|
||||
% ./tests t:d:-d,ret3:-f,func2 d,evaluate_if
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: ON
|
||||
% ./tests t:d:-d,ret3:-f,func2
|
||||
>main
|
||||
|
@ -120,7 +111,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| <func1
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d:-d,ret3:f:-f,func2:t
|
||||
| | >func3
|
||||
|
@ -135,7 +125,6 @@ func2: info: s=ko
|
|||
| | | >func3
|
||||
| | | <func3
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: ON
|
||||
| | >func3
|
||||
| | <func3
|
||||
|
@ -152,7 +141,6 @@ func2: info: s=ko
|
|||
| dump: Memory: 0x#### Bytes: (27)
|
||||
64 2C 64 75 6D 70 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D 66 2C 66 75 6E 63 32 3A
|
||||
74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| | >func3
|
||||
| | <func3
|
||||
|
@ -166,7 +154,6 @@ func2: info: s=ko
|
|||
| dump: Memory: 0x#### Bytes: (27)
|
||||
64 2C 64 75 6D 70 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D 66 2C 66 75 6E 63 32 3A
|
||||
74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| | >func3
|
||||
| | <func3
|
||||
|
@ -180,7 +167,6 @@ func2: info: s=ko
|
|||
| dump: Memory: 0x#### Bytes: (27)
|
||||
64 2C 64 75 6D 70 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D 66 2C 66 75 6E 63 32 3A
|
||||
74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| | >func3
|
||||
| | <func3
|
||||
|
@ -194,7 +180,6 @@ func2: info: s=ko
|
|||
| dump: Memory: 0x#### Bytes: (35)
|
||||
64 2C 64 75 6D 70 2C 65 78 70 6C 61 69 6E 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D
|
||||
66 2C 66 75 6E 63 32 3A 74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d,dump,explain:-d,ret3:f:-f,func2:t
|
||||
| | >func3
|
||||
|
@ -209,7 +194,6 @@ dbug-tests: | <func1
|
|||
dbug-tests: | dump: Memory: 0x#### Bytes: (37)
|
||||
64 2C 64 75 6D 70 2C 65 78 70 6C 61 69 6E 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D
|
||||
66 2C 66 75 6E 63 32 3A 50 3A 74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
dbug-tests: | explain: dbug explained: d,dump,explain:-d,ret3:f:-f,func2:P:t
|
||||
dbug-tests: | | >func3
|
||||
|
@ -224,7 +208,6 @@ dbug-tests: tests.c: | <func1
|
|||
dbug-tests: tests.c: | dump: Memory: 0x#### Bytes: (39)
|
||||
64 2C 64 75 6D 70 2C 65 78 70 6C 61 69 6E 3A 2D 64 2C 72 65 74 33 3A 66 3A 2D
|
||||
66 2C 66 75 6E 63 32 3A 46 3A 50 3A 74
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
dbug-tests: tests.c: | explain: dbug explained: d,dump,explain:-d,ret3:f:-f,func2:F:P:t
|
||||
dbug-tests: tests.c: | | >func3
|
||||
|
@ -240,7 +223,6 @@ dbug-tests: tests.c: <main
|
|||
| | | <func3
|
||||
| <func1
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d:-d,ret3:f:-f,func2:t
|
||||
| | >func3
|
||||
|
@ -256,7 +238,6 @@ dbug-tests: tests.c: <main
|
|||
| | <func2
|
||||
| <func1
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d:-d,ret3:t
|
||||
| >func2
|
||||
|
@ -267,7 +248,6 @@ dbug-tests: tests.c: <main
|
|||
<main
|
||||
% ./tests d,info:-d,ret3:d,push
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -277,7 +257,6 @@ func2: info: s=ko
|
|||
<main
|
||||
% ./tests d,info:-d,ret3:d,push,explain
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d,info,push,explain:-d,ret3:t
|
||||
| >func2
|
||||
|
@ -288,13 +267,11 @@ func2: info: s=ko
|
|||
<main
|
||||
% ./tests d,info:-d,ret3:d,explain
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d,info,explain:-d,ret3
|
||||
func2: info: s=ko
|
||||
% ./tests d,info:-d,ret3:d,explain,pop
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
% ./tests d,info:-d,ret3:d,explain t:d,pop
|
||||
>main
|
||||
|
@ -304,7 +281,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d,info,explain:-d,ret3
|
||||
func2: info: s=ko
|
||||
|
@ -317,13 +293,11 @@ func2: info: s=ko
|
|||
| | | info: s=ko
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d,info,explain,pop:-d,ret3
|
||||
func2: info: s=ko
|
||||
% ./tests d,info:-d,ret3:d,explain,set
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
tests.c: main: explain: dbug explained: d,info,explain,set:-d,ret3:F
|
||||
tests.c: func2: info: s=ko
|
||||
|
@ -336,7 +310,6 @@ func2: info: s=ko
|
|||
| | | info: s=ko
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
tests.c: | explain: dbug explained: d,info,explain,set:-d,ret3:F:t
|
||||
tests.c: | >func2
|
||||
|
@ -354,7 +327,6 @@ func2: info: s=ko
|
|||
| | | info: s=ko
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
tests.c: | explain: dbug explained: d,info,explain,set:-d,ret3:F:t
|
||||
tests.c: | >func2
|
||||
|
@ -365,7 +337,6 @@ func2: info: s=ko
|
|||
tests.c: <main
|
||||
% ./tests t d,info:-d,ret3:d,explain,set,pop
|
||||
func2: info: s=ko
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -375,7 +346,6 @@ func2: info: s=ko
|
|||
% ./tests t:f,func2
|
||||
| | >func2
|
||||
| | <func2
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| <func2
|
||||
|
@ -387,7 +357,6 @@ func2: info: s=ko
|
|||
| >func1
|
||||
| <func1
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
| explain: dbug explained: d:f:-f,func2/:t
|
||||
<main
|
||||
|
@ -399,7 +368,6 @@ func2: info: s=ko
|
|||
| | | info: s=ok
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
% ./tests t:f,main/:d,pop
|
||||
>main
|
||||
|
@ -409,10 +377,8 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| | <func2
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
% ./tests f,main/:d,push
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -431,7 +397,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| | <func2
|
||||
=> push1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| | >func3
|
||||
| | <func3
|
||||
|
@ -440,7 +405,6 @@ func2: info: s=ko
|
|||
>main
|
||||
=> push1
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -453,7 +417,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
=> push1
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -469,7 +432,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
| | <func2
|
||||
=> push1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
# change the defaults
|
||||
% ./tests t:f,func3 --push1=t
|
||||
|
@ -477,7 +439,6 @@ func2: info: s=ko
|
|||
| | | <func3
|
||||
=> push1
|
||||
| <func1
|
||||
=> evaluate: OFF
|
||||
=> evaluate_if: OFF
|
||||
| >func2
|
||||
| | >func3
|
||||
|
@ -487,11 +448,9 @@ func2: info: s=ko
|
|||
# repeated keyword
|
||||
% ./tests d:-d,info,info
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d:-d,info
|
||||
% ./tests d:-d,info/,info
|
||||
=> execute
|
||||
=> evaluate: ON
|
||||
=> evaluate_if: OFF
|
||||
main: explain: dbug explained: d:-d,info/
|
||||
|
|
|
@ -16,7 +16,8 @@ char *push1=0;
|
|||
const char *func3()
|
||||
{
|
||||
DBUG_ENTER("func3");
|
||||
DBUG_RETURN(DBUG_EVALUATE("ret3", "ok", "ko"));
|
||||
DBUG_EXECUTE("ret3", DBUG_RETURN("ok"););
|
||||
DBUG_RETURN("ko");
|
||||
}
|
||||
|
||||
void func2()
|
||||
|
@ -72,10 +73,8 @@ int main (int argc __attribute__((unused)),
|
|||
DBUG_EXECUTE_IF("push", DBUG_PUSH("+t"); );
|
||||
DBUG_EXECUTE("execute", fprintf(DBUG_FILE, "=> execute\n"); );
|
||||
DBUG_EXECUTE_IF("set", DBUG_SET("+F"); );
|
||||
fprintf(DBUG_FILE, "=> evaluate: %s\n",
|
||||
DBUG_EVALUATE("evaluate", "ON", "OFF"));
|
||||
fprintf(DBUG_FILE, "=> evaluate_if: %s\n",
|
||||
DBUG_EVALUATE_IF("evaluate_if", "ON", "OFF"));
|
||||
(DBUG_IF("evaluate_if") ? "ON": "OFF"));
|
||||
DBUG_EXECUTE_IF("pop", DBUG_POP(); );
|
||||
{
|
||||
char s[1000] __attribute__((unused));
|
||||
|
|
28
dbug/user.r
28
dbug/user.r
|
@ -771,32 +771,20 @@ artificial delay checking for race conditions.
|
|||
.SP 1
|
||||
EX:\ \fCDBUG_EXECUTE_IF\ ("crashme",\ DBUG_ABORT()\ ());\fR
|
||||
.SP 1
|
||||
.LI DBUG_EVALUATE\
|
||||
The DBUG_EVALUATE macro is similar to DBUG_EXECUTE, but it can be used in
|
||||
the expression context. The first argument is the debug keyword that is used to
|
||||
choose whether the second (keyword is enabled) or the third (keyword is not
|
||||
enabled) argument is evaluated. When
|
||||
.I dbug
|
||||
is compiled off, the third argument is evaluated.
|
||||
.SP 1
|
||||
EX:\fC
|
||||
.br
|
||||
printf("Info-debug is %s",
|
||||
.br
|
||||
DBUG_EVALUATE\ ("info", "ON", "OFF"));\fR
|
||||
.SP 1
|
||||
.LI DBUG_EVALUATE_IF\
|
||||
Works like DBUG_EVALUATE macro, but the second argument is
|
||||
.B not
|
||||
evaluated, if the keyword is not explicitly listed in
|
||||
the 'd' flag. Like DBUG_EXECUTE_IF this could be used to conditionally execute
|
||||
.LI DBUG_IF\
|
||||
Returns
|
||||
.B 1
|
||||
if the keyword is explicitly listed in
|
||||
the 'd' flag. Otherwise returns
|
||||
.B 0
|
||||
Like DBUG_EXECUTE_IF this could be used to conditionally execute
|
||||
"dangerous" actions.
|
||||
.SP 1
|
||||
EX:\fC
|
||||
.br
|
||||
if (prepare_transaction () ||
|
||||
.br
|
||||
DBUG_EVALUATE ("crashme", (DBUG_ABORT(), 0), 0) ||
|
||||
(DBUG_IF("crashme") && (DBUG_ABORT(), 0)) ||
|
||||
.br
|
||||
commit_transaction () )\fR
|
||||
.SP 1
|
||||
|
|
|
@ -100,10 +100,7 @@ extern int (*dbug_sanity)(void);
|
|||
do {if (_db_keyword_(0, (keyword), 0)) { a1 }} while(0)
|
||||
#define DBUG_EXECUTE_IF(keyword,a1) \
|
||||
do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
|
||||
#define DBUG_EVALUATE(keyword,a1,a2) \
|
||||
(_db_keyword_(0,(keyword), 0) ? (a1) : (a2))
|
||||
#define DBUG_EVALUATE_IF(keyword,a1,a2) \
|
||||
(_db_keyword_(0,(keyword), 1) ? (a1) : (a2))
|
||||
#define DBUG_IF(keyword) _db_keyword_(0, (keyword), 1)
|
||||
#define DBUG_PRINT(keyword,arglist) \
|
||||
do if (_db_pargs_(__LINE__,keyword)) _db_doprnt_ arglist; while(0)
|
||||
|
||||
|
@ -172,8 +169,7 @@ extern void _db_suicide_(void);
|
|||
#define DBUG_VOID_RETURN do { return; } while(0)
|
||||
#define DBUG_EXECUTE(keyword,a1) do { } while(0)
|
||||
#define DBUG_EXECUTE_IF(keyword,a1) do { } while(0)
|
||||
#define DBUG_EVALUATE(keyword,a1,a2) (a2)
|
||||
#define DBUG_EVALUATE_IF(keyword,a1,a2) (a2)
|
||||
#define DBUG_IF(keyword) 0
|
||||
#define DBUG_PRINT(keyword,arglist) do { } while(0)
|
||||
#define DBUG_PUSH_EMPTY do { } while(0)
|
||||
#define DBUG_POP_EMPTY do { } while(0)
|
||||
|
@ -199,7 +195,7 @@ extern void _db_suicide_(void);
|
|||
#define DBUG_CRASH_ENTER(func)
|
||||
#define DBUG_CRASH_RETURN(val) do { return(val); } while(0)
|
||||
#define DBUG_CRASH_VOID_RETURN do { return; } while(0)
|
||||
#define DBUG_SUICIDE() do { } while(0)
|
||||
#define DBUG_SUICIDE() ((void) 0)
|
||||
|
||||
#ifdef DBUG_ASSERT_AS_PRINTF
|
||||
extern void (*my_dbug_assert_failed)(const char *assert_expr, const char* file, unsigned long line);
|
||||
|
|
|
@ -140,6 +140,8 @@ typedef unsigned long long my_ulonglong;
|
|||
#define ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN
|
||||
#define ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
|
||||
#define ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS
|
||||
#define ER_KEY_COLUMN_DOES_NOT_EXITS ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
#define ER_DROP_PARTITION_NON_EXISTENT ER_PARTITION_DOES_NOT_EXIST
|
||||
|
||||
typedef struct st_mysql_rows {
|
||||
struct st_mysql_rows *next; /* list of rows */
|
||||
|
|
|
@ -1969,7 +1969,7 @@ show create table t1;
|
|||
drop table t1;
|
||||
|
||||
create table t1 (a int, b int, c int, unique(a,b));
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column a;
|
||||
alter table t1 drop column a, drop index a;
|
||||
show create table t1;
|
||||
|
|
|
@ -3,7 +3,7 @@ create table t1 (i int) engine=myisam partition by hash (i) partitions 2;
|
|||
xa start 'xid';
|
||||
cache index t1 partition (non_existing_partition) in my_cache;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 assign_to_keycache error Error in list of partitions to test.t1
|
||||
test.t1 assign_to_keycache error Wrong partition name or partition list
|
||||
cache index t1 partition (p1) in my_cache;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 assign_to_keycache status OK
|
||||
|
|
|
@ -741,7 +741,7 @@ create table t1 select * from t1;
|
|||
--error ER_CANT_AGGREGATE_2COLLATIONS
|
||||
create table t1 select coalesce('a' collate latin1_swedish_ci,'b' collate latin1_bin);
|
||||
# Error during table creation
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
create table t1 (primary key(a)) select "b" as b;
|
||||
# Error in select_create::prepare() which is not related to table creation
|
||||
create table t1 (a int);
|
||||
|
|
|
@ -201,7 +201,7 @@ drop table t1;
|
|||
set debug_dbug= "+d,test_pseudo_invisible";
|
||||
Create table t1( a int default(99) invisible, b int);
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
Create table t2( a int default(99) invisible, b int, unique(invisible));
|
||||
|
||||
set debug_dbug=@old_debug;
|
||||
|
@ -211,9 +211,9 @@ insert into t1 values(3);
|
|||
insert into t1 values(4);
|
||||
select * from t1 order by b;
|
||||
select invisible, a, b from t1 order by b;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index(invisible);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index(b,invisible);
|
||||
show index from t1;
|
||||
drop table t1;
|
||||
|
@ -223,7 +223,7 @@ drop table t1;
|
|||
set debug_dbug= "+d,test_completely_invisible";
|
||||
Create table t1( a int default(99) invisible, b int);
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
Create table t2( a int default(99) invisible, b int, unique(invisible));
|
||||
insert into t1 values(1);
|
||||
insert into t1 values(2);
|
||||
|
@ -233,9 +233,9 @@ select * from t1 order by b;
|
|||
select invisible, a, b from t1 order by b;
|
||||
set debug_dbug=@old_debug;
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index(invisible);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index(b,invisible);
|
||||
show index from t1;
|
||||
drop table t1;
|
||||
|
@ -262,7 +262,7 @@ select invisible, a ,b from t1;
|
|||
set debug_dbug=@old_debug;
|
||||
Show index from t1;
|
||||
## Sytem Generated Index modification
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
create index a1 on t1(invisible);
|
||||
set debug_dbug= "+d,test_completely_invisible,test_invisible_index";
|
||||
## index does not exist for user
|
||||
|
|
|
@ -173,7 +173,7 @@ ALTER TABLE t1 DROP KEY f, ADD INDEX idx1(f), ALGORITHM=INSTANT;
|
|||
ALTER TABLE t1 ADD KEY idx2(f);
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(a blob , b blob , unique(a,b));
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column b;
|
||||
insert into t1 values(1,1);
|
||||
--error ER_DUP_ENTRY
|
||||
|
|
|
@ -113,7 +113,7 @@ insert into t1 values (1), (1);
|
|||
--echo # Check that SU lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail when constructing .frm and thus obtaining SU metadata
|
||||
--echo # lock.
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index (not_exist);
|
||||
--echo # Check that SNW lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail during copying the table and thus obtaining SNW metadata
|
||||
|
@ -190,7 +190,7 @@ insert into t1 values (1);
|
|||
--echo # Check that SU lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail when constructing .frm and thus obtaining SU metadata
|
||||
--echo # lock.
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index (not_exist);
|
||||
--echo # Check that SNW lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail during copying the table and thus obtaining SNW metadata
|
||||
|
@ -309,7 +309,7 @@ insert into t1 values (1);
|
|||
--echo # Check that SU lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail when constructing .frm and thus obtaining SU metadata
|
||||
--echo # lock.
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index (not_exist);
|
||||
--echo # Check that SNW lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail during copying the table and thus obtaining SNW metadata
|
||||
|
@ -418,7 +418,7 @@ insert into t1 values (1);
|
|||
--echo # Check that SU lock is compatible with it. To do this use ALTER TABLE
|
||||
--echo # which will fail when constructing .frm and thus obtaining SU metadata
|
||||
--echo # lock.
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add index (not_exist);
|
||||
--echo # Check that SNW lock is not compatible with SW lock.
|
||||
--echo # Again we use ALTER TABLE which fails during copying
|
||||
|
|
|
@ -2643,7 +2643,7 @@ Note 1517 Duplicate partition name p5
|
|||
alter table t1 drop partition if exists p5;
|
||||
alter table t1 drop partition if exists p5;
|
||||
Warnings:
|
||||
Note 1507 Error in list of partitions to DROP
|
||||
Note 1507 Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INT) ENGINE=MyISAM PARTITION BY RANGE(a) (PARTITION p1 VALUES LESS THAN (0));
|
||||
ALTER TABLE t1 ADD PARTITION (PARTITION p2 VALUES LESS THAN (1));
|
||||
|
|
|
@ -11,20 +11,20 @@ INSERT INTO t1 VALUES (1), (10), (100), (1000);
|
|||
ALTER TABLE t1 TRUNCATE PARTITION p1;
|
||||
ERROR HY000: Unknown partition 'p1' in table 't1'
|
||||
ALTER TABLE t1 DROP PARTITION p1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
# No error returned, output in table format instead:
|
||||
ALTER TABLE t1 ANALYZE PARTITION p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
ALTER TABLE t1 CHECK PARTITION p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
ALTER TABLE t1 REPAIR PARTITION p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
ALTER TABLE t1 ANALYZE PARTITION p0;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status Engine-independent statistics collected
|
||||
|
|
|
@ -22,7 +22,7 @@ INSERT INTO t1 VALUES (1), (10), (100), (1000);
|
|||
|
||||
--error ER_UNKNOWN_PARTITION
|
||||
ALTER TABLE t1 TRUNCATE PARTITION p1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION p1;
|
||||
|
||||
--echo # No error returned, output in table format instead:
|
||||
|
|
|
@ -18,7 +18,7 @@ INSERT INTO t1 VALUES (5,3),(5,6);
|
|||
ALTER TABLE t1 PARTITION BY KEY(b) PARTITIONS 3 ;
|
||||
ALTER TABLE t1 REPAIR PARTITION p1, p3;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
ALTER TABLE t1 ORDER BY b;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
|
@ -32,7 +32,7 @@ PARTITION p1 VALUES LESS THAN MAXVALUE ) ;
|
|||
ALTER TABLE t1 DROP PARTITION p1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION p0, p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
ALTER TABLE t1 COMMENT 'altered';
|
||||
DROP TABLE t1;
|
||||
#
|
||||
|
|
|
@ -16,13 +16,13 @@ ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
|
|||
PARTITION x11 VALUES LESS THAN (5));
|
||||
ERROR HY000: Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
|
||||
ALTER TABLE t1 DROP PARTITION x0, x1, x2, x3, x3;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION x0, x1, x2, x10;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION x10, x1, x2, x1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (22));
|
||||
ERROR HY000: More partitions to reorganize than there are partitions
|
||||
|
@ -34,7 +34,7 @@ ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
|
|||
ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (4));
|
||||
ERROR HY000: Error in list of partitions to REORGANIZE
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
|
||||
(PARTITION x01 VALUES LESS THAN (5));
|
||||
ERROR HY000: Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range
|
||||
|
@ -113,7 +113,7 @@ PARTITION x1 VALUES LESS THAN (8));
|
|||
ALTER TABLE t1 ADD PARTITION PARTITIONS 1;
|
||||
ERROR HY000: For RANGE partitions each partition must be defined
|
||||
ALTER TABLE t1 DROP PARTITION x2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 COALESCE PARTITION 1;
|
||||
ERROR HY000: COALESCE PARTITION can only be used on HASH/KEY partitions
|
||||
ALTER TABLE t1 DROP PARTITION x1;
|
||||
|
|
|
@ -29,16 +29,16 @@ ALTER TABLE t1 REORGANIZE PARTITION x0,x1 INTO
|
|||
(PARTITION x01 VALUES LESS THAN (2),
|
||||
PARTITION x11 VALUES LESS THAN (5));
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION x0, x1, x2, x3, x3;
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION x0, x1, x2, x10;
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION x10, x1, x2, x1;
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3;
|
||||
|
||||
--error ER_REORG_PARTITION_NOT_EXIST
|
||||
|
@ -53,7 +53,7 @@ ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
|
|||
ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (2));
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (4));
|
||||
|
||||
|
@ -167,7 +167,7 @@ PARTITION BY RANGE (a)
|
|||
--error ER_PARTITIONS_MUST_BE_DEFINED_ERROR
|
||||
ALTER TABLE t1 ADD PARTITION PARTITIONS 1;
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION x2;
|
||||
|
||||
--error ER_COALESCE_ONLY_ON_HASH_PARTITION
|
||||
|
|
|
@ -15,7 +15,7 @@ a
|
|||
1
|
||||
connection default;
|
||||
ALTER TABLE t1 DROP PARTITION p3;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
connection con1;
|
||||
# This failed with deadlock and should not do so.
|
||||
SELECT * FROM t1;
|
||||
|
|
|
@ -22,7 +22,7 @@ BEGIN;
|
|||
SELECT * FROM t1;
|
||||
|
||||
connection default;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION p3;
|
||||
|
||||
connection con1;
|
||||
|
|
|
@ -1896,7 +1896,7 @@ set @save_default_storage_engine=@@default_storage_engine;
|
|||
SET @@default_storage_engine=MEMORY;
|
||||
|
||||
CREATE TABLE t1 SELECT NULL UNION SELECT NULL;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 ADD INDEX (`PRIMARY`);
|
||||
|
||||
CREATE TABLE t2 SELECT NULL;
|
||||
|
|
|
@ -51,7 +51,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -132,7 +132,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -213,7 +213,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -294,7 +294,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -375,7 +375,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -456,7 +456,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `p2` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
|
|
@ -46,7 +46,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -117,7 +117,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -188,7 +188,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -259,7 +259,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -330,7 +330,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
@ -401,7 +401,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION `m0` VALUES LESS THAN (30) ENGINE = ENGINE,
|
||||
PARTITION `p3` VALUES LESS THAN MAXVALUE ENGINE = ENGINE)
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1 c2
|
||||
|
|
|
@ -21,7 +21,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -52,7 +52,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -83,7 +83,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -114,7 +114,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -145,7 +145,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -176,7 +176,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION s2;
|
||||
ALTER TABLE t1 DROP PARTITION s1;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
|
|
@ -18,7 +18,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -46,7 +46,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -74,7 +74,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -102,7 +102,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -130,7 +130,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
@ -158,7 +158,7 @@ SHOW TABLES;
|
|||
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
||||
--replace_result $ENGINE ENGINE
|
||||
SHOW CREATE TABLE t1;
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP PARTITION m1;
|
||||
ALTER TABLE t1 DROP PARTITION m0;
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
|
|
|
@ -150,7 +150,7 @@ drop table t2;
|
|||
--echo FK options
|
||||
create table t1(a int, b int as (a % 2), c int as (a) stored);
|
||||
create table t2 (a int);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 add constraint foreign key fk(d) references t2(a);
|
||||
if ($support_virtual_foreign)
|
||||
{
|
||||
|
|
|
@ -317,9 +317,9 @@ ALTER TABLE t1n CHANGE c2 c1 INT, CHANGE ct c2 INT, CHANGE c1 ct TEXT,
|
|||
ALGORITHM=COPY;
|
||||
SHOW CREATE TABLE t1n;
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY;
|
||||
ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
|
||||
SHOW CREATE TABLE t1n;
|
||||
|
|
|
@ -245,7 +245,7 @@ CREATE INDEX tb ON child(a2);
|
|||
|
||||
SET foreign_key_checks = 0;
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE child CHANGE a2 a3 INT,
|
||||
ADD CONSTRAINT fk_1 FOREIGN KEY (a2) REFERENCES parent(b)
|
||||
ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
|
|
|
@ -666,7 +666,7 @@ SET GLOBAL innodb_monitor_reset = module_ddl;
|
|||
|
||||
--echo # Skip sort
|
||||
--echo # Change PK from (f1,f2,f5,f6) to (f1,f2,f5)
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column f6;
|
||||
--enable_info
|
||||
alter table t1 drop column f6, drop primary key, add primary key(f1,f2,f5);
|
||||
|
@ -692,7 +692,7 @@ SET GLOBAL innodb_monitor_reset = module_ddl;
|
|||
|
||||
--echo # Must sort
|
||||
--echo # Change PK from (f1,f2,f5) to (f1,f5)
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column f2;
|
||||
--enable_info
|
||||
alter table t1 drop column f2, drop primary key, add primary key(f1,f5);
|
||||
|
@ -908,9 +908,9 @@ drop table t1;
|
|||
create table t1(f1 int not null, f2 int not null,
|
||||
primary key (f1), unique key(f1, f2))engine=innodb;
|
||||
insert into t1 values(1,3), (2,2);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column f1;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column f1, drop primary key;
|
||||
# DROP PRIMARY KEY is implied for a single-column PRIMARY KEY
|
||||
alter table t1 drop column f1, drop key f1;
|
||||
|
@ -1012,7 +1012,7 @@ drop table t1;
|
|||
# pk(o1,o2,o3) to pk(o2,o3) by drop o1
|
||||
create table t1(o1 int, o2 int, o3 int, primary key(o1,o2,o3)) engine = innodb;
|
||||
insert into t1 values(1,2,2),(2,1,1);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop o1, lock=none;
|
||||
alter table t1 drop o1, drop primary key, add primary key(o2,o3), lock=none;
|
||||
drop table t1;
|
||||
|
@ -1020,7 +1020,7 @@ drop table t1;
|
|||
# pk(o1,o2,o3) to pk(o1,o3) by drop o2
|
||||
create table t1(o1 int, o2 int, o3 int, primary key(o1,o2,o3)) engine = innodb;
|
||||
insert into t1 values(1,1,2),(1,2,1);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop o2, lock=none;
|
||||
alter table t1 drop o2, drop primary key, add primary key(o1,o3), lock=none;
|
||||
drop table t1;
|
||||
|
@ -1028,7 +1028,7 @@ drop table t1;
|
|||
# pk(o1,o2,o3) to pk(o3) by drop o1,o2
|
||||
create table t1(o1 int, o2 int, o3 int, primary key(o1,o2,o3)) engine = innodb;
|
||||
insert into t1 values(1,2,2),(2,1,1);
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop o1, drop o2, lock=none;
|
||||
alter table t1 drop o1, drop o2,drop primary key,add primary key(o3),lock=none;
|
||||
drop table t1;
|
||||
|
|
|
@ -324,7 +324,7 @@ SELECT
|
|||
ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY c3p5(c3(5));
|
||||
UPDATE t1 SET c3 = NULL WHERE c3 = '';
|
||||
SET lock_wait_timeout = 1;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1 DROP COLUMN c22f, ADD PRIMARY KEY c3p5(c3(5));
|
||||
# NULL -> NOT NULL is only allowed INPLACE without IGNORE.
|
||||
# Adding a PRIMARY KEY will add NOT NULL implicitly!
|
||||
|
|
|
@ -527,9 +527,9 @@ ALGORITHM=COPY;
|
|||
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
|
||||
SHOW CREATE TABLE t1n;
|
||||
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE t1n ADD INDEX(c2), CHANGE c2 c4 INT, ALGORITHM=COPY;
|
||||
|
||||
ALTER TABLE t1n ADD INDEX(c4), CHANGE c2 c4 INT, ALGORITHM=INPLACE;
|
||||
|
|
|
@ -12,7 +12,7 @@ ALTER TABLE bug44571 CHANGE foo bar INT;
|
|||
# because the CHANGE foo bar is successful. And
|
||||
# the column name change would communicate to
|
||||
# InnoDB with the fix from bug #47621
|
||||
-- error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
-- error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
ALTER TABLE bug44571 ADD INDEX bug44571b (foo);
|
||||
# The following create indexes should succeed,
|
||||
# indirectly confirm the CHANGE foo bar is successful.
|
||||
|
|
|
@ -51,7 +51,7 @@ let $ER_PARSE_ERROR= 1064;
|
|||
let $ER_TOO_MANY_PARTITIONS_ERROR= 1499;
|
||||
let $ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF= 1503;
|
||||
let $ER_NO_PARTS_ERROR= 1504;
|
||||
let $ER_DROP_PARTITION_NON_EXISTENT= 1507;
|
||||
let $ER_PARTITION_DOES_NOT_EXIST= 1507;
|
||||
let $ER_SAME_NAME_PARTITION= 1517;
|
||||
let $ER_NO_PARTITION_FOR_GIVEN_VALUE= 1526;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ eval $insert_first_half;
|
|||
# 0
|
||||
# 1030: ER_GET_ERRNO
|
||||
# 1502: ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
|
||||
# 1506: ER_DROP_PARTITION_NON_EXISTENT
|
||||
# 1506: ER_PARTITION_DOES_NOT_EXIST
|
||||
--disable_abort_on_error
|
||||
eval $alter;
|
||||
--enable_abort_on_error
|
||||
|
@ -52,10 +52,10 @@ eval SET @my_errno = $mysql_errno;
|
|||
let $run_test= `SELECT @my_errno = 0`;
|
||||
if (`SELECT @my_errno NOT IN (0,$ER_GET_ERRNO,
|
||||
$ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,
|
||||
$ER_DROP_PARTITION_NON_EXISTENT)`);
|
||||
$ER_PARTITION_DOES_NOT_EXIST)`);
|
||||
{
|
||||
--echo # The last command got an unexepected error response.
|
||||
--echo # Expected/handled SQL codes are 0,$ER_GET_ERRNO,$ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,$ER_DROP_PARTITION_NON_EXISTENT
|
||||
--echo # Expected/handled SQL codes are 0,$ER_GET_ERRNO,$ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF,$ER_PARTITION_DOES_NOT_EXIST
|
||||
SELECT '# SQL code we got was: ' AS "", @my_errno AS "";
|
||||
--echo # Sorry, have to abort.
|
||||
--echo # Please check the error name to number mapping in inc/partition.pre.
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
--eval $create_statement
|
||||
--eval $insert_statement
|
||||
--echo # State before failure
|
||||
--let $dbug_flag= `select @@session.debug_dbug`
|
||||
--echo # $dbug_flag: BEFORE failure
|
||||
--replace_result #p# #P# #sp# #SP#
|
||||
--let $DATADIR= `select @@datadir`
|
||||
--list_files $DATADIR/test
|
||||
SHOW CREATE TABLE t1;
|
||||
--sorted_result
|
||||
|
@ -11,7 +13,7 @@ SELECT * FROM t1;
|
|||
--disable_abort_on_error
|
||||
--eval $fail_statement
|
||||
--enable_abort_on_error
|
||||
--echo # State after failure
|
||||
--echo # $dbug_flag: AFTER failure
|
||||
--replace_result #p# #P# #sp# #SP#
|
||||
--list_files $DATADIR/test
|
||||
SHOW CREATE TABLE t1;
|
||||
|
@ -19,10 +21,9 @@ SHOW CREATE TABLE t1;
|
|||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # Same test under LOCK TABLE
|
||||
--eval $create_statement
|
||||
--eval $insert_statement
|
||||
--echo # State before failure
|
||||
--echo # $dbug_flag: BEFORE failure (under LOCK TABLE)
|
||||
--replace_result #p# #P# #sp# #SP#
|
||||
--list_files $DATADIR/test
|
||||
SHOW CREATE TABLE t1;
|
||||
|
@ -32,7 +33,7 @@ LOCK TABLE t1 WRITE;
|
|||
--disable_abort_on_error
|
||||
--eval $fail_statement
|
||||
--enable_abort_on_error
|
||||
--echo # State after failure
|
||||
--echo # $dbug_flag: AFTER failure (under LOCK TABLE)
|
||||
--replace_result #p# #P# #sp# #SP#
|
||||
--list_files $DATADIR/test
|
||||
SHOW CREATE TABLE t1;
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -7592,7 +7592,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -8052,7 +8052,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -8523,7 +8523,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -8995,7 +8995,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -9461,7 +9461,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -9933,7 +9933,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -10410,7 +10410,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -10885,7 +10885,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -11350,7 +11350,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -11810,7 +11810,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -12281,7 +12281,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -12753,7 +12753,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -13219,7 +13219,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -13691,7 +13691,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -14168,7 +14168,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -14643,7 +14643,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -26393,7 +26393,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -26853,7 +26853,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -27324,7 +27324,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -27796,7 +27796,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -28262,7 +28262,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -28734,7 +28734,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -29211,7 +29211,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -29686,7 +29686,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -30151,7 +30151,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -30611,7 +30611,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -31082,7 +31082,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -31554,7 +31554,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -32020,7 +32020,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -32492,7 +32492,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -32969,7 +32969,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -33444,7 +33444,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -45202,7 +45202,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -45662,7 +45662,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -46133,7 +46133,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -46605,7 +46605,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -47071,7 +47071,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -47543,7 +47543,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -48020,7 +48020,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -48495,7 +48495,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -48960,7 +48960,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -49420,7 +49420,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -49891,7 +49891,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -50363,7 +50363,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -50829,7 +50829,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -51301,7 +51301,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -51778,7 +51778,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -52253,7 +52253,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -63970,7 +63970,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -63985,7 +63985,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64008,7 +64008,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64029,7 +64029,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64048,7 +64048,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64071,7 +64071,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64094,7 +64094,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64113,7 +64113,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
# 4.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
|
@ -64130,7 +64130,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64145,7 +64145,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64168,7 +64168,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64189,7 +64189,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64208,7 +64208,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64231,7 +64231,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64254,7 +64254,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -64273,7 +64273,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
# 4.5 ALTER ... REBUILD PARTITION ALL;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
|
@ -75552,7 +75552,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -76012,7 +76012,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -76483,7 +76483,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -76955,7 +76955,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -77421,7 +77421,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -77893,7 +77893,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -78370,7 +78370,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -78845,7 +78845,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -79310,7 +79310,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -79770,7 +79770,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -80241,7 +80241,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -80713,7 +80713,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -81179,7 +81179,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -81651,7 +81651,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -82128,7 +82128,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -82603,7 +82603,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
|
|
@ -7888,7 +7888,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -8357,7 +8357,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -8843,7 +8843,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -9336,7 +9336,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -9819,7 +9819,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -10312,7 +10312,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -10810,7 +10810,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -11306,7 +11306,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -11794,7 +11794,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -12263,7 +12263,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -12749,7 +12749,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -13242,7 +13242,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -13725,7 +13725,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -14218,7 +14218,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -14716,7 +14716,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -15212,7 +15212,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze error Error in list of partitions to test.t1
|
||||
test.t1 analyze error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -27429,7 +27429,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -27898,7 +27898,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -28384,7 +28384,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -28877,7 +28877,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -29360,7 +29360,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -29853,7 +29853,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -30351,7 +30351,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -30847,7 +30847,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -31335,7 +31335,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -31804,7 +31804,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -32290,7 +32290,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -32783,7 +32783,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -33266,7 +33266,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -33759,7 +33759,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -34257,7 +34257,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -34753,7 +34753,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check error Error in list of partitions to test.t1
|
||||
test.t1 check error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -46962,7 +46962,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -47431,7 +47431,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -47917,7 +47917,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -48410,7 +48410,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -48893,7 +48893,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -49386,7 +49386,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -49884,7 +49884,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -50380,7 +50380,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -50868,7 +50868,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -51337,7 +51337,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -51823,7 +51823,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -52316,7 +52316,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -52799,7 +52799,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -53292,7 +53292,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -53790,7 +53790,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -54286,7 +54286,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize error Error in list of partitions to test.t1
|
||||
test.t1 optimize error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -66462,7 +66462,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66477,7 +66477,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66500,7 +66500,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66521,7 +66521,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66540,7 +66540,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66563,7 +66563,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66586,7 +66586,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66605,7 +66605,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
# 4.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
|
@ -66622,7 +66622,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66637,7 +66637,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66660,7 +66660,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66681,7 +66681,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66700,7 +66700,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66723,7 +66723,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66746,7 +66746,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
f_int1 INTEGER DEFAULT 0,
|
||||
|
@ -66765,7 +66765,7 @@ INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
|||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
|
||||
ERROR HY000: Error in list of partitions to REBUILD
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
DROP TABLE t1;
|
||||
# 4.5 ALTER ... REBUILD PARTITION ALL;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
|
@ -78488,7 +78488,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -78957,7 +78957,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -79443,7 +79443,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -79936,7 +79936,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -80419,7 +80419,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -80912,7 +80912,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -81410,7 +81410,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -81906,7 +81906,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_2,part_5,part_6,part_10;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -82394,7 +82394,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -82863,7 +82863,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -83349,7 +83349,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -83842,7 +83842,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -84325,7 +84325,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -84818,7 +84818,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -85316,7 +85316,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
@ -85812,7 +85812,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 REPAIR PARTITION part_1,part_1,part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair error Error in list of partitions to test.t1
|
||||
test.t1 repair error Wrong partition name or partition list
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
WHERE f_int1 BETWEEN @max_row_div2 AND @max_row;
|
||||
|
|
|
@ -825,7 +825,7 @@ SELECT c1,hex(c4),c5,c6,c7 FROM t16 ORDER BY c1;
|
|||
--echo *****************
|
||||
--echo
|
||||
connection slave;
|
||||
# 1072 = ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
# 1072 = ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
--let $slave_sql_errno= 1072
|
||||
--let $show_slave_sql_error= 1
|
||||
--source include/wait_for_slave_sql_error.inc
|
||||
|
|
|
@ -253,7 +253,7 @@ t1 CREATE TABLE `t1` (
|
|||
PARTITION BY SYSTEM_TIME LIMIT 2
|
||||
PARTITIONS 3
|
||||
alter table t1 drop partition non_existent;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ERROR HY000: Wrong partition name or partition list
|
||||
insert into t1 values (1), (2), (3), (4), (5), (6);
|
||||
select * from t1 partition (pn);
|
||||
x
|
||||
|
@ -1241,6 +1241,7 @@ drop tables t1;
|
|||
#
|
||||
# MDEV-22155 ALTER add default history partitions name clash on non-default partitions
|
||||
#
|
||||
set timestamp= default;
|
||||
create or replace table t1 (x int) with system versioning
|
||||
partition by system_time limit 1
|
||||
(partition p2 history, partition p8 history, partition pn current);
|
||||
|
|
|
@ -609,7 +609,7 @@ create or replace table t1 (
|
|||
period for system_time(row_start, row_end)
|
||||
) with system versioning;
|
||||
show create table t1;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column b;
|
||||
|
||||
create or replace table t1 (
|
||||
|
@ -619,7 +619,7 @@ a int, b int primary key,
|
|||
period for system_time(row_start, row_end)
|
||||
) with system versioning;
|
||||
show create table t1;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
alter table t1 drop column b;
|
||||
|
||||
# cleanup
|
||||
|
|
|
@ -412,11 +412,11 @@ drop tables t0, t1, t2, t3;
|
|||
--echo #
|
||||
--echo # MDEV-23968 CREATE TEMPORARY TABLE .. LIKE (system versioned table) returns error if unique index is defined in the table
|
||||
--echo #
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
create table t1 (id int primary key, index(row_start)) with system versioning;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
create table t1 (id int primary key, index(row_end)) with system versioning;
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXITS
|
||||
--error ER_KEY_COLUMN_DOES_NOT_EXIST
|
||||
create table t1 (id int, primary key(id, row_end, row_end)) with system versioning;
|
||||
create table t1 (id int primary key) with system versioning;
|
||||
create temporary table t2 like t1;
|
||||
|
|
|
@ -231,7 +231,7 @@ partition by system_time limit 2 partitions 3;
|
|||
--replace_result $default_engine DEFAULT_ENGINE
|
||||
show create table t1;
|
||||
|
||||
--error ER_DROP_PARTITION_NON_EXISTENT
|
||||
--error ER_PARTITION_DOES_NOT_EXIST
|
||||
alter table t1 drop partition non_existent;
|
||||
|
||||
insert into t1 values (1), (2), (3), (4), (5), (6);
|
||||
|
@ -1086,6 +1086,7 @@ drop tables t1;
|
|||
--echo #
|
||||
--echo # MDEV-22155 ALTER add default history partitions name clash on non-default partitions
|
||||
--echo #
|
||||
set timestamp= default;
|
||||
create or replace table t1 (x int) with system versioning
|
||||
partition by system_time limit 1
|
||||
(partition p2 history, partition p8 history, partition pn current);
|
||||
|
|
|
@ -84,7 +84,7 @@ void *my_malloc(PSI_memory_key key, size_t size, myf my_flags)
|
|||
/* We have to align size as we store MY_THREAD_SPECIFIC flag in the LSB */
|
||||
size= ALIGN_SIZE(size);
|
||||
|
||||
if (DBUG_EVALUATE_IF("simulate_out_of_memory", 1, 0))
|
||||
if (DBUG_IF("simulate_out_of_memory"))
|
||||
mh= NULL;
|
||||
else
|
||||
mh= (my_memory_header*) sf_malloc(size + HEADER_SIZE, my_flags);
|
||||
|
|
|
@ -252,7 +252,7 @@ Blob Handshake_client::process_data(const Blob &data)
|
|||
static byte test_buf[2048];
|
||||
|
||||
if (m_round == 1
|
||||
&& DBUG_EVALUATE_IF("winauth_first_packet_test", true, false))
|
||||
&& DBUG_IF("winauth_first_packet_test"))
|
||||
{
|
||||
const char *env= getenv("TEST_PACKET_LENGTH");
|
||||
size_t len= env ? atoi(env) : 0;
|
||||
|
|
|
@ -2857,8 +2857,7 @@ void ddl_log_release()
|
|||
Methods for DDL_LOG_STATE
|
||||
*/
|
||||
|
||||
static void add_log_entry(DDL_LOG_STATE *state,
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry)
|
||||
void ddl_log_add_entry(DDL_LOG_STATE *state, DDL_LOG_MEMORY_ENTRY *log_entry)
|
||||
{
|
||||
log_entry->next_active_log_entry= state->list;
|
||||
state->main_entry= state->list= log_entry;
|
||||
|
@ -3037,7 +3036,7 @@ static bool ddl_log_write(DDL_LOG_STATE *ddl_state,
|
|||
ddl_log_release_memory_entry(log_entry);
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
add_log_entry(ddl_state, log_entry);
|
||||
ddl_log_add_entry(ddl_state, log_entry);
|
||||
ddl_state->flags|= ddl_log_entry->flags; // Update cache
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
@ -3187,7 +3186,7 @@ static bool ddl_log_drop(THD *thd, DDL_LOG_STATE *ddl_state,
|
|||
}
|
||||
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
add_log_entry(ddl_state, log_entry);
|
||||
ddl_log_add_entry(ddl_state, log_entry);
|
||||
DBUG_RETURN(0);
|
||||
|
||||
error:
|
||||
|
@ -3487,7 +3486,7 @@ bool ddl_log_store_query(THD *thd, DDL_LOG_STATE *ddl_state,
|
|||
goto err;
|
||||
parent_entry_pos= ddl_state->list->entry_pos;
|
||||
entry_pos= first_entry->entry_pos;
|
||||
add_log_entry(ddl_state, first_entry);
|
||||
ddl_log_add_entry(ddl_state, first_entry);
|
||||
|
||||
while (length)
|
||||
{
|
||||
|
@ -3503,7 +3502,7 @@ bool ddl_log_store_query(THD *thd, DDL_LOG_STATE *ddl_state,
|
|||
if (ddl_log_get_free_entry(&next_entry))
|
||||
goto err;
|
||||
ddl_log_entry.next_entry= next_entry_pos= next_entry->entry_pos;
|
||||
add_log_entry(ddl_state, next_entry);
|
||||
ddl_log_add_entry(ddl_state, next_entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -279,6 +279,7 @@ void ddl_log_release_memory_entry(DDL_LOG_MEMORY_ENTRY *log_entry);
|
|||
bool ddl_log_sync();
|
||||
bool ddl_log_execute_entry(THD *thd, uint first_entry);
|
||||
|
||||
void ddl_log_add_entry(DDL_LOG_STATE *state, DDL_LOG_MEMORY_ENTRY *log_entry);
|
||||
void ddl_log_release_entries(DDL_LOG_STATE *ddl_log_state);
|
||||
bool ddl_log_rename_table(THD *thd, DDL_LOG_STATE *ddl_state,
|
||||
handlerton *hton,
|
||||
|
|
|
@ -8236,7 +8236,7 @@ static Create_field *vers_init_sys_field(THD *thd, const char *field_name, int f
|
|||
f->set_handler(&type_handler_timestamp2);
|
||||
f->length= MAX_DATETIME_PRECISION;
|
||||
}
|
||||
f->invisible= DBUG_EVALUATE_IF("sysvers_show", VISIBLE, INVISIBLE_SYSTEM);
|
||||
f->invisible= DBUG_IF("sysvers_show") ? VISIBLE : INVISIBLE_SYSTEM;
|
||||
|
||||
if (f->check(thd))
|
||||
return NULL;
|
||||
|
@ -8382,7 +8382,7 @@ bool Vers_parse_info::fix_alter_info(THD *thd, Alter_info *alter_info,
|
|||
if (!need_check(alter_info) && !share->versioned)
|
||||
return false;
|
||||
|
||||
if (DBUG_EVALUATE_IF("sysvers_force", 0, share->tmp_table))
|
||||
if (!DBUG_IF("sysvers_force") && share->tmp_table)
|
||||
{
|
||||
my_error(ER_VERS_NOT_SUPPORTED, MYF(0), "CREATE TEMPORARY TABLE");
|
||||
return true;
|
||||
|
|
18
sql/log.cc
18
sql/log.cc
|
@ -2973,7 +2973,7 @@ int MYSQL_BIN_LOG::generate_new_name(char *new_name, const char *log_name,
|
|||
fn_format(new_name, log_name, mysql_data_home, "", 4);
|
||||
if (!fn_ext(log_name)[0])
|
||||
{
|
||||
if (DBUG_EVALUATE_IF("binlog_inject_new_name_error", TRUE, FALSE) ||
|
||||
if (DBUG_IF("binlog_inject_new_name_error") ||
|
||||
unlikely(find_uniq_filename(new_name, next_log_number,
|
||||
&last_used_log_number)))
|
||||
{
|
||||
|
@ -3543,7 +3543,7 @@ bool MYSQL_BIN_LOG::open_index_file(const char *index_file_name_arg,
|
|||
mysql_file_seek(index_file_nr, 0L, MY_SEEK_END, MYF(0)),
|
||||
0, MYF(MY_WME | MY_WAIT_IF_FULL),
|
||||
m_key_file_log_index_cache) ||
|
||||
DBUG_EVALUATE_IF("fault_injection_openning_index", 1, 0))
|
||||
DBUG_IF("fault_injection_openning_index"))
|
||||
{
|
||||
/*
|
||||
TODO: all operations creating/deleting the index file or a log, should
|
||||
|
@ -3569,7 +3569,7 @@ bool MYSQL_BIN_LOG::open_index_file(const char *index_file_name_arg,
|
|||
open_purge_index_file(FALSE) ||
|
||||
purge_index_entry(NULL, NULL, need_mutex) ||
|
||||
close_purge_index_file() ||
|
||||
DBUG_EVALUATE_IF("fault_injection_recovering_index", 1, 0))
|
||||
DBUG_IF("fault_injection_recovering_index"))
|
||||
{
|
||||
sql_print_error("MYSQL_BIN_LOG::open_index_file failed to sync the index "
|
||||
"file.");
|
||||
|
@ -3637,7 +3637,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
|
|||
if (open_purge_index_file(TRUE) ||
|
||||
register_create_index_entry(log_file_name) ||
|
||||
sync_purge_index_file() ||
|
||||
DBUG_EVALUATE_IF("fault_injection_registering_index", 1, 0))
|
||||
DBUG_IF("fault_injection_registering_index"))
|
||||
{
|
||||
/**
|
||||
TODO:
|
||||
|
@ -3918,7 +3918,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
|
|||
As this is a new log file, we write the file name to the index
|
||||
file. As every time we write to the index file, we sync it.
|
||||
*/
|
||||
if (DBUG_EVALUATE_IF("fault_injection_updating_index", 1, 0) ||
|
||||
if (DBUG_IF("fault_injection_updating_index") ||
|
||||
my_b_write(&index_file, (uchar*) log_file_name,
|
||||
strlen(log_file_name)) ||
|
||||
my_b_write(&index_file, (uchar*) "\n", 1) ||
|
||||
|
@ -5331,8 +5331,8 @@ int MYSQL_BIN_LOG::new_file_impl()
|
|||
r.checksum_alg= relay_log_checksum_alg;
|
||||
DBUG_ASSERT(!is_relay_log ||
|
||||
relay_log_checksum_alg != BINLOG_CHECKSUM_ALG_UNDEF);
|
||||
if (DBUG_EVALUATE_IF("fault_injection_new_file_rotate_event",
|
||||
(error= close_on_error= TRUE), FALSE) ||
|
||||
if ((DBUG_IF("fault_injection_new_file_rotate_event") &&
|
||||
(error= close_on_error= TRUE)) ||
|
||||
(error= write_event(&r)))
|
||||
{
|
||||
DBUG_EXECUTE_IF("fault_injection_new_file_rotate_event", errno= 2;);
|
||||
|
@ -6726,7 +6726,7 @@ bool MYSQL_BIN_LOG::write(Log_event *event_info, my_bool *with_annotate)
|
|||
Write the event.
|
||||
*/
|
||||
if (write_event(event_info, cache_data, file) ||
|
||||
DBUG_EVALUATE_IF("injecting_fault_writing", 1, 0))
|
||||
DBUG_IF("injecting_fault_writing"))
|
||||
goto err;
|
||||
|
||||
error= 0;
|
||||
|
@ -8484,7 +8484,7 @@ MYSQL_BIN_LOG::trx_group_commit_leader(group_commit_entry *leader)
|
|||
DEBUG_SYNC(leader->thd, "commit_loop_entry_commit_ordered");
|
||||
++num_commits;
|
||||
if (current->cache_mngr->using_xa && likely(!current->error) &&
|
||||
DBUG_EVALUATE_IF("skip_commit_ordered", 0, 1))
|
||||
!DBUG_IF("skip_commit_ordered"))
|
||||
run_commit_ordered(current->thd, current->all);
|
||||
current->thd->wakeup_subsequent_commits(current->error);
|
||||
|
||||
|
|
|
@ -6453,7 +6453,7 @@ int Table_map_log_event::do_apply_event(rpl_group_info *rgi)
|
|||
LEX_CSTRING tmp_tbl_name= {tname_mem, tname_mem_length };
|
||||
|
||||
table_list->init_one_table(&tmp_db_name, &tmp_tbl_name, 0, TL_WRITE);
|
||||
table_list->table_id= DBUG_EVALUATE_IF("inject_tblmap_same_id_maps_diff_table", 0, m_table_id);
|
||||
table_list->table_id= DBUG_IF("inject_tblmap_same_id_maps_diff_table") ? 0 : m_table_id;
|
||||
table_list->updating= 1;
|
||||
table_list->required_type= TABLE_TYPE_NORMAL;
|
||||
|
||||
|
@ -6693,7 +6693,7 @@ void Table_map_log_event::init_metadata_fields()
|
|||
|
||||
if (binlog_row_metadata == BINLOG_ROW_METADATA_FULL)
|
||||
{
|
||||
if (DBUG_EVALUATE_IF("dont_log_column_name", 0, init_column_name_field()) ||
|
||||
if ((!DBUG_IF("dont_log_column_name") && init_column_name_field()) ||
|
||||
init_charset_field(&is_enum_or_set_field, ENUM_AND_SET_DEFAULT_CHARSET,
|
||||
ENUM_AND_SET_COLUMN_CHARSET) ||
|
||||
init_set_str_value_field() ||
|
||||
|
|
|
@ -1559,7 +1559,7 @@ static my_bool kill_thread_phase_1(THD *thd, void *)
|
|||
if (thd->slave_thread || thd->is_binlog_dump_thread())
|
||||
return 0;
|
||||
|
||||
if (DBUG_EVALUATE_IF("only_kill_system_threads", !thd->system_thread, 0))
|
||||
if (DBUG_IF("only_kill_system_threads") ? !thd->system_thread : 0)
|
||||
return 0;
|
||||
thd->awake(KILL_SERVER_HARD);
|
||||
return 0;
|
||||
|
|
|
@ -79,7 +79,7 @@ struct Vers_part_info : public Sql_alloc
|
|||
partition_element *hist_part;
|
||||
};
|
||||
|
||||
class partition_info : public Sql_alloc
|
||||
class partition_info : public DDL_LOG_STATE, public Sql_alloc
|
||||
{
|
||||
public:
|
||||
/*
|
||||
|
@ -154,10 +154,6 @@ public:
|
|||
|
||||
Item *item_free_list;
|
||||
|
||||
struct st_ddl_log_memory_entry *first_log_entry;
|
||||
struct st_ddl_log_memory_entry *exec_log_entry;
|
||||
struct st_ddl_log_memory_entry *frm_log_entry;
|
||||
|
||||
/*
|
||||
Bitmaps of partitions used by the current query.
|
||||
* read_partitions - partitions to be used for reading.
|
||||
|
@ -297,7 +293,6 @@ public:
|
|||
part_field_buffers(NULL), subpart_field_buffers(NULL),
|
||||
restore_part_field_ptrs(NULL), restore_subpart_field_ptrs(NULL),
|
||||
part_expr(NULL), subpart_expr(NULL), item_free_list(NULL),
|
||||
first_log_entry(NULL), exec_log_entry(NULL), frm_log_entry(NULL),
|
||||
bitmaps_are_initialized(FALSE),
|
||||
list_array(NULL), vers_info(NULL), err_value(0),
|
||||
part_info_string(NULL),
|
||||
|
@ -319,6 +314,7 @@ public:
|
|||
is_auto_partitioned(FALSE),
|
||||
has_null_value(FALSE), column_list(FALSE)
|
||||
{
|
||||
bzero((DDL_LOG_STATE *) this, sizeof(DDL_LOG_STATE));
|
||||
all_fields_in_PF.clear_all();
|
||||
all_fields_in_PPF.clear_all();
|
||||
all_fields_in_SPF.clear_all();
|
||||
|
|
|
@ -807,9 +807,7 @@ do_retry:
|
|||
{
|
||||
mysql_mutex_lock(&entry->LOCK_parallel_entry);
|
||||
if (entry->stop_on_error_sub_id == (uint64) ULONGLONG_MAX ||
|
||||
#ifndef DBUG_OFF
|
||||
(DBUG_EVALUATE_IF("simulate_mdev_12746", 1, 0)) ||
|
||||
#endif
|
||||
DBUG_IF("simulate_mdev_12746") ||
|
||||
rgi->gtid_sub_id < entry->stop_on_error_sub_id)
|
||||
{
|
||||
register_wait_for_prior_event_group_commit(rgi, entry);
|
||||
|
|
|
@ -338,7 +338,7 @@ bool event_checksum_test(uchar *event_buf, ulong event_len,
|
|||
DBUG_ASSERT(event_buf[EVENT_TYPE_OFFSET] == FORMAT_DESCRIPTION_EVENT);
|
||||
event_buf[FLAGS_OFFSET]= (uchar) flags;
|
||||
}
|
||||
res= DBUG_EVALUATE_IF("simulate_checksum_test_failure", TRUE, computed != incoming);
|
||||
res= (DBUG_IF("simulate_checksum_test_failure") || computed != incoming);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ bool Ack_receiver::start()
|
|||
|
||||
m_status= ST_UP;
|
||||
|
||||
if (DBUG_EVALUATE_IF("rpl_semisync_simulate_create_thread_failure", 1, 0) ||
|
||||
if (DBUG_IF("rpl_semisync_simulate_create_thread_failure") ||
|
||||
pthread_attr_init(&attr) != 0 ||
|
||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE) != 0 ||
|
||||
#ifndef _WIN32
|
||||
|
@ -247,7 +247,7 @@ void Ack_receiver::run()
|
|||
{
|
||||
mysql_mutex_unlock(&m_mutex);
|
||||
|
||||
ret= DBUG_EVALUATE_IF("rpl_semisync_simulate_select_error", -1, ret);
|
||||
ret= DBUG_IF("rpl_semisync_simulate_select_error") ? -1 : ret;
|
||||
|
||||
if (ret == -1 && errno != EINTR)
|
||||
sql_print_information("Failed to wait on semi-sync sockets, "
|
||||
|
|
|
@ -63,7 +63,7 @@ int Repl_semi_sync_slave::slave_read_sync_header(const uchar *header,
|
|||
|
||||
if (rpl_semi_sync_slave_status)
|
||||
{
|
||||
if (DBUG_EVALUATE_IF("semislave_corrupt_log", 0, 1)
|
||||
if (!DBUG_IF("semislave_corrupt_log")
|
||||
&& header[0] == k_packet_magic_num)
|
||||
{
|
||||
semi_sync_need_reply = (header[1] & k_packet_flag_sync);
|
||||
|
@ -140,7 +140,7 @@ void Repl_semi_sync_slave::kill_connection(MYSQL *mysql)
|
|||
|
||||
bool ret= (!mysql_real_connect(kill_mysql, mysql->host,
|
||||
mysql->user, mysql->passwd,0, mysql->port, mysql->unix_socket, 0));
|
||||
if (DBUG_EVALUATE_IF("semisync_slave_failed_kill", 1, 0) || ret)
|
||||
if (DBUG_IF("semisync_slave_failed_kill") || ret)
|
||||
{
|
||||
sql_print_information("cannot connect to master to kill slave io_thread's "
|
||||
"connection");
|
||||
|
@ -172,8 +172,7 @@ int Repl_semi_sync_slave::request_transmit(Master_info *mi)
|
|||
}
|
||||
|
||||
row= mysql_fetch_row(res);
|
||||
if (DBUG_EVALUATE_IF("master_not_support_semisync", 1, 0)
|
||||
|| !row)
|
||||
if (DBUG_IF("master_not_support_semisync") || !row)
|
||||
{
|
||||
/* Master does not support semi-sync */
|
||||
sql_print_warning("Master server does not support semi-sync, "
|
||||
|
@ -234,7 +233,7 @@ int Repl_semi_sync_slave::slave_reply(Master_info *mi)
|
|||
name_len + REPLY_BINLOG_NAME_OFFSET);
|
||||
if (!reply_res)
|
||||
{
|
||||
reply_res = DBUG_EVALUATE_IF("semislave_failed_net_flush", 1, net_flush(net));
|
||||
reply_res = (DBUG_IF("semislave_failed_net_flush") || net_flush(net));
|
||||
if (reply_res)
|
||||
sql_print_error("Semi-sync slave net_flush() reply failed");
|
||||
rpl_semi_sync_slave_send_ack++;
|
||||
|
|
|
@ -1720,7 +1720,7 @@ ER_TOO_LONG_KEY 42000 S1009
|
|||
spa "Declaracion de clave demasiado larga. La maxima longitud de clave es %d"
|
||||
swe "För lång nyckel. Högsta tillåtna nyckellängd är %d"
|
||||
ukr "Зазначений ключ задовгий. Найбільша довжина ключа %d байтів"
|
||||
ER_KEY_COLUMN_DOES_NOT_EXITS 42000 S1009
|
||||
ER_KEY_COLUMN_DOES_NOT_EXIST 42000 S1009
|
||||
cze "Klíčový sloupec '%-.192s' v tabulce neexistuje"
|
||||
dan "Nøglefeltet '%-.192s' eksisterer ikke i tabellen"
|
||||
nla "Zoeksleutel kolom '%-.192s' bestaat niet in tabel"
|
||||
|
@ -5903,10 +5903,8 @@ ER_PARTITION_MGMT_ON_NONPARTITIONED
|
|||
swe "Partitioneringskommando på en opartitionerad tabell är inte möjligt"
|
||||
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
|
||||
eng "Partitioned tables do not support %s"
|
||||
ER_DROP_PARTITION_NON_EXISTENT
|
||||
eng "Error in list of partitions to %-.64s"
|
||||
ger "Fehler in der Partitionsliste bei %-.64s"
|
||||
swe "Fel i listan av partitioner att %-.64s"
|
||||
ER_PARTITION_DOES_NOT_EXIST
|
||||
eng "Wrong partition name or partition list"
|
||||
ER_DROP_LAST_PARTITION
|
||||
eng "Cannot remove all partitions, use DROP TABLE instead"
|
||||
ger "Es lassen sich nicht sämtliche Partitionen löschen, benutzen Sie statt dessen DROP TABLE"
|
||||
|
|
10
sql/slave.cc
10
sql/slave.cc
|
@ -2329,11 +2329,11 @@ past_checksum:
|
|||
/* Announce MariaDB slave capabilities. */
|
||||
DBUG_EXECUTE_IF("simulate_slave_capability_none", goto after_set_capability;);
|
||||
{
|
||||
int rc= DBUG_EVALUATE_IF("simulate_slave_capability_old_53",
|
||||
int rc= DBUG_IF("simulate_slave_capability_old_53") ?
|
||||
mysql_real_query(mysql, STRING_WITH_LEN("SET @mariadb_slave_capability="
|
||||
STRINGIFY_ARG(MARIA_SLAVE_CAPABILITY_ANNOTATE))),
|
||||
STRINGIFY_ARG(MARIA_SLAVE_CAPABILITY_ANNOTATE))) :
|
||||
mysql_real_query(mysql, STRING_WITH_LEN("SET @mariadb_slave_capability="
|
||||
STRINGIFY_ARG(MARIA_SLAVE_CAPABILITY_MINE))));
|
||||
STRINGIFY_ARG(MARIA_SLAVE_CAPABILITY_MINE)));
|
||||
if (unlikely(rc))
|
||||
{
|
||||
err_code= mysql_errno(mysql);
|
||||
|
@ -4663,7 +4663,7 @@ pthread_handler_t handle_slave_io(void *arg)
|
|||
}
|
||||
|
||||
thd->variables.wsrep_on= 0;
|
||||
if (DBUG_EVALUATE_IF("failed_slave_start", 1, 0)
|
||||
if (DBUG_IF("failed_slave_start")
|
||||
|| repl_semisync_slave.slave_start(mi))
|
||||
{
|
||||
mi->report(ERROR_LEVEL, ER_SLAVE_FATAL_ERROR, NULL,
|
||||
|
@ -4939,7 +4939,7 @@ Stopping slave I/O thread due to out-of-memory error from master");
|
|||
(!repl_semisync_slave.get_slave_enabled() ||
|
||||
(!(mi->semi_ack & SEMI_SYNC_SLAVE_DELAY_SYNC) ||
|
||||
(mi->semi_ack & (SEMI_SYNC_NEED_ACK)))) &&
|
||||
(DBUG_EVALUATE_IF("failed_flush_master_info", 1, 0) ||
|
||||
(DBUG_IF("failed_flush_master_info") ||
|
||||
flush_master_info(mi, TRUE, TRUE)))
|
||||
{
|
||||
sql_print_error("Failed to flush master info file");
|
||||
|
|
|
@ -713,8 +713,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||
protocol->store(operator_name, system_charset_info);
|
||||
protocol->store(&error_clex_str, system_charset_info);
|
||||
length= my_snprintf(buff, sizeof(buff),
|
||||
ER_THD(thd, ER_DROP_PARTITION_NON_EXISTENT),
|
||||
table_name.str);
|
||||
ER_THD(thd, ER_PARTITION_DOES_NOT_EXIST));
|
||||
protocol->store(buff, length, system_charset_info);
|
||||
if(protocol->write())
|
||||
goto err;
|
||||
|
|
|
@ -6045,7 +6045,7 @@ find_field_in_table(THD *thd, TABLE *table, const char *name, size_t length,
|
|||
if (field)
|
||||
{
|
||||
if (field->invisible == INVISIBLE_FULL &&
|
||||
DBUG_EVALUATE_IF("test_completely_invisible", 0, 1))
|
||||
!DBUG_IF("test_completely_invisible"))
|
||||
DBUG_RETURN((Field*)0);
|
||||
|
||||
if (field->invisible == INVISIBLE_SYSTEM &&
|
||||
|
|
|
@ -293,7 +293,7 @@ bool Foreign_key::validate(List<Create_field> &table_fields)
|
|||
&sql_field->field_name)) {}
|
||||
if (!sql_field)
|
||||
{
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), column->field_name.str);
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXIST, MYF(0), column->field_name.str);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
if (type == Key::FOREIGN_KEY && sql_field->vcol_info)
|
||||
|
|
|
@ -78,9 +78,9 @@ using std::min;
|
|||
#include "ha_partition.h"
|
||||
|
||||
#define ERROR_INJECT_CRASH(code) \
|
||||
DBUG_EVALUATE_IF(code, (DBUG_SUICIDE(), 0), 0)
|
||||
(DBUG_IF(code) && (DBUG_SUICIDE(), 0))
|
||||
#define ERROR_INJECT_ERROR(code) \
|
||||
DBUG_EVALUATE_IF(code, (my_error(ER_UNKNOWN_ERROR, MYF(0)), TRUE), 0)
|
||||
(DBUG_IF(code) && (my_error(ER_UNKNOWN_ERROR, MYF(0)), 1))
|
||||
|
||||
/*
|
||||
Partition related functions declarations and some static constants;
|
||||
|
@ -5446,6 +5446,7 @@ that are reorganised.
|
|||
my_error(ER_ROW_IS_REFERENCED, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
/* NOTE: num_parts is used in generate_partition_syntax() */
|
||||
tab_part_info->num_parts-= num_parts_dropped;
|
||||
}
|
||||
else if (alter_info->partition_flags & ALTER_PARTITION_REBUILD)
|
||||
|
@ -5454,7 +5455,7 @@ that are reorganised.
|
|||
tab_part_info->default_engine_type);
|
||||
if (set_part_state(alter_info, tab_part_info, PART_CHANGED))
|
||||
{
|
||||
my_error(ER_DROP_PARTITION_NON_EXISTENT, MYF(0), "REBUILD");
|
||||
my_error(ER_PARTITION_DOES_NOT_EXIST, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
if (!(*fast_alter_table))
|
||||
|
@ -5730,7 +5731,7 @@ the generated partition syntax in a correct manner.
|
|||
} while (++part_count < tab_part_info->num_parts);
|
||||
if (drop_count != num_parts_reorged)
|
||||
{
|
||||
my_error(ER_DROP_PARTITION_NON_EXISTENT, MYF(0), "REORGANIZE");
|
||||
my_error(ER_PARTITION_DOES_NOT_EXIST, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
tab_part_info->num_parts= check_total_partitions;
|
||||
|
@ -6112,8 +6113,6 @@ static bool mysql_drop_partitions(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
char path[FN_REFLEN+1];
|
||||
partition_info *part_info= lpt->table->part_info;
|
||||
List_iterator<partition_element> part_it(part_info->partitions);
|
||||
uint i= 0;
|
||||
uint remove_count= 0;
|
||||
int error;
|
||||
DBUG_ENTER("mysql_drop_partitions");
|
||||
|
||||
|
@ -6128,37 +6127,10 @@ static bool mysql_drop_partitions(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
lpt->table->file->print_error(error, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
do
|
||||
{
|
||||
partition_element *part_elem= part_it++;
|
||||
if (part_elem->part_state == PART_IS_DROPPED)
|
||||
{
|
||||
part_it.remove();
|
||||
remove_count++;
|
||||
}
|
||||
} while (++i < part_info->num_parts);
|
||||
part_info->num_parts-= remove_count;
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Insert log entry into list
|
||||
SYNOPSIS
|
||||
insert_part_info_log_entry_list()
|
||||
log_entry
|
||||
RETURN VALUES
|
||||
NONE
|
||||
*/
|
||||
|
||||
static void insert_part_info_log_entry_list(partition_info *part_info,
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry)
|
||||
{
|
||||
log_entry->next_active_log_entry= part_info->first_log_entry;
|
||||
part_info->first_log_entry= log_entry;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Release all log entries for this partition info struct
|
||||
SYNOPSIS
|
||||
|
@ -6183,50 +6155,80 @@ static void release_part_info_log_entries(DDL_LOG_MEMORY_ENTRY *log_entry)
|
|||
|
||||
|
||||
/*
|
||||
Log an delete/rename frm file
|
||||
Log an delete frm file
|
||||
SYNOPSIS
|
||||
write_log_replace_delete_frm()
|
||||
write_log_delete_frm()
|
||||
lpt Struct for parameters
|
||||
next_entry Next reference to use in log record
|
||||
from_path Name to rename from
|
||||
to_path Name to rename to
|
||||
replace_flag TRUE if replace, else delete
|
||||
to_path Name to delete
|
||||
RETURN VALUES
|
||||
TRUE Error
|
||||
FALSE Success
|
||||
DESCRIPTION
|
||||
Support routine that writes a replace or delete of an frm file into the
|
||||
Support routine that writes a delete of an frm file into the
|
||||
ddl log. It also inserts an entry that keeps track of used space into
|
||||
the partition info object
|
||||
*/
|
||||
|
||||
static bool write_log_replace_delete_frm(ALTER_PARTITION_PARAM_TYPE *lpt,
|
||||
uint next_entry,
|
||||
const char *from_path,
|
||||
const char *to_path,
|
||||
bool replace_flag)
|
||||
static bool write_log_delete_frm(ALTER_PARTITION_PARAM_TYPE *lpt,
|
||||
const char *to_path)
|
||||
{
|
||||
DDL_LOG_ENTRY ddl_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DBUG_ENTER("write_log_replace_delete_frm");
|
||||
|
||||
DBUG_ENTER("write_log_delete_frm");
|
||||
bzero(&ddl_log_entry, sizeof(ddl_log_entry));
|
||||
if (replace_flag)
|
||||
ddl_log_entry.action_type= DDL_LOG_REPLACE_ACTION;
|
||||
else
|
||||
ddl_log_entry.action_type= DDL_LOG_DELETE_ACTION;
|
||||
ddl_log_entry.next_entry= next_entry;
|
||||
ddl_log_entry.action_type= DDL_LOG_DELETE_ACTION;
|
||||
ddl_log_entry.next_entry= 0;
|
||||
lex_string_set(&ddl_log_entry.handler_name, reg_ext);
|
||||
lex_string_set(&ddl_log_entry.name, to_path);
|
||||
|
||||
if (replace_flag)
|
||||
lex_string_set(&ddl_log_entry.from_name, from_path);
|
||||
if (ddl_log_write_entry(&ddl_log_entry, &log_entry))
|
||||
{
|
||||
DBUG_RETURN(TRUE);
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
insert_part_info_log_entry_list(lpt->part_info, log_entry);
|
||||
DBUG_RETURN(FALSE);
|
||||
ddl_log_add_entry(lpt->part_info, log_entry);
|
||||
DBUG_RETURN(false);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Log an rename frm file
|
||||
SYNOPSIS
|
||||
write_log_replace_frm()
|
||||
lpt Struct for parameters
|
||||
next_entry Next reference to use in log record
|
||||
from_path Name to rename from
|
||||
to_path Name to rename to
|
||||
RETURN VALUES
|
||||
TRUE Error
|
||||
FALSE Success
|
||||
DESCRIPTION
|
||||
Support routine that writes a replace of an frm file into the
|
||||
ddl log. It also inserts an entry that keeps track of used space into
|
||||
the partition info object
|
||||
*/
|
||||
|
||||
static bool write_log_replace_frm(ALTER_PARTITION_PARAM_TYPE *lpt,
|
||||
uint next_entry,
|
||||
const char *from_path,
|
||||
const char *to_path)
|
||||
{
|
||||
DDL_LOG_ENTRY ddl_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DBUG_ENTER("write_log_replace_frm");
|
||||
|
||||
bzero(&ddl_log_entry, sizeof(ddl_log_entry));
|
||||
ddl_log_entry.action_type= DDL_LOG_REPLACE_ACTION;
|
||||
ddl_log_entry.next_entry= next_entry;
|
||||
lex_string_set(&ddl_log_entry.handler_name, reg_ext);
|
||||
lex_string_set(&ddl_log_entry.name, to_path);
|
||||
lex_string_set(&ddl_log_entry.from_name, from_path);
|
||||
|
||||
if (ddl_log_write_entry(&ddl_log_entry, &log_entry))
|
||||
{
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
ddl_log_add_entry(lpt->part_info, log_entry);
|
||||
DBUG_RETURN(false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -6305,7 +6307,7 @@ static bool write_log_changed_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
|
||||
*next_entry= log_entry->entry_pos;
|
||||
sub_elem->log_entry= log_entry;
|
||||
insert_part_info_log_entry_list(part_info, log_entry);
|
||||
ddl_log_add_entry(part_info, log_entry);
|
||||
} while (++j < num_subparts);
|
||||
}
|
||||
else
|
||||
|
@ -6332,7 +6334,7 @@ static bool write_log_changed_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
}
|
||||
*next_entry= log_entry->entry_pos;
|
||||
part_elem->log_entry= log_entry;
|
||||
insert_part_info_log_entry_list(part_info, log_entry);
|
||||
ddl_log_add_entry(part_info, log_entry);
|
||||
}
|
||||
}
|
||||
} while (++i < num_elements);
|
||||
|
@ -6410,7 +6412,7 @@ static bool write_log_dropped_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
}
|
||||
*next_entry= log_entry->entry_pos;
|
||||
sub_elem->log_entry= log_entry;
|
||||
insert_part_info_log_entry_list(part_info, log_entry);
|
||||
ddl_log_add_entry(part_info, log_entry);
|
||||
} while (++j < num_subparts);
|
||||
}
|
||||
else
|
||||
|
@ -6429,7 +6431,7 @@ static bool write_log_dropped_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
}
|
||||
*next_entry= log_entry->entry_pos;
|
||||
part_elem->log_entry= log_entry;
|
||||
insert_part_info_log_entry_list(part_info, log_entry);
|
||||
ddl_log_add_entry(part_info, log_entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6437,24 +6439,6 @@ static bool write_log_dropped_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
Set execute log entry in ddl log for this partitioned table
|
||||
SYNOPSIS
|
||||
set_part_info_exec_log_entry()
|
||||
part_info Partition info object
|
||||
exec_log_entry Log entry
|
||||
RETURN VALUES
|
||||
NONE
|
||||
*/
|
||||
|
||||
static void set_part_info_exec_log_entry(partition_info *part_info,
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry)
|
||||
{
|
||||
part_info->exec_log_entry= exec_log_entry;
|
||||
exec_log_entry->next_active_log_entry= NULL;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Write the log entry to ensure that the shadow frm file is removed at
|
||||
crash.
|
||||
|
@ -6475,27 +6459,24 @@ static bool write_log_drop_shadow_frm(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= NULL;
|
||||
char shadow_path[FN_REFLEN + 1];
|
||||
DBUG_ENTER("write_log_drop_shadow_frm");
|
||||
|
||||
build_table_shadow_filename(shadow_path, sizeof(shadow_path) - 1, lpt);
|
||||
mysql_mutex_lock(&LOCK_gdl);
|
||||
if (write_log_replace_delete_frm(lpt, 0UL, NULL,
|
||||
(const char*)shadow_path, FALSE))
|
||||
if (write_log_delete_frm(lpt, (const char*)shadow_path))
|
||||
goto error;
|
||||
log_entry= part_info->first_log_entry;
|
||||
log_entry= part_info->list;
|
||||
if (ddl_log_write_execute_entry(log_entry->entry_pos,
|
||||
&exec_log_entry))
|
||||
&part_info->execute_entry))
|
||||
goto error;
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
set_part_info_exec_log_entry(part_info, exec_log_entry);
|
||||
DBUG_RETURN(FALSE);
|
||||
|
||||
error:
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
my_error(ER_DDL_LOG_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
@ -6518,20 +6499,20 @@ static bool write_log_rename_frm(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->exec_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->execute_entry;
|
||||
char path[FN_REFLEN + 1];
|
||||
char shadow_path[FN_REFLEN + 1];
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->first_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->list;
|
||||
DBUG_ENTER("write_log_rename_frm");
|
||||
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
build_table_filename(path, sizeof(path) - 1, lpt->db.str, lpt->table_name.str, "", 0);
|
||||
build_table_shadow_filename(shadow_path, sizeof(shadow_path) - 1, lpt);
|
||||
mysql_mutex_lock(&LOCK_gdl);
|
||||
if (write_log_replace_delete_frm(lpt, 0UL, shadow_path, path, TRUE))
|
||||
if (write_log_replace_frm(lpt, 0UL, shadow_path, path))
|
||||
goto error;
|
||||
log_entry= part_info->first_log_entry;
|
||||
part_info->frm_log_entry= log_entry;
|
||||
log_entry= part_info->list;
|
||||
part_info->main_entry= log_entry;
|
||||
if (ddl_log_write_execute_entry(log_entry->entry_pos,
|
||||
&exec_log_entry))
|
||||
goto error;
|
||||
|
@ -6540,10 +6521,10 @@ static bool write_log_rename_frm(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
DBUG_RETURN(FALSE);
|
||||
|
||||
error:
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= old_first_log_entry;
|
||||
part_info->frm_log_entry= NULL;
|
||||
part_info->list= old_first_log_entry;
|
||||
part_info->main_entry= NULL;
|
||||
my_error(ER_DDL_LOG_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
@ -6568,25 +6549,25 @@ static bool write_log_drop_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->exec_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->execute_entry;
|
||||
char tmp_path[FN_REFLEN + 1];
|
||||
char path[FN_REFLEN + 1];
|
||||
uint next_entry= 0;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->first_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->list;
|
||||
DBUG_ENTER("write_log_drop_partition");
|
||||
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
build_table_filename(path, sizeof(path) - 1, lpt->db.str, lpt->table_name.str, "", 0);
|
||||
build_table_shadow_filename(tmp_path, sizeof(tmp_path) - 1, lpt);
|
||||
mysql_mutex_lock(&LOCK_gdl);
|
||||
if (write_log_dropped_partitions(lpt, &next_entry, (const char*)path,
|
||||
FALSE))
|
||||
goto error;
|
||||
if (write_log_replace_delete_frm(lpt, next_entry, (const char*)tmp_path,
|
||||
(const char*)path, TRUE))
|
||||
if (write_log_replace_frm(lpt, next_entry, (const char*)tmp_path,
|
||||
(const char*)path))
|
||||
goto error;
|
||||
log_entry= part_info->first_log_entry;
|
||||
part_info->frm_log_entry= log_entry;
|
||||
log_entry= part_info->list;
|
||||
part_info->main_entry= log_entry;
|
||||
if (ddl_log_write_execute_entry(log_entry->entry_pos,
|
||||
&exec_log_entry))
|
||||
goto error;
|
||||
|
@ -6595,10 +6576,10 @@ static bool write_log_drop_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
DBUG_RETURN(FALSE);
|
||||
|
||||
error:
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= old_first_log_entry;
|
||||
part_info->frm_log_entry= NULL;
|
||||
part_info->list= old_first_log_entry;
|
||||
part_info->main_entry= NULL;
|
||||
my_error(ER_DDL_LOG_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
@ -6625,11 +6606,10 @@ static bool write_log_add_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->exec_log_entry;
|
||||
char tmp_path[FN_REFLEN + 1];
|
||||
char path[FN_REFLEN + 1];
|
||||
uint next_entry= 0;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->first_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->list;
|
||||
/* write_log_drop_shadow_frm(lpt) must have been run first */
|
||||
DBUG_ASSERT(old_first_log_entry);
|
||||
DBUG_ENTER("write_log_add_change_partition");
|
||||
|
@ -6644,20 +6624,18 @@ static bool write_log_add_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
if (write_log_dropped_partitions(lpt, &next_entry, (const char*)path,
|
||||
FALSE))
|
||||
goto error;
|
||||
log_entry= part_info->first_log_entry;
|
||||
log_entry= part_info->list;
|
||||
|
||||
if (ddl_log_write_execute_entry(log_entry->entry_pos,
|
||||
/* Reuse the old execute ddl_log_entry */
|
||||
&exec_log_entry))
|
||||
&part_info->execute_entry))
|
||||
goto error;
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
set_part_info_exec_log_entry(part_info, exec_log_entry);
|
||||
DBUG_RETURN(FALSE);
|
||||
|
||||
error:
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= old_first_log_entry;
|
||||
part_info->list= old_first_log_entry;
|
||||
my_error(ER_DDL_LOG_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
@ -6689,10 +6667,10 @@ static bool write_log_final_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->exec_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *exec_log_entry= part_info->execute_entry;
|
||||
char path[FN_REFLEN + 1];
|
||||
char shadow_path[FN_REFLEN + 1];
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->first_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *old_first_log_entry= part_info->list;
|
||||
uint next_entry= 0;
|
||||
DBUG_ENTER("write_log_final_change_partition");
|
||||
|
||||
|
@ -6700,7 +6678,7 @@ static bool write_log_final_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
Do not link any previous log entry.
|
||||
Replace the revert operations with forced retry operations.
|
||||
*/
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
build_table_filename(path, sizeof(path) - 1, lpt->db.str, lpt->table_name.str, "", 0);
|
||||
build_table_shadow_filename(shadow_path, sizeof(shadow_path) - 1, lpt);
|
||||
mysql_mutex_lock(&LOCK_gdl);
|
||||
|
@ -6710,10 +6688,10 @@ static bool write_log_final_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
lpt->alter_info->partition_flags &
|
||||
ALTER_PARTITION_REORGANIZE))
|
||||
goto error;
|
||||
if (write_log_replace_delete_frm(lpt, next_entry, shadow_path, path, TRUE))
|
||||
if (write_log_replace_frm(lpt, next_entry, shadow_path, path))
|
||||
goto error;
|
||||
log_entry= part_info->first_log_entry;
|
||||
part_info->frm_log_entry= log_entry;
|
||||
log_entry= part_info->list;
|
||||
part_info->main_entry= log_entry;
|
||||
/* Overwrite the revert execute log entry with this retry execute entry */
|
||||
if (ddl_log_write_execute_entry(log_entry->entry_pos,
|
||||
&exec_log_entry))
|
||||
|
@ -6723,10 +6701,10 @@ static bool write_log_final_change_partition(ALTER_PARTITION_PARAM_TYPE *lpt)
|
|||
DBUG_RETURN(FALSE);
|
||||
|
||||
error:
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= old_first_log_entry;
|
||||
part_info->frm_log_entry= NULL;
|
||||
part_info->list= old_first_log_entry;
|
||||
part_info->main_entry= NULL;
|
||||
my_error(ER_DDL_LOG_ERROR, MYF(0));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
@ -6747,7 +6725,7 @@ static void write_log_completed(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
bool dont_crash)
|
||||
{
|
||||
partition_info *part_info= lpt->part_info;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry= part_info->exec_log_entry;
|
||||
DDL_LOG_MEMORY_ENTRY *log_entry= part_info->execute_entry;
|
||||
DBUG_ENTER("write_log_completed");
|
||||
|
||||
DBUG_ASSERT(log_entry);
|
||||
|
@ -6763,11 +6741,11 @@ static void write_log_completed(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
*/
|
||||
;
|
||||
}
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->exec_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
release_part_info_log_entries(part_info->execute_entry);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->exec_log_entry= NULL;
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->execute_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
@ -6784,11 +6762,11 @@ static void write_log_completed(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
static void release_log_entries(partition_info *part_info)
|
||||
{
|
||||
mysql_mutex_lock(&LOCK_gdl);
|
||||
release_part_info_log_entries(part_info->first_log_entry);
|
||||
release_part_info_log_entries(part_info->exec_log_entry);
|
||||
release_part_info_log_entries(part_info->list);
|
||||
release_part_info_log_entries(part_info->execute_entry);
|
||||
mysql_mutex_unlock(&LOCK_gdl);
|
||||
part_info->first_log_entry= NULL;
|
||||
part_info->exec_log_entry= NULL;
|
||||
part_info->list= NULL;
|
||||
part_info->execute_entry= NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -6901,8 +6879,8 @@ static void handle_alter_part_error(ALTER_PARTITION_PARAM_TYPE *lpt,
|
|||
close_all_tables_for_name(thd, table->s, HA_EXTRA_NOT_USED, NULL);
|
||||
}
|
||||
|
||||
if (part_info->first_log_entry &&
|
||||
ddl_log_execute_entry(thd, part_info->first_log_entry->entry_pos))
|
||||
if (part_info->list &&
|
||||
ddl_log_execute_entry(thd, part_info->list->entry_pos))
|
||||
{
|
||||
/*
|
||||
We couldn't recover from error, most likely manual interaction
|
||||
|
|
|
@ -6717,7 +6717,7 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
|
|||
for (uint i=0 ; i < show_table->s->keys ; i++,key_info++)
|
||||
{
|
||||
if ((key_info->flags & HA_INVISIBLE_KEY) &&
|
||||
DBUG_EVALUATE_IF("test_invisible_index", 0, 1))
|
||||
!DBUG_IF("test_invisible_index"))
|
||||
continue;
|
||||
KEY_PART_INFO *key_part= key_info->key_part;
|
||||
LEX_CSTRING *str;
|
||||
|
@ -6725,7 +6725,7 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
|
|||
for (uint j=0 ; j < key_info->user_defined_key_parts ; j++,key_part++)
|
||||
{
|
||||
if (key_part->field->invisible >= INVISIBLE_SYSTEM &&
|
||||
DBUG_EVALUATE_IF("test_completely_invisible", 0, 1))
|
||||
!DBUG_IF("test_completely_invisible"))
|
||||
{
|
||||
/*
|
||||
NOTE: we will get SEQ_IN_INDEX gap inside the result if this key_part
|
||||
|
|
|
@ -802,7 +802,7 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
|
|||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
lpt->table->file->ha_create_partitioning_metadata(path, shadow_path,
|
||||
CHF_DELETE_FLAG) ||
|
||||
ddl_log_increment_phase(part_info->frm_log_entry->entry_pos) ||
|
||||
ddl_log_increment_phase(part_info->main_entry->entry_pos) ||
|
||||
(ddl_log_sync(), FALSE) ||
|
||||
mysql_file_rename(key_file_frm,
|
||||
shadow_frm_name, frm_name, MYF(MY_WME)) ||
|
||||
|
@ -850,8 +850,8 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
|
|||
|
||||
err:
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
ddl_log_increment_phase(part_info->frm_log_entry->entry_pos);
|
||||
part_info->frm_log_entry= NULL;
|
||||
ddl_log_increment_phase(part_info->main_entry->entry_pos);
|
||||
part_info->main_entry= NULL;
|
||||
(void) ddl_log_sync();
|
||||
#endif
|
||||
;
|
||||
|
@ -2758,8 +2758,6 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
|
|||
*/
|
||||
if (sql_field->stored_in_db())
|
||||
record_offset+= sql_field->pack_length;
|
||||
if (sql_field->flags & VERS_SYSTEM_FIELD)
|
||||
continue;
|
||||
}
|
||||
/* Update virtual fields' offset and give error if
|
||||
All fields are invisible */
|
||||
|
@ -3110,14 +3108,14 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
|
|||
if (!sql_field || (sql_field->invisible > INVISIBLE_USER &&
|
||||
!column->generated))
|
||||
{
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), column->field_name.str);
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXIST, MYF(0), column->field_name.str);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
if (sql_field->invisible > INVISIBLE_USER &&
|
||||
!(sql_field->flags & VERS_SYSTEM_FIELD) &&
|
||||
!key->invisible && DBUG_EVALUATE_IF("test_invisible_index", 0, 1))
|
||||
!key->invisible && !DBUG_IF("test_invisible_index"))
|
||||
{
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), column->field_name.str);
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXIST, MYF(0), column->field_name.str);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
while ((dup_column= cols2++) != column)
|
||||
|
@ -6017,9 +6015,8 @@ remove_key:
|
|||
if (!part_elem)
|
||||
{
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
|
||||
ER_DROP_PARTITION_NON_EXISTENT,
|
||||
ER_THD(thd, ER_DROP_PARTITION_NON_EXISTENT),
|
||||
"DROP");
|
||||
ER_PARTITION_DOES_NOT_EXIST,
|
||||
ER_THD(thd, ER_PARTITION_DOES_NOT_EXIST));
|
||||
names_it.remove();
|
||||
}
|
||||
}
|
||||
|
@ -8310,7 +8307,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
|
|||
key_type= Key::UNIQUE;
|
||||
if (dropped_key_part)
|
||||
{
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), dropped_key_part);
|
||||
my_error(ER_KEY_COLUMN_DOES_NOT_EXIST, MYF(0), dropped_key_part);
|
||||
if (long_hash_key)
|
||||
{
|
||||
key_info->algorithm= HA_KEY_ALG_LONG_HASH;
|
||||
|
|
|
@ -5462,7 +5462,7 @@ versioning_option:
|
|||
{
|
||||
if (unlikely(Lex->create_info.options & HA_LEX_CREATE_TMP_TABLE))
|
||||
{
|
||||
if (DBUG_EVALUATE_IF("sysvers_force", 0, 1))
|
||||
if (!DBUG_IF("sysvers_force"))
|
||||
{
|
||||
my_error(ER_VERS_NOT_SUPPORTED, MYF(0), "CREATE TEMPORARY TABLE");
|
||||
MYSQL_YYABORT;
|
||||
|
|
|
@ -184,8 +184,8 @@ log_block_convert_lsn_to_no(
|
|||
lsn_t lsn) /*!< in: lsn of a byte within the block */
|
||||
{
|
||||
return(((ulint) (lsn / OS_FILE_LOG_BLOCK_SIZE) &
|
||||
DBUG_EVALUATE_IF("innodb_small_log_block_no_limit",
|
||||
0xFUL, 0x3FFFFFFFUL)) + 1);
|
||||
(DBUG_IF("innodb_small_log_block_no_limit")
|
||||
? 0xFUL : 0x3FFFFFFFUL)) + 1);
|
||||
}
|
||||
|
||||
/** Calculate the CRC-32C checksum of a log block.
|
||||
|
|
Loading…
Add table
Reference in a new issue