query: UPDATE _table SET _field = digit WHERE _field = NULL | UPDATE _table SET _field = digit WHERE _field > NULL AND _field < NULL | UPDATE _table SET _field = digit WHERE _field > _char(255) AND _field < NULL | UPDATE _table SET _field = digit WHERE _field = _digit | UPDATE _table SET _field = digit WHERE _field > _datetime AND _field < _digit | UPDATE _table SET _field = digit WHERE _field > _digit AND _field < NULL | UPDATE _table SET _field = digit WHERE _field > _digit AND _field < _english | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `pk` BETWEEN 4 AND 6 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key = _digit ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _tinyint_unsigned , _varchar(1) , _varchar(1) , _tinyint_unsigned , _varchar(1) ) LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` IN (_digit, _tinyint_unsigned) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_int_not_null` IN (_digit, _tinyint_unsigned, 25) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 10 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_10_key` IN (_char) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 7 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` = _digit ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` BETWEEN 8 AND 25 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_not_null_key` IN (1, 25) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_bigint_key` = 25 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE _field_key < _varchar(1) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 4 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _int_unsigned , _varchar(1) , _tinyint_unsigned , _tinyint_unsigned ) LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 50 WHERE `col_int_not_null` IN (_digit) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_char_1024_not_null_key` <= _quid ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` BETWEEN 25 AND _tinyint_unsigned ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_bigint` = _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_not_null` IN (25, 1, 1) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . _field_key < _varchar(1) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _tinyint_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL TRANSACTION ISOLATION LEVEL { if ( $format == 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL TRANSACTION ISOLATION LEVEL { if ( $format == 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION TRANSACTION ISOLATION LEVEL { if ( $format == 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'ROW' ; $pick_mode = 0 ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " UPDATE { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; $m4 = ''; return undef } { if ($pick_mode==0) {$m1='/*'; $m4='*/'} elsif ($pick_mode==1) {$m0='/*'; $m1='*/'; $m2='/*'; $m4='*/'} elsif ($pick_mode==2) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} elsif ($pick_mode==3) {$m0='/*'; $m3='*/'} elsif ($pick_mode==4) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} ; return undef } { return $m0 } table0_innodb_int { return $m1 } table0 { return $m2 } table1_myisam_int { return $m3 } table1_innodb_int_autoinc { return $m4 } AS A NATURAL JOIN { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; $m4 = ''; return undef } { if ($pick_mode==0) {$m1='/*'; $m4='*/'} elsif ($pick_mode==1) {$m0='/*'; $m1='*/'; $m2='/*'; $m4='*/'} elsif ($pick_mode==2) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} elsif ($pick_mode==3) {$m0='/*'; $m3='*/'} elsif ($pick_mode==4) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} ; return undef } { return $m0 } table1_int { return $m1 } table10 { return $m2 } table10_myisam_int { return $m3 } table0_innodb { return $m4 } B SET A. _field = NULL , B. _field = NULL WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SAVEPOINT A { $pick_mode=3; return undef} /* 1 END */ | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION TRANSACTION ISOLATION LEVEL { if ( $format == 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'MIXED' ; $pick_mode = 0 ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " UPDATE test1 . { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; $m4 = ''; return undef } { if ($pick_mode==0) {$m1='/*'; $m4='*/'} elsif ($pick_mode==1) {$m0='/*'; $m1='*/'; $m2='/*'; $m4='*/'} elsif ($pick_mode==2) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} elsif ($pick_mode==3) {$m0='/*'; $m3='*/'} elsif ($pick_mode==4) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} ; return undef } { return $m0 } table0_int_autoinc { return $m1 } table1_int { return $m2 } table10_myisam { return $m3 } table10_innodb_int_autoinc { return $m4 } SET _field = _date WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ COMMIT /* 1 END */ | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ FLUSH LOGS | SELECT { $field = 'col_int' ; return undef } {$table_field_list = $field; return undef} { $field = 'col_varchar_64' ; return undef } {$table_field_list = $table_field_list.','.$field; return undef} { $field = 'col_decimal' ; return undef } {$table_field_list = $table_field_list.','.$field} FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . {$part_table_name_s = $table_prefix.$part_piece.$prng->int(1,$namespace_width).$sequence_piece; $part_table_name = $part_table_name_s; $table_name = $part_table_name} {$part_table_item_s = $database_name_s." . ".$part_table_name_s; $part_table_item = $part_table_item_s; return undef} AS A WHERE A.`pk` IN ( SELECT `pk` FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . {$view_table_name_s = $table_prefix.$view_piece.$prng->int(1,$namespace_width).$sequence_piece; $view_table_name = $view_table_name_s; $table_name = $view_table_name} {$view_table_item_s = $database_name_s." . ".$view_table_name_s; $view_table_item = $view_table_item_s; return undef} AS B WHERE B.`pk` = A.`pk` ) | PREPARE st1 FROM " SELECT { $field = 'col_blob' ; return undef } {$table_field_list = $field; return undef} { $field = 'col_varchar_64' ; return undef } {$table_field_list = $table_field_list.','.$field; return undef} { $field = 'pk' ; return undef } {$table_field_list = $table_field_list.','.$field} FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . {$merge_table_name_s = $table_prefix.$merge_piece.$prng->int(1,$namespace_width).$sequence_piece; $merge_table_name = $merge_table_name_s; $table_name = $merge_table_name} {$merge_table_item_s = $database_name_s." . ".$merge_table_name_s; $merge_table_item = $merge_table_item_s; return undef} AS A WHERE A.`pk` IN ( SELECT `pk` FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . {$view_table_name_s = $table_prefix.$view_piece.$prng->int(1,$namespace_width).$sequence_piece; $view_table_name = $view_table_name_s; $table_name = $view_table_name} {$view_table_item_s = $database_name_s." . ".$view_table_name_s; $view_table_item = $view_table_item_s; return undef} AS B WHERE B.`pk` = A.`pk` ) PROCEDURE ANALYSE( 10 , 2000 ) " ; EXECUTE st1 ; DEALLOCATE PREPARE st1 | UNLOCK TABLES | FLUSH TABLES | START TRANSACTION | SELECT HIGH_PRIORITY { $field = 'col_int' ; return undef } {$table_field_list = $field; return undef} { $field = 'col_blob' ; return undef } {$table_field_list = $table_field_list.','.$field; return undef} { $field = 'col_decimal' ; return undef } {$table_field_list = $table_field_list.','.$field} FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . {$base_table_name_s = $table_prefix.$base_piece.$prng->int(1,$namespace_width).$sequence_piece; $base_table_name = $base_table_name_s; $table_name = $base_table_name} {$base_table_item_s = $database_name_s." . ".$base_table_name_s; $base_table_item = $base_table_item_s; return undef} AS A WHERE { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . {$function_name_n = $function_prefix.$prng->int(1,$namespace_width).$normal_piece ; $function_name = $function_name_n} {$function_item_n = $database_name ." . ".$function_name_n; $function_item = $function_item_n; return undef} () = _digit AND `pk` = _digit FOR UPDATE | UNLOCK TABLES | SHOW TABLE STATUS | SELECT * FROM `data_dictionary` . SHOW_COLUMNS | SHOW PROCESSLIST | SELECT * FROM `data_dictionary` . COUNTER | SELECT * FROM `data_dictionary` . GLOBAL_VARIABLES | SHOW TABLES | SELECT * FROM `data_dictionary` . TABLE_CACHE | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` BETWEEN _digit AND 10 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_not_null` >= 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LIMIT 7 /*Generated by THREAD_ID _thread_id*/ | SELECT { $table_field_list = "`pk` , `col_int` , `col_int_key` "} FROM ( SELECT { $table_field_list = "`col_int_key` , `col_int` , `pk` "} FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $temp_table_name_s = $table_prefix . $temp_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $temp_table_name = $temp_table_name_s ; $table_name = $temp_table_name } { $temp_table_item_s = $database_name_s . " . " . $temp_table_name_s ; $temp_table_item = $temp_table_item_s ; return undef } ) A WHERE A.`pk` IN ( SELECT `pk` FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } AS B WHERE B.`pk` = _digit ) | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $base_table_name_n = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $normal_piece ; $base_table_name = $base_table_name_n ; $table_name = $base_table_name } { $base_table_item_n = $database_name . " . " . $base_table_name_n ; $base_table_item = $base_table_item_n ; return undef } | REPLACE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $part_table_name_s = $table_prefix . $part_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $part_table_name = $part_table_name_s ; $table_name = $part_table_name } { $part_table_item_s = $database_name_s . " . " . $part_table_name_s ; $part_table_item = $part_table_item_s ; return undef } ( { $table_field_list = "`pk` , `col_int_key` , `col_int` "} ) SELECT { $table_field_list = "`col_int` , `pk` , `col_int_key` "} FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $merge_table_name_s = $table_prefix . $merge_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $merge_table_name = $merge_table_name_s ; $table_name = $merge_table_name } { $merge_table_item_s = $database_name_s . " . " . $merge_table_name_s ; $merge_table_item = $merge_table_item_s ; return undef } AS A WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 LIMIT 1 | TRUNCATE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $merge_table_name_n = $table_prefix . $merge_piece . $prng->int(1,$namespace_width) . $normal_piece ; $merge_table_name = $merge_table_name_n ; $table_name = $merge_table_name } { $merge_table_item_n = $database_name . " . " . $merge_table_name_n ; $merge_table_item = $merge_table_item_n ; return undef } | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $base_table_name_s = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $base_table_name = $base_table_name_s ; $table_name = $base_table_name } { $base_table_item_s = $database_name_s . " . " . $base_table_name_s ; $base_table_item = $base_table_item_s ; return undef } | INSERT { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } SELECT SQL_CACHE { $table_field_list = "`pk` , `col_int_key` , `col_int` "} FROM { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $part_table_name_n = $table_prefix . $part_piece . $prng->int(1,$namespace_width) . $normal_piece ; $part_table_name = $part_table_name_n ; $table_name = $part_table_name } { $part_table_item_n = $database_name . " . " . $part_table_name_n ; $part_table_item = $part_table_item_n ; return undef } AS A WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 LIMIT 1 | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $base_table_name_s = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $base_table_name = $base_table_name_s ; $table_name = $base_table_name } { $base_table_item_s = $database_name_s . " . " . $base_table_name_s ; $base_table_item = $base_table_item_s ; return undef } , { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SELECT * FROM { if (scalar(@created_tables) > 0) { $prng->arrayElement(@created_tables) } else { $prng->letter() } } | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = _tinyint_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _varchar(1) , _digit , _digit , _int_unsigned , _digit ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int_key` BETWEEN 2 AND 8 LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 7 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` IN (_char) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key IN ( _digit , _int_unsigned , _digit , _tinyint_unsigned , _int_unsigned ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_not_null_key` IN (_char) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_char_10` != _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned , _digit ) LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null` = _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE _field IN ( REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , CONVERT( _english , CHAR) , CONVERT( _varchar(255) , CHAR) ) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | DELETE FROM _table WHERE _field LIKE CONCAT( REPEAT( _hex , _tinyint_unsigned ) , '%' ) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | DELETE FROM _table WHERE _field IS NOT NULL ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IN ( REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field < REPEAT( _hex , _tinyint_unsigned ) ORDER BY `pk` LIMIT 1 | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT MIN( DISTINCT table2 . `pk` ) AS {"field".++$fields } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` NOT IN (4) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT SQL_SMALL_RESULT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `pk` <= 7 AND { "table".$prng->int(1,$tables) } . `col_int` < 1 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } /*+javadb:postgres: NULLS FIRST*/ LIMIT 10 OFFSET 4 { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` <> { "table".$prng->int(1,$tables) } . `col_int` { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` IS NULL ORDER BY { "field".$prng->int(1,$fields) } /*+javadb:postgres: NULLS FIRST*/ { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` <> 9 { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( ( ( { "table".$prng->int(1,$tables) } . `pk` BETWEEN _digit[invariant] AND ( _digit[invariant] + 5 ) OR { "table".$prng->int(1,$tables) } . `col_int` BETWEEN _digit[invariant] AND ( _digit[invariant] + 9 ) ) AND { "table".$prng->int(1,$tables) } . `pk` != 7 ) AND { "table".$prng->int(1,$tables) } . `col_int` < { "table".$prng->int(1,$tables) } . `pk` ) ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } /*+javadb:postgres: NULLS FIRST*/ { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` IS NOT NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = MIXED ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET @aux = @aux { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " DELETE QUICK A , B FROM { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { return 't1_'.$prng->int(1,20).'_innodb' } { return $m1 } { if ($format eq 'STATEMENT') { return 'v2_nontrans_safe_for_sbr_'.abs($$) } else { return 'v2_nontrans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m2 } { 't2_base_trans_'.abs($$) } { return $m3 } AS A NATURAL JOIN { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { 't2_temp_trans_'.abs($$) } { return $m1 } { if ($format eq 'STATEMENT') { return 'v2_nontrans_safe_for_sbr_'.abs($$) } else { return 'v2_nontrans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m2 } { 't2_temp_trans_'.abs($$) } { return $m3 } B { if ($pick_mode ne 'any') { $f1 = '/*'; $f2 = '*/' } else { $f1 = ''; $f2 = '' } ; return undef } WHERE col_tinyint_not_null BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> UUID_SHORT() ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = MIXED ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " UPDATE { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { 't1_base_nontrans_'.abs($$) } { return $m1 } { if ($format eq 'STATEMENT') { return 'v1_nontrans_safe_for_sbr_'.abs($$) } else { return 'v1_nontrans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m2 } { 't2_base_trans_'.abs($$) } { return $m3 } SET _field = @aux { if ($pick_mode ne 'any') { $f1 = '/*'; $f2 = '*/' } else { $f1 = ''; $f2 = '' } ; return undef } WHERE col_tinyint_not_null BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> CURRENT_USER ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ RELEASE SAVEPOINT A | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'MIXED' ; $pick_mode = 'any' ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " INSERT INTO { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { if ($format eq 'STATEMENT') { return 'v1_nontrans_safe_for_sbr_'.abs($$) } else { return 'v1_nontrans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m1 } { 't1_'.$prng->int(1,20).'_myisam' } { return $m2 } { 't2_temp_trans_'.abs($$) } { return $m3 } ( _field_list[invariant] ) SELECT _field_list[invariant] FROM ( SELECT _field_list[invariant] FROM { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { 't1_'.$prng->int(1,20).'_myisam' } { return $m1 } { 't1_temp_nontrans_'.abs($$) } { return $m2 } { if ($format eq 'STATEMENT') { return 'v1_trans_safe_for_sbr_'.abs($$) } else { return 'v1_trans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m3 } ) AS A NATURAL JOIN test2 . { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { return 't1_'.$prng->int(1,20).'_innodb' } { return $m1 } { 't2_temp_nontrans_'.abs($$) } { return $m2 } { if ($format eq 'STATEMENT') { return 'v2_trans_safe_for_sbr_'.abs($$) } else { return 'v2_trans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m3 } B { if ($pick_mode ne 'any') { $f1 = '/*'; $f2 = '*/' } else { $f1 = ''; $f2 = '' } ; return undef } WHERE col_tinyint_not_null BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> VERSION() ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'ROW' ; $pick_mode = 'any' ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " UPDATE { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; return undef } { if ($pick_mode eq 'any') {$m1='/*'; $m3='*/'} elsif ($pick_mode eq 'nontrans') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'shift') {$m0='/*'; $m1='*/'; $m2='/*'; $m3='*/'} elsif ($pick_mode eq 'trans') {$m0='/*'; $m2='*/'} ; return undef } { return $m0 } { 't1_base_nontrans_'.abs($$) } { return $m1 } { 't1_'.$prng->int(1,20).'_myisam' } { return $m2 } { return 't1_'.$prng->int(1,20).'_innodb' } { return $m3 } SET _field = _date { if ($pick_mode ne 'any') { $f1 = '/*'; $f2 = '*/' } else { $f1 = ''; $f2 = '' } ; return undef } WHERE col_tinyint_not_null BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> UUID() ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ RELEASE SAVEPOINT A | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = ROW ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ CREATE TABLE IF NOT EXISTS test . { 't1_is_tables_'.abs($$) } AS SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE,TABLE_ROWS,TABLE_COLLATION,TABLE_COMMENT FROM information_schema.tables WHERE 1 = 0 | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = ROW ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_ROW_IMAGE = full ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ RELEASE SAVEPOINT A | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = MIXED ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | SELECT VAR_SAMP( OUTR . `col_int` ) AS X FROM AA AS OUTR WHERE OUTR . `col_text_not_null` = ( SELECT INNR . `col_text_not_null_key` AS Y FROM CC AS INNR WHERE INNR . `col_char` = _char(1) ORDER BY INNR . `col_char_not_null` LIMIT 1 ) AND OUTR . `col_int_not_null_key` IS NOT NULL HAVING X <= _date ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` LIMIT digit | SELECT MIN(DISTINCT OUTR . `col_int_key` ) AS X FROM BB AS OUTR WHERE OUTR . `col_char_not_null` IN ( SELECT INNR . `col_char_not_null` AS Y FROM C AS INNR WHERE INNR . `col_text_key` >= _char(1) OR INNR . `col_int` IS NULL ) OR OUTR . `col_text_not_null` IS NOT NULL AND OUTR . `col_text_key` = _char(1) HAVING X >= NULL ORDER BY OUTR . `col_text_key` , OUTR . `pk` LIMIT digit | SELECT MAX( OUTR . `col_bigint` ) AS X FROM BB AS OUTR WHERE OUTR . `col_bigint_key` NOT IN ( SELECT INNR . `col_int_key` AS Y FROM CC AS INNR WHERE INNR . `col_bigint` <= digit ) OR ( OUTR . `col_char_not_null` >= _char(1) OR OUTR . `col_char_not_null` = _char(1) ) HAVING X <> _digit ORDER BY OUTR . `col_text_key` , OUTR . `pk` LIMIT digit | SELECT OUTR . `col_char_not_null` AS X FROM BB AS OUTR WHERE ( OUTR . `col_char` , OUTR . `col_int` ) NOT IN ( SELECT INNR . `col_bigint_key` AS Y , INNR . `col_int_not_null` AS Z FROM BB AS INNR WHERE OUTR . `col_text` > _char(1) ORDER BY INNR . `pk` ) OR NOT OUTR . `col_char` <= _char(1) HAVING X = _time ORDER BY OUTR . `col_char_not_null` , OUTR . `pk` | SELECT OUTR . `col_int` AS X FROM BB AS OUTR WHERE OUTR . `col_char_not_null_key` >= ( SELECT INNR . `col_text_not_null` AS Y FROM CC AS INNR WHERE INNR . `col_int_key` >= INNR . `col_int` OR NOT INNR . `col_int_not_null_key` < digit LIMIT 1 ) OR NOT OUTR . `col_char_not_null` <= _char(1) HAVING X > _time ORDER BY OUTR . `col_int_key` , OUTR . `pk` LIMIT digit | SELECT OUTR . `col_char` AS X FROM AA AS OUTR WHERE OUTR . `col_char_not_null_key` IN ( SELECT INNR . `col_text` AS Y FROM BB AS INNR WHERE INNR . `col_char` <= _char(1) ORDER BY INNR . `col_char` ) AND ( OUTR . `col_text` > _char(1) AND OUTR . `col_int` < digit ) HAVING X <= _char(1) ORDER BY OUTR . `col_char_not_null` , OUTR . `pk` | SELECT SUM(DISTINCT OUTR . `col_char` ) AS X FROM D AS OUTR WHERE EXISTS ( SELECT INNR . `col_text` AS Y FROM DD AS INNR WHERE INNR . `col_char` = INNR . `col_text_not_null` OR NOT OUTR . `col_int_not_null_key` <= digit ORDER BY INNR . `col_text_not_null_key` ) AND ( OUTR . `col_text` >= _char(1) OR NOT OUTR . `col_text` = _char(1) ) GROUP BY OUTR . `col_int_not_null_key` ORDER BY OUTR . `col_text` , OUTR . `pk` LIMIT digit | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE _field_key <= _tinyint_unsigned ORDER BY _field_list LIMIT 1 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 50 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table ORDER BY _field_list LIMIT 10 ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 4 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 50 ; DELETE FROM _table ORDER BY _field_list LIMIT 4 ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 7 ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_bigint` >= _digit ORDER BY _field_list LIMIT 8 ; SELECT X . _field FROM _table AS X WHERE X . `col_int_key` BETWEEN 2 AND 8 LIMIT 5 FOR UPDATE ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `pk` IN (_digit) ORDER BY _field_list LIMIT 25 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int` <= 1 ORDER BY _field_list LIMIT 25 ; SELECT * FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 7 FOR UPDATE ; UPDATE _table SET `col_int_key` = _digit WHERE int_field BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 8 ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _varchar(1) , _digit , _digit , _digit , _tinyint_unsigned ) LIMIT 8 ; DELETE FROM _table WHERE `col_char_10_not_null` != _char ORDER BY _field_list LIMIT 3 ; UPDATE _table SET `col_int_not_null` = 5 WHERE `col_bigint_key` < _digit ORDER BY _field_list LIMIT 6 ; COMMIT ; SET AUTOCOMMIT=ON | ROLLBACK TO SAVEPOINT A | SET AUTOCOMMIT=OFF ; START TRANSACTION ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 6 ; DELETE FROM _table WHERE `col_int_not_null` = 6 ORDER BY _field_list LIMIT 3 ; DELETE FROM _table WHERE `col_char_10` IN (_char, _char) ORDER BY _field_list LIMIT 4 ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 4 ; DELETE FROM _table ORDER BY _field_list LIMIT 2 ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_text_not_null` <= _char ORDER BY _field_list LIMIT 100 ; DELETE FROM _table WHERE `col_int_key` >= 25 ORDER BY _field_list LIMIT 1 ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 ; UPDATE _table SET `col_int` = 5 ORDER BY _field_list LIMIT 5 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint_key` IN (_digit) ORDER BY _field_list LIMIT 50 ; COMMIT ; SET AUTOCOMMIT=ON | DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 3 | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null_key` BETWEEN 2 AND 7 LIMIT 5 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 6 ; DELETE FROM _table WHERE `col_int_not_null_key` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 2 ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X WHERE X . `col_bigint` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X WHERE X . `col_int` BETWEEN 2 AND 8 LIMIT 6 ; UPDATE _table SET `col_int_not_null_key` = _digit ORDER BY _field_list LIMIT 8 ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN 1 AND 8 LIMIT 8 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_key` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 50 ; DELETE FROM _table ORDER BY _field_list LIMIT 4 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_char_10_not_null` IN (_quid) ORDER BY _field_list LIMIT 10 ; UPDATE _table SET `col_int_not_null` = 25 WHERE int_field BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 8 ; UPDATE _table SET `col_bigint` = 25 WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 8 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 4 AND 8 ORDER BY _field_list LIMIT 25 ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_text_key` < _char ORDER BY _field_list LIMIT 25 ; ROLLBACK ; SET AUTOCOMMIT=ON | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY E AS OUTR1, D AS OUTR2 SET OUTR1.`col_varchar_key` = -1, OUTR2.`col_varchar_key` = _english WHERE ( OUTR1.`col_int_nokey`, OUTR1.`pk` ) NOT IN ( SELECT DISTINCT INNR1 . `pk` AS x , INNR1 . `col_int_nokey` AS y FROM AA AS INNR1 WHERE INNR1 . `col_varchar_nokey` > _varchar(1) OR NOT OUTR2 . `col_datetime_key` <> date ORDER BY INNR1 . `col_int_nokey` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE A AS OUTR1 LEFT OUTER JOIN C AS OUTR2 ON ( OUTR1 . `col_varchar_key` = OUTR2 . `col_varchar_key` ) RIGHT JOIN B AS OUTR3 ON ( OUTR1 . `col_date_nokey` = OUTR3 . `col_date_key` ) SET OUTR1.`col_int_key` = _english, OUTR2.`col_varchar_nokey` = NULL WHERE OUTR1 . `col_int_key` NOT IN ( SELECT INNR1 . `col_int_key` AS y FROM AA AS INNR2 RIGHT JOIN DD AS INNR1 ON ( INNR2 . `col_datetime_nokey` <> INNR1 . `col_datetime_nokey` ) WHERE INNR1 . `col_int_nokey` <> digit ORDER BY INNR1 . `col_int_key` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE FROM OUTR1.* USING C AS OUTR1 RIGHT OUTER JOIN B AS OUTR2 ON ( OUTR1 . `col_varchar_nokey` = OUTR2 . `col_varchar_key` ) JOIN B AS OUTR3 ON ( OUTR1 . `col_varchar_key` = OUTR3 . `col_varchar_key` ) WHERE ( OUTR1 . `col_int_key` , OUTR1 . `col_int_key` ) IN ( SELECT INNR1 . `pk` AS x , INNR1 . `col_int_nokey` AS y FROM DD AS INNR1 WHERE INNR1 . `col_varchar_nokey` = INNR1 . `col_varchar_key` XOR OUTR2 . `col_varchar_nokey` <> _varchar(1) ORDER BY INNR1 . `col_int_nokey` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE LOW_PRIORITY IGNORE FROM OUTR1.*, OUTR2.* USING C AS OUTR1 LEFT OUTER JOIN A AS OUTR2 ON ( OUTR1 . `col_varchar_key` = OUTR2 . `col_varchar_key` ) WHERE OUTR1 . `col_int_nokey` IN ( SELECT DISTINCT INNR1 . `col_int_key` AS y FROM BB AS INNR1 WHERE INNR1 . `pk` IS NULL ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY D AS OUTR1 RIGHT OUTER JOIN B AS OUTR2 ON ( OUTR1 . `col_int_key` = OUTR2 . `pk` ) RIGHT JOIN C AS OUTR3 ON ( OUTR1 . `col_datetime_nokey` = OUTR3 . `col_datetime_key` ) SET OUTR1.`col_int_nokey` = _english WHERE OUTR1 . `col_int_key` IN ( SELECT INNR1 . `col_int_nokey` AS y FROM AA AS INNR1 WHERE OUTR1 . `col_varchar_key` > _varchar(1) ORDER BY INNR1 . `col_int_key` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY C AS OUTR1 LEFT OUTER JOIN D AS OUTR2 ON ( OUTR1 . `col_int_nokey` = OUTR2 . `col_int_nokey` ) SET OUTR1.`col_varchar_nokey` = _data, OUTR2.`col_int_key` = _varchar(256) WHERE OUTR1 . `col_int_nokey` IN ( SELECT DISTINCT INNR1 . `col_int_key` AS y FROM CC AS INNR2 LEFT JOIN CC AS INNR1 ON ( INNR2 . `col_date_nokey` <= INNR1 . `col_date_key` ) WHERE INNR1 . `col_int_nokey` >= INNR1 . `pk` AND INNR1 . `pk` > INNR1 . `col_int_key` ORDER BY INNR1 . `col_varchar_key` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY E AS OUTR1, A AS OUTR2 SET OUTR1.`col_varchar_key` = 0 WHERE OUTR1.`col_varchar_nokey` <= ALL ( SELECT _char UNION SELECT _char ) ; ROLLBACK | INSERT INTO partsupp ( ps_partkey , ps_suppkey , ps_availqty , ps_supplycost , ps_comment ) SELECT _tinyint_unsigned , ps_suppkey , ps_availqty , ps_supplycost , ps_comment FROM partsupp WHERE ps_supplycost < _tinyint_unsigned OR ps_partkey = _tinyint_unsigned ORDER BY ps_partkey , ps_suppkey ; INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) VALUES ( _digit , 'IRAN' , 2 , 'sentence' ) , ( _digit , 'UNITED KINGDOM' , 3 , 'sentence' ) , ( { $prng->uint16(0,24) } , 'IRAN' , 1 , 'sentence' ) , ( _digit , 'SAUDI ARABIA' , 4 , 'sentence' ) ; INSERT INTO orders ( o_orderkey , o_custkey , o_orderstatus , o_totalprice , o_orderDATE , o_orderpriority , o_clerk , o_shippriority , o_comment ) SELECT _tinyint_unsigned , o_custkey, o_orderstatus, o_totalprice , o_orderDATE , o_orderpriority , o_clerk , o_shippriority , o_comment FROM orders WHERE o_orderkey >= { $prng->uint16(1,1500) } AND o_custkey > _tinyint_unsigned ORDER BY o_orderkey ; INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) SELECT _digit , n_name , n_regionkey , n_comment FROM nation WHERE n_nationkey <> _digit AND n_nationkey < { $prng->uint16(0,24) } ORDER BY n_nationkey ; SELECT o_orderkey , o_custkey , o_orderstatus , o_orderpriority , o_clerk , o_shippriority , o_comment FROM orders WHERE o_custkey = _tinyint_unsigned OR o_custkey BETWEEN { $prng->uint16(1,150) } AND { $prng->uint16(1,150) } + _tinyint_unsigned ; UPDATE orders SET o_clerk = { "'Clerk".chr(35).'000000'.$prng->int(100,999)."'" } , o_comment = 'sentence' , o_shippriority = 0 , o_custkey = { $prng->uint16(1,150) } WHERE o_orderkey < _tinyint_unsigned OR o_totalprice = _mediumint_unsigned ; SELECT * FROM nation WHERE n_nationkey BETWEEN { $prng->uint16(0,24) } AND { $prng->uint16(0,24) } + _digit AND n_nationkey <= _digit ; COMMIT | INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) SELECT { $prng->uint16(0,24) } , n_name , n_regionkey , n_comment FROM nation WHERE n_nationkey BETWEEN { $prng->uint16(0,24) } AND _digit + _tinyint_unsigned AND n_nationkey = { $prng->uint16(0,24) } ORDER BY n_nationkey ; INSERT INTO customer ( c_custkey , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment ) VALUES ( { $prng->uint16(1,150) } , { "'Customer".chr(35).'00000000'.$prng->int(1,9)."'" } , 'words words' , _digit , { "'".$prng->int(1,10).'-'.$prng->int(100,999).'-'.$prng->int(100,999).'-'.$prng->int(1000,9999)."'" } , { $prng->int(-999,9999) } , 'FURNITURE' , 'sentence' ) , ( { $prng->uint16(1,150) } , { "'Customer".chr(35).'00000000'.$prng->int(1,9)."'" } , 'words words' , { $prng->uint16(0,24) } , { "'".$prng->int(1,10).'-'.$prng->int(100,999).'-'.$prng->int(100,999).'-'.$prng->int(1000,9999)."'" } , { $prng->int(-999,9999) } , 'FURNITURE' , 'sentence' ) ; UPDATE region SET r_comment = 'sentence' WHERE r_regionkey BETWEEN 2 AND 3 + 4 AND r_regionkey BETWEEN 3 AND 1 + 2 ; COMMIT | INSERT INTO lineitem ( l_orderkey , l_partkey , l_suppkey , l_linenumber , l_quantity , l_extendedprice , l_discount , l_tax , l_returnflag , l_linestatus , l_shipDATE , l_commitDATE , l_receiptDATE , l_shipinstruct , l_shipmode , l_comment ) SELECT _tinyint_unsigned , l_partkey , l_suppkey , l_linenumber , l_quantity , l_extendedprice , l_discount , l_tax , l_returnflag , l_linestatus , l_shipDATE , l_commitDATE , l_receiptDATE , l_shipinstruct , l_shipmode , l_comment FROM lineitem WHERE l_shipDATE { my $year = $prng->uint16(1992,1998); my $month = $prng->uint16(1,12); return sprintf("BETWEEN '%04d-%02d-01' AND '%04d-%02d-27'", $year, $month, $year, $month) } AND l_orderkey = _tinyint_unsigned ORDER BY l_orderkey , l_linenumber ; SELECT l_orderkey , l_partkey , l_suppkey , l_linenumber , l_quantity , l_returnflag , l_linestatus , l_shipinstruct , l_shipmode , l_comment FROM lineitem WHERE l_shipDATE < { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } AND l_commitDATE { my $year = $prng->uint16(1992,1998); return sprintf("BETWEEN '%04d-%02d-%02d' AND '%04d-%02d-%02d'", $year, $prng->uint16(1,12), $prng->uint16(1,27), $year, $prng->uint16(1,12), $prng->uint16(1,27)) } ; SELECT * FROM partsupp WHERE ps_suppkey <> 10 AND ps_suppkey <> 10 ; SELECT * FROM region WHERE r_regionkey = 2 OR r_regionkey = 3 ; COMMIT | INSERT INTO orders ( o_orderkey , o_custkey , o_orderstatus , o_totalprice , o_orderDATE , o_orderpriority , o_clerk , o_shippriority , o_comment ) VALUES ( { $prng->uint16(1,1500) } , { $prng->uint16(1,150) } , 'O' , _tinyint_unsigned , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , '3-MEDIUM' , { "'Clerk".chr(35).'000000'.$prng->int(100,999)."'" } , 0 , 'sentence' ) , ( { $prng->uint16(1,1500) } , _tinyint_unsigned , 'P' , _tinyint_unsigned , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , '5-LOW' , { "'Clerk".chr(35).'000000'.$prng->int(100,999)."'" } , 0 , 'sentence' ) , ( { $prng->uint16(1,1500) } , { $prng->uint16(1,150) } , 'O' , _tinyint_unsigned , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , '2-HIGH' , { "'Clerk".chr(35).'000000'.$prng->int(100,999)."'" } , 0 , 'sentence' ) ; INSERT INTO customer ( c_custkey , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment ) VALUES ( _tinyint_unsigned , { "'Customer".chr(35).'00000000'.$prng->int(1,9)."'" } , 'words words' , { $prng->uint16(0,24) } , { "'".$prng->int(1,10).'-'.$prng->int(100,999).'-'.$prng->int(100,999).'-'.$prng->int(1000,9999)."'" } , { $prng->int(-999,9999) } , 'HOUSEHOLD' , 'sentence' ) ; SELECT * FROM nation WHERE n_nationkey = _digit OR n_nationkey = _digit ; INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) SELECT _digit , n_name , n_regionkey , n_comment FROM nation WHERE n_nationkey BETWEEN _digit AND { $prng->uint16(0,24) } + _digit OR n_nationkey >= _digit ORDER BY n_nationkey ; INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) SELECT _digit , n_name , n_regionkey , n_comment FROM nation WHERE n_nationkey = _digit OR n_nationkey BETWEEN _digit AND { $prng->uint16(0,24) } + _digit ORDER BY n_nationkey ; INSERT INTO partsupp ( ps_partkey , ps_suppkey , ps_availqty , ps_supplycost , ps_comment ) SELECT _tinyint_unsigned , ps_suppkey , ps_availqty , ps_supplycost , ps_comment FROM partsupp WHERE ps_suppkey BETWEEN _digit AND 10 + _digit OR ps_partkey >= _tinyint_unsigned ORDER BY ps_partkey , ps_suppkey ; ROLLBACK | INSERT INTO nation ( n_nationkey , n_name , n_regionkey , n_comment ) SELECT _digit , n_name , n_regionkey , n_comment FROM nation WHERE n_nationkey = _digit AND n_nationkey = _digit ORDER BY n_nationkey ; SELECT * FROM partsupp WHERE ps_supplycost BETWEEN _mediumint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND ps_suppkey BETWEEN _digit AND 10 + _digit ; INSERT INTO customer ( c_custkey , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment ) SELECT _tinyint_unsigned , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment FROM customer WHERE c_custkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit OR c_acctbal BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ORDER BY c_custkey ; ROLLBACK | INSERT INTO supplier ( s_suppkey, s_name , s_address , s_nationkey , s_phone , s_acctbal , s_comment ) SELECT 10 , s_name , s_address , s_nationkey , s_phone , s_acctbal , s_comment FROM supplier WHERE s_nationkey <= { $prng->uint16(0,24) } OR s_acctbal <> _tinyint_unsigned ORDER BY s_suppkey ; INSERT INTO customer ( c_custkey , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment ) SELECT { $prng->uint16(1,150) } , c_name , c_address , c_nationkey , c_phone , c_acctbal , c_mktsegment , c_comment FROM customer WHERE c_acctbal BETWEEN _digit AND _tinyint_unsigned + _tinyint_unsigned AND c_custkey BETWEEN { $prng->uint16(1,150) } AND { $prng->uint16(1,150) } + _tinyint_unsigned ORDER BY c_custkey ; SELECT * FROM customer WHERE c_custkey = _tinyint_unsigned AND c_custkey = { $prng->uint16(1,150) } ; COMMIT | UPDATE region SET r_name = 'MIDDLE EAST' , r_comment = 'sentence' WHERE r_regionkey BETWEEN 3 AND 2 + 3 OR r_regionkey BETWEEN 3 AND 1 + 3 ; SELECT * FROM partsupp WHERE ps_supplycost BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND ps_supplycost <= _mediumint_unsigned ; INSERT INTO orders ( o_orderkey , o_custkey , o_orderstatus , o_totalprice , o_orderDATE , o_orderpriority , o_clerk , o_shippriority , o_comment ) SELECT { $prng->uint16(1,1500) } , o_custkey, o_orderstatus, o_totalprice , o_orderDATE , o_orderpriority , o_clerk , o_shippriority , o_comment FROM orders WHERE o_totalprice = _tinyint_unsigned OR o_custkey <= { $prng->uint16(1,150) } ORDER BY o_orderkey ; INSERT INTO supplier ( s_suppkey, s_name , s_address , s_nationkey , s_phone , s_acctbal , s_comment ) VALUES ( _digit , { "'Supplier".chr(35).'00000000'.$prng->int(1,5)."'" } , 'words words' , _digit , { "'".$prng->int(1,10).'-'.$prng->int(100,999).'-'.$prng->int(100,999).'-'.$prng->int(1000,9999)."'" } , { $prng->int(-999,9999) } , 'sentence' ) ; COMMIT | DELETE FROM _letter WHERE `col_int_nokey` = _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 7 | DELETE FROM _letter WHERE `col_int_nokey` = _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 1 | INSERT INTO _table ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _letter WHERE `col_int_nokey` < _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 8 | INSERT INTO _table ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table WHERE `col_int_nokey` BETWEEN _digit AND _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 5 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table WHERE `col_int_nokey` <> _digit | UPDATE _table SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | INSERT INTO _letter ( `col_int_nokey`, `col_int_key` ) VALUES ( _digit , _digit ) , ( _digit , _digit ) | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` < _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_key` <> _tinyint_unsigned ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` = _tinyint_unsigned ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` < _tinyint_unsigned ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; SAVEPOINT A ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_key` > _tinyint_unsigned ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; SAVEPOINT A ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` = _tinyint_unsigned ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` > _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_nokey` != _tinyint_unsigned ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` = _tinyint_unsigned ; SAVEPOINT A ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` != _tinyint_unsigned ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_key` >= _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` < _tinyint_unsigned ; SAVEPOINT A ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` > _tinyint_unsigned ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` > _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` = _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` <= _tinyint_unsigned ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_nokey` >= _tinyint_unsigned ; SAVEPOINT A ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_key` <> _tinyint_unsigned ; UPDATE _table AS X SET `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned WHERE `col_int_nokey` < _tinyint_unsigned ; ROLLBACK TO SAVEPOINT A ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_nokey` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_nokey` < _tinyint_unsigned ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK ; SELECT RELEASE_LOCK('LOCK') | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IN (_char, _char, _char) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> digit ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 100 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { $char_idx_field } > _char AND { $char_idx_field } < _char AND { $char_idx_field } IS NULL AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IN (digit) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + 35 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } != _digit OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IN (_char, _char) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) | { $idx_table = '' ; @idx_fields = () ; "" } ALTER TABLE { my $idx_table_candidate = $prng->arrayElement($executors->[0]->tables()) ; $idx_table = $idx_table_candidate ; $idx_table } ADD INDEX `test_idx` USING BTREE (`pk`, `col_int_key` { @idx_fields =("`pk`", "`col_int_key`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $int_idx_field } IS NOT NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) OR { $int_idx_field } <> _digit AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + _digit ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } != _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 2 ) OR { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND ( ( ( { "alias".$prng->int(1,$tables) } . `col_varchar_10_latin1` < _char AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit + 6 ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IN (_char, _char) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _quid AND { $char_idx_field } < 'zzzz' AND { $char_idx_field } IN (_char, _char) ) AND { "alias".$prng->int(1,$tables) } . `col_varchar_10_utf8_key` <> _char ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 1 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + digit ) OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 6 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } IN (_digit) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 50 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } IS NOT NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) ; DROP INDEX `test_idx` ON { $idx_table } | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit + 5 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 2 ) OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) OR { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < _english ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } LIKE ( 'a%' ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + _digit ) OR { "alias".$prng->int(1,$tables) } . `col_varchar_1024_utf8_key` = { "alias".$prng->int(1,$tables) } . `col_varchar_10_latin1` ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 OFFSET digit ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _english AND { $char_idx_field } < 'zzzz' AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { "alias".$prng->int(1,$tables) } . `pk` IS NULL ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> _digit OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } NOT LIKE ( '_' ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } NOT LIKE ( CONCAT( _char, '%') ) OR { $char_idx_field } NOT LIKE ( _quid ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } ASC | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IS NOT NULL AND { $char_idx_field } > _char AND { $char_idx_field } <= 'z' ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> 75 AND { $int_idx_field } IS NULL AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IS NOT NULL OR { "alias".$prng->int(1,$tables) } . `col_varchar_1024_latin1` != _char ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 1 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } < _digit AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } LIKE ( _char ) AND { $char_idx_field } > _char AND { $char_idx_field } <= 'zzzz' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 2 ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 10 ) ORDER BY { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field } > _digit AND { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= _char AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 2 ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IS NULL AND { $int_idx_field } != _digit OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 6 ) OR { $int_idx_field } = 20 OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> 50 AND { $int_idx_field } IN (_digit, _digit) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= _char AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 2 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> _digit | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } , alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'zzzz' AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 10 OFFSET 100 ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _quid AND { $char_idx_field } <= 'zzzz' ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IS NULL OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + digit ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 6 ) ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } | { $idx_table = '' ; @idx_fields = () ; "" } ALTER TABLE { my $idx_table_candidate = $prng->arrayElement($executors->[0]->tables()) ; $idx_table = $idx_table_candidate ; $idx_table } ADD INDEX `test_idx` USING HASH (`col_int_key` , `col_int` { @idx_fields =("`col_int_key`", "`col_int`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 35 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } NOT IN (_digit) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 75 ) OR { $int_idx_field } IS NULL OR { $int_idx_field } IS NOT NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 1 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + 30 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 6 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit + 10 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + digit ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } <> _digit OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + digit ) OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 2 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT alias1 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } , alias2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $char_idx_field } NOT LIKE ( _char ) AND { $char_idx_field } LIKE ( _char ) AND { $char_idx_field } NOT LIKE ( _quid ) AND { $char_idx_field } > _char AND { $char_idx_field } < _char AND { $char_idx_field } >= _char AND { $char_idx_field } < 'zzzz' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $char_idx_field } IS NOT NULL OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= _char ; DROP INDEX `test_idx` ON { $idx_table } | REPLACE INTO _table ( _field_no_pk ) SELECT _field_key FROM _table AS X ORDER BY _field_list LIMIT 7 | UPDATE _table AS X SET _field_no_pk = _int_unsigned WHERE X . _field_key BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 8 | DELETE IGNORE FROM _table WHERE _field_key BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 2 | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk ) VALUES ( _int_unsigned , _tinyint_unsigned ) , ( _tinyint_unsigned , _digit ) | UPDATE _table AS X SET _field_no_pk = _int_unsigned WHERE X . _field_key BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 8 | DELETE FROM _table WHERE _field_key = _tinyint_unsigned ORDER BY _field_list LIMIT 4 | UPDATE IGNORE _table AS X SET _field_no_pk = _int_unsigned WHERE X . _field_key BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. DD AS t1 , `test`. CC AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. CC AS t1 , `test`. C AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . AA ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . DD ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . AA ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . CC ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . D ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. DD AS t1 , `test`. CC AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. CC AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . DD ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . AA ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. AA AS t1 , `test`. B AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . CC ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. BB AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM `test` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. AA AS t1 , `test`. CC AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; DROP DATABASE IF EXISTS drizzledump_db_restore ; CREATE DATABASE drizzledump_db ; CREATE DATABASE drizzledump_db_restore ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. AA AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_1024` AS field4 , t1 . `col_char_1024_key` AS field5 , t1 . `col_char_1024_not_null` AS field6 , t1 . `col_char_1024_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_char_1024` AS field28 , t2 . `col_char_1024_key` AS field29 , t2 . `col_char_1024_not_null` AS field30 , t2 . `col_char_1024_not_null_key` AS field31 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_bigint` AS field36 , t2 . `col_bigint_key` AS field37 , t2 . `col_bigint_not_null` AS field38 , t2 . `col_bigint_not_null_key` AS field39 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 , t2 . `col_text` AS field44 , t2 . `col_text_key` AS field45 , t2 . `col_text_not_null` AS field46 , t2 . `col_text_not_null_key` AS field47 FROM `test`. CC AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | START TRANSACTION ; UPDATE _table SET `col_int_key` = `col_int_key` - 20, `col_int` = `col_int` + 20 WHERE `pk` = 2 ; SAVEPOINT A | START TRANSACTION ; SET @var = 1 ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` BETWEEN @var AND @var + 1 ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; INSERT INTO _table ( `col_int_key` , `col_int` ) SELECT `col_int` , `col_int_key` FROM _table WHERE `pk` > 10 LIMIT 9 ; SAVEPOINT A | START TRANSACTION ; SET @var = 7 ; UPDATE _table SET `col_int_key` = `col_int_key` - 20, `col_int` = `col_int` + 20 WHERE `pk` BETWEEN @var AND @var + 1 ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` = 9 ; COMMIT | START TRANSACTION ; INSERT INTO _table ( `col_int_key` , `col_int` ) SELECT `col_int` , `col_int_key` FROM _table WHERE `pk` > 10 LIMIT 8 ; SAVEPOINT A | START TRANSACTION ; DELETE FROM _table WHERE `pk` = _tinyint_unsigned AND `pk` > 10 ; COMMIT | ROLLBACK TO SAVEPOINT A | DELETE FROM _table WHERE _field > _digit LIMIT _digit | INSERT INTO _table ( `col_int_key`, `col_int` ) VALUES ( _digit , _digit ) | UPDATE _table SET _field = _digit WHERE _field BETWEEN _digit and _digit LIMIT _digit | SELECT _field FROM _table WHERE _field = _digit | UPDATE _table SET _field = _digit WHERE 1 = 1 LIMIT _digit | ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MIN( table2 . `col_int` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_255` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` <= 5 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } = _tinyint_unsigned ORDER BY { "field".$prng->int(1,$fields) } ASC { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `col_int_key` = { "table".$prng->int(1,$tables) } . `pk` AND { "table".$prng->int(1,$tables) } . `col_int` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 9 ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 1 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT COUNT( table2 . `col_int_key` ) AS {"field".++$fields }, MIN( table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_255_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` <> 1 HAVING { "field".$prng->int(1,$fields) } != 4 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT STRAIGHT_JOIN MIN( DISTINCT table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_255_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_255_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` IS NULL ORDER BY { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` >= 4 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT SUM( DISTINCT table5 . `col_int_key` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_255_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` < 7 HAVING { "field".$prng->int(1,$fields) } >= 2 ORDER BY { "field".$prng->int(1,$fields) } DESC { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( DISTINCT table2 . `col_int_key` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 4 ) HAVING { "field".$prng->int(1,$fields) } < 2 ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ASC { $stack->pop(undef) } | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_not_null` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_not_null` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_key` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_key` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_key` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_not_null` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | BEGIN ; UPDATE _table SET `col_int` = `col_int` + 1 WHERE col_int_not_null_key = _digit[invariant] ; UPDATE _table SET `col_int_key` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) LIMIT 7 FOR UPDATE | DELETE LOW_PRIORITY QUICK FROM _table WHERE _field_key = _int_unsigned ORDER BY _field_list LIMIT 1 | INSERT LOW_PRIORITY INTO _table (`pk`) VALUES (NULL) | UPDATE LOW_PRIORITY IGNORE _table AS X SET _field_no_pk = _tinyint_unsigned WHERE X . _field_key BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 8 | UPDATE LOW_PRIORITY _table AS X SET _field_no_pk = _varchar(1) ORDER BY _field_list LIMIT 7 | SELECT X . _field_key FROM _table AS X WHERE X . _field_key BETWEEN 1 AND 8 LIMIT 7 | DELETE LOW_PRIORITY FROM _table WHERE _field_key = _tinyint_unsigned ORDER BY _field_list LIMIT 2 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } q PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` >= _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } t PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | /*!50400 ALTER TABLE x { our $nb_part_list= $prng->int($nb_parts-5,$nb_parts); return undef } { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } PARTITION BY RANGE ( `col_int_nokey` ) ( { my $range_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $range_list .= "PARTITION p$i VALUES LESS THAN (".(($i+1)*3).")," }; return $range_list."PARTITION p".$nb_parts_var." VALUES LESS THAN MAXVALUE" } ) */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM b | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } t PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` >= _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } h PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | UPDATE { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } k PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_CONTAINS( GeomFromText('POLYGON( ( { $start_x = $prng->int(3750,4250) ; $start_y = $prng->int(2750,3250) ; "$start_x $start_y"; } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_TOUCHES( GeomFromText('LINESTRING( { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_DISJOINT( GeomFromText('MULTILINESTRING( ( { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } ) , ( { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_INTERSECTS( GeomFromText('LINESTRING( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } )') , linestring_key ) AND ST_CONTAINS( GeomFromText('POLYGON( ( { $start_x = $prng->int(3750,4250) ; $start_y = $prng->int(2750,3250) ; "$start_x $start_y"; } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) , ( { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) , ( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } ) , ( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_DISJOINT( GeomFromText('MULTILINESTRING( ( { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } ) , ( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } ) , ( { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_DISJOINT( GeomFromText('MULTILINESTRING( ( { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) , ( { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) , ( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } ) )') , linestring_key ) AND ST_EQUALS( ( SELECT linestring_nokey FROM linestring WHERE pk = { $prng->int(1,3726) } ) , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_WITHIN( GeomFromText('POLYGON( ( { $start_x = $prng->int(3750,4250) ; $start_y = $prng->int(2750,3250) ; "$start_x $start_y"; } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_CROSSES( GeomFromText('LINESTRING( { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | UPDATE _table SET `col_char_10_not_null_key` = _english WHERE `col_char_1024_not_null` = _english ORDER BY `col_char_1024_not_null_key` , `pk` LIMIT _tinyint_unsigned | ALTER ONLINE TABLE _table ADD KEY letter ( `col_int` ) | UPDATE _table SET `col_char_1024` = _letter ORDER BY `col_char_10` , `pk` LIMIT _tinyint_unsigned | ALTER ONLINE TABLE _table ADD KEY letter ( `col_text_not_null_key`(100) ) | SELECT * FROM _table ORDER BY `col_bigint` , `pk` LIMIT _digit | SELECT * FROM _table WHERE `col_text_not_null` <> _digit ORDER BY `col_char_10_not_null` , `pk` LIMIT 65535 | SELECT * FROM _table WHERE `col_char_10` < _digit ORDER BY `col_text` , `pk` LIMIT _tinyint_unsigned | SELECT X . _field FROM _table AS X WHERE X . `col_int_not_null` BETWEEN 2 AND 5 LIMIT 8 FOR UPDATE | DELETE FROM _table WHERE `col_text_key` IN (_char) ORDER BY _field_list LIMIT 1 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; SELECT X . _field FROM _table AS X WHERE X . `pk` BETWEEN 3 AND 5 LIMIT 5 LOCK IN SHARE MODE ; SELECT X . `pk` FROM _table AS X WHERE X . `col_int` BETWEEN 3 AND 6 LIMIT 6 ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 6 ; DELETE FROM _table ORDER BY _field_list LIMIT 4 ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 1 ; ROLLBACK TO SAVEPOINT A ; COMMIT ; SET AUTOCOMMIT=ON | UPDATE _table SET `col_int_not_null_key` = 7 ORDER BY _field_list LIMIT 8 | DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 3 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 100 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 50 ; SELECT X . _field FROM _table AS X LIMIT 6 ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `pk` BETWEEN 4 AND 6 LIMIT 5 ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int` BETWEEN 6 AND 6 ORDER BY _field_list LIMIT 25 ; DELETE FROM _table WHERE `col_bigint_key` BETWEEN 8 AND _digit ORDER BY _field_list LIMIT 3 ; COMMIT ; SET AUTOCOMMIT=ON | SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 5 LOCK IN SHARE MODE | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | INSERT INTO _table VALUES ( _bit ) | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_int_key` BETWEEN 25 AND 3 ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 4 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 8 /* 'foo' Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_char_255_not_null_key` != 'If you need to translate Views labels into other languages, consider installing the Internationalization package's Views translation module.' LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 100 WHERE `col_int_not_null` BETWEEN 6 AND _digit ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 2 AND 8 ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` IN (1) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_int` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 6 /* 'foo' Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_not_null_key` <= _tinyint_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_bigint` <= 3 ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` BETWEEN _varchar(1) AND 1 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 4 AND 5 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` IN (_digit, _digit, _digit) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` IN (_digit) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` IN (7) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` > 2 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 7 WHERE `col_int_not_null_key` IN (_digit, _tinyint_unsigned, 4, _digit) ORDER BY _field_list LIMIT 6 /* 'foo' Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 1 WHERE `col_char_10` IN (_char) ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` IN (7, 3) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 8 WHERE _field_key > _varchar(1) ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint` IN (50) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_10_not_null` > _char ORDER BY _field_list LIMIT 8 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` = '\"' ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_bigint` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` <= _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` IN (2) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` IN (5) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_255_key` IN (_char) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( D AS { "alias".++$tables } RIGHT JOIN BB AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_int_key` != SOME ( SELECT _tinyint_unsigned UNION SELECT 6 ) ) OR ( alias1 . `pk` > _tinyint_unsigned[invariant] AND alias1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR alias1 . `col_int_key` IN (_tinyint_unsigned, _tinyint_unsigned) ) AND { "alias".$prng->int(1,$tables) } . `col_varchar_key` >= { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` HAVING { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_varchar_key` , { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) NOT IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field2" } FROM C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ORDER BY CONCAT( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) , CONCAT( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } RIGHT JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } LEFT JOIN D AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_varchar_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` > SOME ( SELECT { "C_SQ".$child_subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "C_SQ".$subquery_idx."_field1" } FROM ( CC AS { "C_SQ".$child_subquery_idx."_alias".++$child_subquery_tables } LEFT OUTER JOIN A AS { "C_SQ".$child_subquery_idx."_alias".++$child_subquery_tables } ON ({ "C_SQ".$child_subquery_idx."_alias".$child_subquery_tables } . `col_varchar_key` = { "C_SQ".$child_subquery_idx."_alias".($child_subquery_tables-1) } . `col_varchar_nokey` ) ) WHERE { "C_SQ".$child_subquery_idx."_alias".$prng->int(1,$child_subquery_tables) } . `pk` >= { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `pk` ) ) AS { "alias".++$tables } RIGHT JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `col_int_nokey` ) ) ) ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` = ( SELECT DISTINCT SUM( { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` ) AS { "SQ".$subquery_idx."_field1" } FROM BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) OR ( alias1 . `col_varchar_key` LIKE CONCAT( _char , '%') AND alias1 . `col_varchar_key` = { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) HAVING { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <> ( SELECT _char FROM DUAL ) ORDER BY alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT DISTINCT { "SQ".$subquery_idx."_alias1" ; } . * FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` > { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` ) AS { "alias".++$tables } , BB AS { "alias".++$tables } , D AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_int_key` != ( SELECT COUNT( { "SQ".$subquery_idx."_alias2" ; } . `col_int_key` ) AS { "SQ".$subquery_idx."_field1" } FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) AND alias1 . `pk` = { "alias".$prng->int(1,$tables) } . `pk` HAVING { "field".$prng->int(1,$fields) } != _char(1) ORDER BY { "field".$prng->int(1,$fields) } DESC, { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } , B AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `pk` NOT IN ( SELECT _tinyint_unsigned UNION SELECT 6 ) ) AND ( alias1 . `col_varchar_key` = _char AND alias1 . `pk` = _tinyint_unsigned ) ORDER BY alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC , alias1 . _field_indexed ASC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` ASC , alias1 . _field_indexed DESC , { "field".$prng->int(1,$fields) } DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } INNER JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_nokey` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field1" } FROM A AS { "SQ".$subquery_idx."_alias".++$subquery_tables } WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` <= { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) ) AND alias1 . `col_int_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM ( BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } , view_AA AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` >= ALL ( SELECT 4 UNION SELECT 3 ) ) AS { "alias".++$tables } , D AS { "alias".++$tables } , view_A AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "SQ".$subquery_idx."_field1" } FROM ( B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } LEFT JOIN C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_varchar_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `pk` < { "alias".$prng->int(1,$tables) } . `col_int_nokey` ) ) OR alias1 . `pk` = { "alias".$prng->int(1,$tables) } . `col_int_key` AND alias1 . `col_int_nokey` > { "alias".$prng->int(1,$tables) } . `col_int_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } = 7 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MIN( alias2 . `col_varchar_key` ) AS { "field".++$fields } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT DISTINCT { "SQ".$subquery_idx."_alias1" ; } . * FROM ( D AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_varchar_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_varchar_nokey` ) ) ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_varchar_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_key` <= { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` ) AS { "alias".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } WHERE ( { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_key` < { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` AND { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` >= _char ) ) AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `pk` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_int_key` <> ANY ( SELECT 2 UNION DISTINCT SELECT 8 ) HAVING { "field".$prng->int(1,$fields) } < _char(1) | SELECT * FROM _table AS X LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 2 WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _int_unsigned , _int_unsigned , _digit , _tinyint_unsigned , _tinyint_unsigned ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` IN (3, _digit, _tinyint_unsigned, _digit) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 10 WHERE int_field BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` BETWEEN 3 AND _tinyint_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _int_unsigned WHERE `col_char_255_not_null` >= _char ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` < _tinyint_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_key` < 10 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_key` IN (_digit) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` <= 6 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null` != _char ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 8 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _tinyint_unsigned , _int_unsigned , _varchar(1) , _int_unsigned ) LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 8 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key IN ( _tinyint_unsigned , _int_unsigned , _int_unsigned , _varchar(1) , _tinyint_unsigned ) LIMIT 5 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 2 AND 5 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 6 WHERE `col_char_10_not_null` = _char ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key > _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | REPLACE INTO smf_log_topics (`id_topic`,`id_member`,`id_msg`) VALUES (_mediumint_unsigned,_tinyint_unsigned,_mediumint_unsigned) | DELETE FROM smf_log_banned | INSERT INTO smf_board_permissions (`id_profile`,`id_group`,`permission`,`add_deny`) VALUES (_digit,_tinyint_unsigned,REPEAT ( _varchar(2) , _tinyint_unsigned ),_mediumint_unsigned) | UPDATE smf_spiders SET spider_name = _varchar(1), user_agent = _english, ip_info = _varchar(2) WHERE id_spider = _mediumint_unsigned | INSERT INTO smf_mail_queue (`recipient`,`body`,`subject`,`headers`,`send_html`) VALUES (REPEAT ( _varchar(2) , _tinyint_unsigned ),_varchar(255),_english,_varchar(1),_varchar(1)) | UPDATE smf_log_online SET log_time = _tinyint_unsigned, ip = IFNULL(INET_ATON(REPEAT ( _varchar(2) , _tinyint_unsigned )), 0), url = _varchar(1) WHERE session = REPEAT ( _varchar(2) , _tinyint_unsigned ) | INSERT INTO smf_attachments (`id_folder`,`id_msg`,`attachment_type`,`filename`,`file_hash`,`size`,`width`,`height`,`fileext`,`mime_type`) VALUES (_mediumint_unsigned,_mediumint_unsigned,_mediumint_unsigned,_varchar(2),REPEAT ( _varchar(2) , _tinyint_unsigned ),_mediumint_unsigned,_digit,_digit,REPEAT ( _varchar(2) , _tinyint_unsigned ),REPEAT ( _varchar(2) , _tinyint_unsigned )) | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL TRANSACTION ISOLATION LEVEL { if ( $format eq 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION TRANSACTION ISOLATION LEVEL { if ( $format eq 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ UPDATE test . { $m0 = ''; $m1 = ''; $m2 = ''; $m3 = ''; $m4 = ''; return undef } { if ($pick_mode==0) {$m1='/*'; $m4='*/'} elsif ($pick_mode==1) {$m0='/*'; $m1='*/'; $m2='/*'; $m4='*/'} elsif ($pick_mode==2) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} elsif ($pick_mode==3) {$m0='/*'; $m3='*/'} elsif ($pick_mode==4) {$m0='/*'; $m2='*/'; $m3='/*'; $m4='*/'} ; return undef } { return $m0 } table10_int { return $m1 } table1_int { return $m2 } { 't2_base_myisam_'.abs($$) } { return $m3 } { if ($format eq 'STATEMENT') { return 'v1_trans_safe_for_sbr_'.abs($$) } else { return 'v1_trans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m4 } SET _field[invariant] = col_tinyint WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + _digit AND _field[invariant] IS NULL ; COMMIT | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION TRANSACTION ISOLATION LEVEL { if ( $format eq 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION TRANSACTION ISOLATION LEVEL { if ( $format eq 'STATEMENT' ) { return $prng->arrayElement(['REPEATABLE READ','SERIALIZABLE']) } else { return $prng->arrayElement(['READ UNCOMMITTED','READ COMMITTED','REPEATABLE READ','SERIALIZABLE']) } } | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'ROW' ; $pick_mode = 0 ; return $format } { if ($format eq 'STATEMENT') { $f0 = ''; $f1 = '/*'; $f2 = '*/' } else { $f0 = '/*'; $f1 = '*/'; $f2 = '' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test` { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET @aux = { if ($format eq 'STATEMENT') {return '/*'} } VERSION() { if ($format eq 'STATEMENT') {return '*/ 17 '} } { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SAVEPOINT A { $pick_mode=3; return undef} | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'MIXED' ; $pick_mode = 0 ; return $format } { if ($format eq 'STATEMENT') { $f0 = ''; $f1 = '/*'; $f2 = '*/' } else { $f0 = '/*'; $f1 = '*/'; $f2 = '' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test1` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SAVEPOINT A { $pick_mode=3; return undef} | DELETE FROM _table WHERE COLUMN_GET( _field_no_pk , _digit AS TIME ) IS NULL ORDER BY pk LIMIT 1 | UPDATE _table SET _field_no_pk = COLUMN_ADD( _field_no_pk , _tinyint_unsigned , _tinyint_unsigned AS INTEGER ) WHERE NOT COLUMN_CREATE( _digit , _varchar(1) , _tinyint_unsigned , COLUMN_GET( _field_no_pk , _tinyint_unsigned AS CHAR ) ) = COLUMN_ADD( COLUMN_CREATE( _digit , _varchar(512) AS DATE , _tinyint_unsigned , _tinyint_unsigned AS DATETIME ) , _tinyint_unsigned , _digit AS DOUBLE ) OR NOT COLUMN_GET( COLUMN_ADD( COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , _varchar(512) AS CHAR , _digit , NULL AS DOUBLE ) , _tinyint_unsigned , COLUMN_GET( _field_no_pk , _tinyint_unsigned AS TIME ) ) , _tinyint_unsigned , _digit , _digit , NULL AS DATETIME ) , _tinyint_unsigned AS CHAR ) = NULL ORDER BY pk LIMIT 1 | UPDATE _table SET _field_no_pk = _field_no_pk WHERE NOT COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , _tinyint_unsigned , _digit , NULL ) , _tinyint_unsigned , _varchar(512) AS DATE , _tinyint_unsigned , _varchar(1) ) = _field_no_pk OR COLUMN_GET( _field_no_pk , _tinyint_unsigned AS INTEGER ) IS NULL ORDER BY pk LIMIT 1 | UPDATE _table SET _field_no_pk = _field_no_pk WHERE COLUMN_GET( _field_no_pk , _tinyint_unsigned AS DATE ) IS NOT NULL ORDER BY pk LIMIT 1 | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , _tinyint_unsigned AS DATE , _tinyint_unsigned , COLUMN_GET( COLUMN_CREATE( _digit , NULL AS TIME ) , _digit AS INTEGER ) AS DATE ) | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , _varchar(512) AS DOUBLE , _tinyint_unsigned , COLUMN_GET( COLUMN_ADD( COLUMN_ADD( COLUMN_ADD( _field_no_pk , _tinyint_unsigned , COLUMN_GET( COLUMN_ADD( _field_no_pk , _tinyint_unsigned , NULL ) , _tinyint_unsigned AS TIME ) AS INTEGER , _digit , _tinyint_unsigned AS DATE ) , _tinyint_unsigned , _digit AS INTEGER ) , _tinyint_unsigned , NULL AS DOUBLE ) , _tinyint_unsigned AS DATE ) ) | SELECT COLUMN_LIST( COLUMN_ADD( _field_no_pk , _tinyint_unsigned , _varchar(1) , _tinyint_unsigned , _digit ) ) , COLUMN_LIST( COLUMN_CREATE( _tinyint_unsigned , _digit , _tinyint_unsigned , _varchar(1) AS CHAR ) ) FROM _table WHERE COLUMN_GET( COLUMN_CREATE( _digit , _varchar(512) ) , _digit AS CHAR ) IS NULL | SELECT field1 , field2 , field3 , field4 FROM ( SELECT field1 , min(field2) as field2 , max(field3) as field3 , count(field4) as field4 FROM table_partitioned GROUP BY field1 ) AS select1 | SELECT field1 , field2 , field3 , field4 FROM ( SELECT field1 , min(field2) as field2 , max(field3) as field3 , count(field4) as field4 FROM view5 WHERE field1 = _varchar(1) GROUP BY field1 ) AS select1 | DELETE FROM view1 WHERE field1 <= NULL ORDER BY field1 , field2 , field3 , field4 LIMIT _digit | DELETE FROM view1 WHERE field2 = _digit ORDER BY field1 , field2 , field3 , field4 LIMIT _digit | SELECT field1 , field2 , field3 , field4 FROM ( SELECT field1 , field2 , field3 , field4 FROM view5 WHERE field3 <=> _tinyint_unsigned ) AS select1 | SELECT field1 , field2 , field3 , field4 FROM table_merge_child WHERE field1 > _varchar(1) | SELECT a1 . field1 AS field1 , a2 . field2 AS field2 , a2 . field3 AS field3 , a1 . field4 AS field4 FROM table_merge AS a1 STRAIGHT_JOIN table_merge AS a2 ON a1 . field4 < a2 . field4 WHERE a2 . field1 != _varchar(1) AND a1 . field4 != _tinyint_unsigned | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $ind= 0; return undef } g PARTITION ({ $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { return "p".$ind++ }) WHERE `col_int_nokey` BETWEEN _digit AND _digit | UPDATE { our $ind= 0; return undef } i PARTITION ({ $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { return "p".$ind++ }) SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | CACHE INDEX e IN c3 | /*!50400 ALTER TABLE z COALESCE PARTITION 1 */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $ind= 0; return undef } t PARTITION ({ $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { return "p".$ind++ }) | /*!50400 SET GLOBAL c3.key_cache_block_size = 8192 */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $ind= 0; return undef } o PARTITION ({ $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { $ind < $nb_parts ? return "p".$ind++."," : return undef } { return "p".$ind++ }) WHERE `col_int_nokey` BETWEEN _digit AND _digit | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | ROLLBACK | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( alias2 . `col_int` ) AS {"field".++$fields } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `col_int` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } != 6 AND { "field".$prng->int(1,$fields) } < 1) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } DESC { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( alias2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `pk` != 4 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT COUNT( alias2 . `col_int` ) AS {"field".++$fields }, SUM( alias1 . `col_int_key` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `col_int` IN (6) HAVING { "field".$prng->int(1,$fields) } > 5 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `pk` = 4 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `col_int` IS NOT NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } > 1 OR { "field".$prng->int(1,$fields) } >= 8) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias4 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "alias".$prng->int(1,$tables) } . `pk` NOT IN (3) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS alias".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "alias".$prng->int(1,$tables) } . `col_int_key` <= { "alias".$prng->int(1,$tables) } . `pk` AND { "alias".$prng->int(1,$tables) } . `col_int` < { "alias".$prng->int(1,$tables) } . `col_int` ) { $stack->pop(undef) } | DROP FUNCTION f1 | { $begin_count = 0 ; $cond_count = 0 ; return undef } CREATE PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } () { $begin_count++ ; return undef } BEGIN SELECT CAST('ABC' AS CHAR(2)) ; { $begin_count++ ; $begin_count++ ; return undef } BEGIN { $cond_count++ ; return undef } DECLARE { if ( 10 == $prng->int(1,10) ) { return 'cond1' } else { return 'cond'.$cond_count } } CONDITION FOR SQLSTATE VALUE '42S02' ; DECLARE EXIT HANDLER FOR SQLSTATE VALUE { $state_number = 46000 + $prng->int(1,20) ; return "'".$state_number."'" } , NOT FOUND BEGIN CALL p3 ( CONVERT( _varchar(512) USING LATIN1 ) , RPAD( _letter , 32 + 1 , 'A123456789' ) , 9009 ) ; SELECT 1 ; SELECT * FROM (SELECT 1 AS f1) A WHERE f1 = 0 { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; SELECT * FROM (SELECT 1 AS f1) A WHERE f1 = 0 { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; SELECT COUNT(*) FROM t_not_exists { $val = '' ; while ($begin_count > 0) { $begin_count-- ; $val = $val.'; END' } ; return $val } | CALL { $procedure_name = 'p1_'.$prng->int(1,$width) } () | SET @@max_sp_recursion_depth = _digit | DROP FUNCTION f3 | { $begin_count = 0 ; $cond_count = 0 ; return undef } CREATE PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } () { $begin_count++ ; $begin_count++ ; return undef } BEGIN { $cond_count++ ; return undef } DECLARE { if ( 10 == $prng->int(1,10) ) { return 'cond1' } else { return 'cond'.$cond_count } } CONDITION FOR SQLSTATE '42000' ; { $cond_count++ ; return undef } DECLARE { if ( 10 == $prng->int(1,10) ) { return 'cond1' } else { return 'cond'.$cond_count } } CONDITION FOR SQLSTATE '23000' ; DECLARE CONTINUE HANDLER FOR SQLSTATE VALUE '42S02' BEGIN SELECT CAST('ABC' AS CHAR(2)) ; { $begin_count++ ; $begin_count++ ; return undef } BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION , 1106 BEGIN SELECT * FROM (SELECT 1 AS f1) A WHERE f1 = 0 ; { $begin_count++ ; return undef } BEGIN SIGNAL SQLSTATE '23000' ; SELECT COUNT(*) FROM t_not_exists ; SELECT CAST('ABC' AS CHAR(2)) { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; SELECT CAST('ABC' AS CHAR(2)) { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; SELECT CAST('ABC' AS CHAR(2)) { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; CALL p2 ( CONVERT( _varchar(512) USING UTF8 ) , @var1 , @var1 ) { $val = '' ; while ($begin_count > 0) { $begin_count-- ; $val = $val.'; END' } ; return $val } | DROP FUNCTION f1 | /*!50400 ALTER TABLE q CHECK PARTITION { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } */ | CREATE TABLE IF NOT EXISTS v ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MYISAM /*!50100 { our $nb_part_list= $prng->int($nb_parts-5,$nb_parts); return undef } { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } PARTITION BY LIST ( `col_int_nokey` ) ( { my $list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $list .= "PARTITION p$i VALUES IN ("; for (my $j=0; $j<$nb_values; $j++) {$list.= ($i*$nb_values+$j).(($j<$nb_values-1) ? "," : "")}; $list.= ($i<$nb_parts_var-1) ? ")," : ")" }; return $list } ) */ SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM a WHERE `col_int_nokey` = _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } n PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` >= _digit | REPLACE INTO { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } x PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } y PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) ORDER BY `col_int_key` , `col_int_nokey` LIMIT 5 | /*!50400 ALTER TABLE v ENABLE KEYS */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } w PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } u PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | DELETE FROM _table WHERE _field BETWEEN REPEAT( _hex , _tinyint_unsigned ) AND REPEAT( _hex , _tinyint_unsigned ) ORDER BY `pk` LIMIT 1 | INSERT INTO _table ( _field , _field , _field ) VALUES ( REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) ) | INSERT INTO _table ( _field , _field , _field ) VALUES ( CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) ) | UPDATE _table SET _field_no_pk = REPEAT( _hex , _tinyint_unsigned ) WHERE _field LIKE CONCAT( CONVERT( _varchar(255) , CHAR) , '%' ) | INSERT INTO _table ( _field , _field , _field ) VALUES ( CONVERT( _varchar(255) , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) ) | INSERT INTO _table ( _field , _field , _field ) VALUES ( REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) ) | DELETE FROM _table WHERE _field < CONVERT( _varchar(255) , CHAR) ORDER BY `pk` LIMIT 1 | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` IS NULL ORDER BY { "field".$prng->int(1,$fields) } DESC /*+javadb:postgres: NULLS FIRST*/ { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `pk` <= 5 OR { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 9 ) ) { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 2 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } /*+javadb:postgres: NULLS FIRST*/ { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } , { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` IN (8) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` < { "table".$prng->int(1,$tables) } . `col_int_key` ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } /*+javadb:postgres: NULLS FIRST*/ { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT SUM( table2 . `pk` ) AS {"field".++$fields }, SUM( table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` < { "table".$prng->int(1,$tables) } . `col_int_key` { $stack->pop(undef) } | { @table_alias_set = ("table1", "table1", "table1", "table1", "table2", "table2", "table2", "table3", "table4", "table5", "table1", "table1", "table2") ; "" } { @int_field_set = ("pk", "col_int", "col_int_key") ; "" } { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT { my $x = $prng->arrayElement(@table_alias_set)." . ".$prng->arrayElement(@int_field_set); push @nonaggregates , $x ; $x } AS {my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` < 9 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | START TRANSACTION ; SET @val=2 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 13) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=23 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=13 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 5) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; COMMIT | START TRANSACTION ; SET @val=1 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=13 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=11 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 7) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; ROLLBACK | START TRANSACTION ; SET @val=7 ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SET @val=-@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; COMMIT | START TRANSACTION ; SET @val=23 ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SET @val=-@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; COMMIT | START TRANSACTION ; SET @val=NULL ; { $tbl_cnst = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @delpk:=`pk` FROM $tbl_cnst WHERE `pk` > 250 ORDER BY `col_int_not_null` DESC LIMIT 17 ; COMMIT ; START TRANSACTION ; UPDATE $tbl_cnst SET `col_int_not_null`=`col_int_not_null`+1 WHERE pk=@delpk ; SELECT @val:=`col_int_not_null`-1 FROM $tbl_cnst WHERE pk=@delpk ; SET @myprime=29 ; SET @val=@val-@myprime ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SET @val=@val-@val+@myprime ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; DELETE from $tbl_cnst WHERE pk=@delpk ; SET @val=1 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=5 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 13) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=11 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 1) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 5) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=2 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 7) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=5 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 5) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=11 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 29) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; COMMIT | START TRANSACTION ; SET @val=NULL ; { $tbl_cnst = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @delpk:=`pk` FROM $tbl_cnst WHERE `pk` > 250 ORDER BY `col_int_not_null` DESC LIMIT 31 ; COMMIT ; START TRANSACTION ; UPDATE $tbl_cnst SET `col_int_not_null`=`col_int_not_null`+1 WHERE pk=@delpk ; SELECT @val:=`col_int_not_null`-1 FROM $tbl_cnst WHERE pk=@delpk ; SET @myprime=13 ; SET @val=@val-@myprime ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SET @val=@val-@val+@myprime ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; DELETE from $tbl_cnst WHERE pk=@delpk ; SET @val=17 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 5) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=2 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=1 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 1) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 31) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=11 ; SET @total=@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 7) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=3 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=13 ; SET @total=@total+@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@total ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; ROLLBACK | START TRANSACTION ; SET @val=29 ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` ASC LIMIT 11) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=-@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; SELECT @updpk:=`pk` FROM (SELECT `pk` FROM $tbl WHERE `pk` <= 250 ORDER BY `col_int_not_null` DESC LIMIT 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; COMMIT | REPLACE INTO _table ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table WHERE `col_int_nokey` <> 1 LIMIT 1 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | INSERT INTO _table ( `col_int_nokey`, `col_int_key` ) VALUES ( 4 , 7 ) , ( 8 , 6 ) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | REPLACE INTO _letter ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table LIMIT 1 | DELETE FROM _letter WHERE `col_int_nokey` = 8 LIMIT 2 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_int_not_null_key` IN (10) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_255_not_null_key` = _char ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_int_not_null` = _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255` >= _char ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_not_null_key` = _char ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _int_unsigned WHERE `col_int_not_null` != 8 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_key` IN (2) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 1 WHERE `col_char_255_not_null` = _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `pk` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_bigint_key` BETWEEN 2 AND 8 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_char_10_not_null_key` IN (_char, _quid, _char, _char, _char) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int` BETWEEN 4 AND 5 LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` IN (_quid, _quid) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` IN (_char, _char, _quid) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 4 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 8 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _digit , _int_unsigned , _int_unsigned , _varchar(1) , _digit ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 1 WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 4 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 25 WHERE `col_char_255` IN (_quid, _quid, _char) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_bigint` = 3 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_bigint` = 1 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 8 WHERE `col_bigint` BETWEEN _digit AND 8 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` = _char ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_255_not_null_key` IN (_char) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 100 WHERE `col_int_not_null` BETWEEN 100 AND _tinyint_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10` IN (_char, _char) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 100 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key >= _digit ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_bigint` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ | SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN 2 AND 8 LIMIT 6 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _tinyint_unsigned , _digit , _varchar(1) , _digit ) LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_not_null` IN (_char, _char, _quid) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 5 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT INTO t1 (col1,col2,col3,col4) VALUES ( { $my_digit= 'NULL' } , $my_digit, $my_digit - 1, REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)); ROLLBACK | UPDATE t1 SET { $column_name_int= 'col3' } = { $my_digit= 'NULL' } LIMIT 2 ; COMMIT | DELETE FROM t1 WHERE { $column_name_int= 'col3' } = { $my_digit= 3 } OR $column_name_int IS NULL ; COMMIT | DELETE FROM t1 WHERE MATCH(col4) AGAINST (TRIM(' { $my_digit= 'NULL' } ') IN BOOLEAN MODE) OR { $column_name_int= 'col1' } IS NULL ; COMMIT | CHECK TABLE t1 | INSERT INTO t1 (col1,col2,col3,col4) VALUES ( { $my_digit= 2 } , $my_digit, $my_digit - 1, REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)); COMMIT | DELETE FROM t1 WHERE MATCH(col4) AGAINST (TRIM(' { $my_digit= 2 } ') IN BOOLEAN MODE) OR { $column_name_int= 'col3' } IS NULL ; COMMIT | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } UPDATE $table_name SET `col_int_key` = _digit | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } UPDATE $table_name SET `col_int_key` = _digit | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | SELECT /* QUERY_ID: _mediumint_unsigned */ /* RESULTSET_SAME_DATA_IN_EVERY_ROW */ { 'func_'.$prng->int(1,3) } ( `col_int_key` ) AS `col_int_key` FROM { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } $table_name WHERE `col_int_key` < { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( `col_int_key` ) ) ) ) | SELECT /* QUERY_ID: _mediumint_unsigned */ /* RESULTSET_SAME_DATA_IN_EVERY_ROW */ { 'func_'.$prng->int(1,3) } ( _digit ) AS `col_int_key` FROM { $view_name = 'view_'.$prng->int(1..3) ; return undef } $view_name WHERE { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( { 'func_'.$prng->int(1,3) } ( `col_int_key` ) ) ) ) < `col_int_key` | SET @inout1 = 0 ; CALL { 'proc_'.$prng->int(1,3) } ( @inout1 ) ; SELECT /* RESULTSET_SINGLE_INTEGER_ONE */ IF(@inout1 IN (0,1), 1, 999) | CALL /* RESULTSET_SAME_DATA_IN_EVERY_ROW */ { 'proc_'.$prng->int(1,3) } ( @inout1 ) | SELECT l_shipdate FROM lineitem FORCE KEY ( i_l_partkey , i_l_suppkey_partkey ) WHERE l_receiptDATE IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) OR l_quantity IN ( _digit , _digit , _digit , _digit ) AND l_shipdate { my $year = $prng->uint16(1992,1998); my $month = $prng->uint16(1,12); return sprintf("BETWEEN '%04d-%02d-01' AND '%04d-%02d-29'", $year, $month, $year, $month) } AND ( l_quantity != { $prng->uint16(1,50) } OR l_commitDATE { my $year = $prng->uint16(1992,1998); my $month = $prng->uint16(1,12); return sprintf("BETWEEN '%04d-%02d-%02d' AND '%04d-%02d-%02d'", $year, $month, $prng->uint16(1,28), $year, $month, $prng->uint16(1,28)) } ) OR ( l_receiptDATE IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) OR l_linenumber IN ( _digit , _digit , _digit , _digit ) ) | SELECT MAX( l_commitDATE ) FROM lineitem WHERE ( l_linenumber IN ( _digit , _digit ) ) AND ( l_partkey = _tinyint_unsigned OR l_shipdate BETWEEN { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) OR l_linenumber BETWEEN _digit AND _digit + _digit AND l_orderkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit OR l_receiptDATE IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) | SELECT COUNT( l_linenumber ) FROM lineitem WHERE ( l_orderkey BETWEEN _tinyint_unsigned AND { $prng->uint16(1,1500) } + _digit ) AND ( l_partkey <= _tinyint_unsigned OR l_linenumber BETWEEN _digit AND _digit + _digit ) AND l_linenumber = _digit | SELECT * FROM lineitem FORCE KEY ( i_l_orderkey_quantity , PRIMARY , i_l_suppkey , i_l_orderkey_quantity ) WHERE l_quantity <= { $prng->uint16(1,50) } OR l_commitDATE { my $year = $prng->uint16(1992,1998); my $month = $prng->uint16(1,12); return sprintf("BETWEEN '%04d-%02d-01' AND '%04d-%02d-29'", $year, $month, $year, $month) } AND l_shipdate IN ( '1998-11-27' , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) AND l_shipdate IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) OR l_orderkey BETWEEN { $prng->uint16(1,1500) } AND { $prng->uint16(1,1500) } + _tinyint_unsigned AND l_orderkey IN ( { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } ) AND l_receiptDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_commitDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ORDER BY l_quantity , l_orderkey , l_linenumber | SELECT * FROM lineitem WHERE ( l_shipdate <> { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_shipdate = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_suppkey IN ( 10 , 10 ) OR l_suppkey BETWEEN 10 AND 10 + _digit OR ( l_partkey BETWEEN 200 AND _digit + _tinyint_unsigned OR l_commitDATE BETWEEN { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) AND ( l_suppkey BETWEEN 10 AND _digit + _digit OR l_partkey BETWEEN 200 AND _tinyint_unsigned + _digit AND l_orderkey IN ( { $prng->uint16(1,1500) } , _tinyint_unsigned ) OR l_receiptDATE != { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_receiptDATE { my $year = $prng->uint16(1992,1998); my $month = $prng->uint16(1,12); return sprintf("BETWEEN '%04d-%02d-%02d' AND '%04d-%02d-%02d'", $year, $month, $prng->uint16(1,28), $year, $month, $prng->uint16(1,28)) } ) ) AND ( l_partkey = _tinyint_unsigned AND l_shipdate <> { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_suppkey IN ( 10 , 10 , 10 , _digit ) OR l_quantity <> { $prng->uint16(1,50) } ) | SELECT * FROM lineitem WHERE ( l_commitDATE IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) ) AND ( l_orderkey BETWEEN { $prng->uint16(1,1500) } AND { $prng->uint16(1,1500) } + _digit AND l_orderkey IN ( _tinyint_unsigned , _tinyint_unsigned , { $prng->uint16(1,1500) } ) ) | SELECT * FROM lineitem FORCE KEY ( i_l_commitdate , PRIMARY , i_l_suppkey_partkey , i_l_orderkey_quantity ) WHERE ( l_linenumber BETWEEN _digit AND _digit + _digit OR l_partkey IN ( _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) AND l_suppkey IN ( 10 , 10 ) ) AND ( ( l_commitDATE IN ( { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) ) AND ( l_linenumber <> _digit OR l_quantity IN ( { $prng->uint16(1,50) } , _digit ) OR l_orderkey BETWEEN { $prng->uint16(1,1500) } AND { $prng->uint16(1,1500) } + _digit AND l_orderkey IN ( { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , _tinyint_unsigned ) OR l_orderkey = _tinyint_unsigned ) ) | SELECT _field FROM _table | SELECT _field FROM _table | DELETE FROM _table WHERE _field != CONVERT( _varchar(255) USING UCS2 ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IN ( CONVERT( _varchar(255) USING ASCII ) , REPEAT( _LATIN1 _hex , _tinyint_unsigned ) , CONVERT( _english USING UTF8 ) , REPEAT( _ASCII _hex , _tinyint_unsigned ) , REPEAT( _ASCII _hex , _tinyint_unsigned ) , REPEAT( _UTF8 _hex , _tinyint_unsigned ) , CONVERT( _english USING UCS2 ) ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field <= REPEAT( _UTF8 _hex , _tinyint_unsigned ) ORDER BY `pk` LIMIT 1 | UPDATE _table SET _field_no_pk = CONVERT( _varchar(255) USING UTF8 ) WHERE _field IN ( REPEAT( _LATIN1 _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) USING LATIN1 ) , CONVERT( _english USING UCS2 ) , CONVERT( _varchar(255) USING UTF8 ) , REPEAT( _ASCII _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) USING UTF8 ) , CONVERT( _varchar(255) USING ASCII ) ) ORDER BY `pk` LIMIT _digit | INSERT INTO _table ( _field , _field , _field ) VALUES ( CONVERT( _english USING UCS2 ) , REPEAT( _UCS2 _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) USING LATIN1 ) ) | DELETE FROM _table ORDER BY _field LIMIT _digit | INSERT INTO _table ( _field_no_pk ) VALUES ( _timestamp ) | INSERT INTO _table ( _field_no_pk ) VALUES ( _timestamp ) | DELETE FROM _table ORDER BY _field LIMIT _digit | INSERT INTO _table ( _field_no_pk ) VALUES ( _timestamp ) | DELETE FROM _table LIMIT _digit | DELETE FROM _table ORDER BY _field LIMIT _digit | SELECT OUTR . `col_char_10_key` AS X FROM AA AS OUTR2 LEFT JOIN A AS OUTR ON ( OUTR2 . `col_int_not_null` <> OUTR . `col_int_not_null_key` ) WHERE OUTR . `col_int_not_null_key` IN ( SELECT INNR . `col_int` AS Y FROM A AS INNR WHERE INNR . `col_bigint` > digit XOR INNR . `col_bigint_key` >= INNR . `pk` ) AND ( OUTR . `col_int_key` = digit OR OUTR . `col_bigint_key` >= digit ) ORDER BY OUTR . `col_int` , OUTR . `pk` | SELECT DISTINCT MAX(DISTINCT OUTR . `pk` ) AS X FROM A AS OUTR2 LEFT JOIN DD AS OUTR ON ( OUTR2 . `col_char_1024` <= OUTR . `col_text_key` ) WHERE ( OUTR . `col_int_key` , OUTR . `col_bigint` ) IN ( SELECT DISTINCT INNR . `col_int` AS X , INNR . `col_int_not_null_key` AS Y FROM BB AS INNR2 LEFT JOIN D AS INNR ON ( INNR2 . `col_int` > INNR . `col_int_not_null` ) WHERE OUTR . `col_char_10_not_null` > _varchar(1) ORDER BY INNR . `col_int` ) AND OUTR . `col_bigint` = digit ORDER BY OUTR . `col_bigint_key` , OUTR . `pk` | SELECT SUM( OUTR . `col_char_1024` ) AS X FROM AA AS OUTR WHERE OUTR . `col_char_1024_key` IN ( SELECT INNR . `col_char_1024` AS Y FROM C AS INNR WHERE INNR . `col_int_not_null` = INNR . `col_int_not_null_key` XOR INNR . `col_char_10` <> _varchar(1) ORDER BY INNR . `col_int_not_null` ) AND ( OUTR . `col_int_not_null` > digit OR NOT OUTR . `col_text_not_null` IS NULL ) HAVING X >= _varchar(1) ORDER BY OUTR . `pk` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text_not_null_key` AS X FROM A AS OUTR2 LEFT JOIN AA AS OUTR ON ( OUTR2 . `col_text` >= OUTR . `col_char_10_key` ) WHERE ( OUTR . `col_text_key` , OUTR . `col_char_1024` ) IN ( SELECT INNR . `col_char_10` AS X , INNR . `col_char_1024_not_null_key` AS Y FROM BB AS INNR WHERE INNR . `col_char_1024` <= INNR . `col_char_1024_not_null_key` AND NOT OUTR . `col_bigint` < digit ORDER BY INNR . `pk` ) AND ( OUTR . `col_bigint_key` < digit OR NOT OUTR . `col_char_10_not_null` IS NULL ) ORDER BY OUTR . `col_char_1024_key` , OUTR . `pk` | SELECT OUTR . `col_char_10` AS X FROM AA AS OUTR WHERE ( OUTR . `col_int_key` , OUTR . `col_bigint` ) IN ( SELECT DISTINCT INNR . `col_bigint_key` AS X , INNR . `pk` AS Y FROM A AS INNR2 LEFT JOIN D AS INNR ON ( INNR2 . `pk` = INNR . `col_int_key` ) WHERE OUTR . `pk` > digit ) AND ( OUTR . `col_char_1024_not_null_key` >= _varchar(1) XOR OUTR . `col_int_key` IS NOT NULL ) HAVING X > NULL ORDER BY OUTR . `col_text_not_null` , OUTR . `pk` | SELECT DISTINCT STDDEV_SAMP( OUTR . `col_bigint_key` ) AS X FROM A AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_char_1024_not_null_key` = OUTR . `col_text_key` ) WHERE ( OUTR . `col_bigint_key` , OUTR . `col_int_not_null_key` ) IN ( SELECT INNR . `col_int_not_null` AS X , INNR . `pk` AS Y FROM C AS INNR WHERE INNR . `col_bigint` IS NOT NULL ORDER BY INNR . `col_int_not_null_key` ) AND OUTR . `col_bigint` <> digit OR OUTR . `col_char_10_not_null` >= _varchar(1) ORDER BY OUTR . `col_text_not_null` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text_not_null` AS X FROM BB AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_int` > OUTR . `col_int_not_null` ) WHERE OUTR . `col_bigint_key` IN ( SELECT DISTINCT INNR . `col_bigint_key` AS Y FROM A AS INNR WHERE INNR . `col_char_1024` > _varchar(1) XOR OUTR . `col_text_key` = _varchar(1) ORDER BY INNR . `col_int_key` ) AND OUTR . `col_int_not_null` IS NULL XOR OUTR . `col_text` > _varchar(1) HAVING X <> _datetime ORDER BY OUTR . `col_char_10_key` , OUTR . `pk` | SELECT ROLLBACK_TRANSACTIONS FROM INFORMATION_SCHEMA.USER_STATISTICS | SELECT _field + _field FROM _table WHERE _field IS NULL ORDER BY _field | UPDATE _table SET _field_no_pk = _year WHERE _field <= _bigint_unsigned ORDER BY _field | SELECT _field + _field FROM _table WHERE _field IS NOT NULL | DROP TABLE IF EXISTS _letter[invariant] ; DROP VIEW IF EXISTS _letter[invariant] ; CREATE TABLE _letter[invariant] SELECT * FROM _table | DROP TABLE IF EXISTS _letter[invariant] ; DROP VIEW IF EXISTS _letter[invariant] ; CREATE VIEW _letter[invariant] AS SELECT * FROM _table ; INSERT INTO _letter[invariant] ( _field ) VALUES ( _bigint_unsigned ) | SET SESSION INNODB_STRICT_MODE = 1 | CREATE TRIGGER letter BEFORE UPDATE ON t3 FOR EACH ROW BEGIN INSERT INTO t4 ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; END | CREATE PROCEDURE letter () BEGIN INSERT INTO t10 ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; UPDATE letter SET `pk` = digit WHERE `pk` = digit ; UPDATE letter SET `col_int` = digit WHERE `col_int` = digit ; SELECT * FROM t5 ; END | CREATE PROCEDURE letter () BEGIN INSERT INTO letter ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; SELECT * FROM t3 ; SELECT * FROM t8 ; INSERT INTO letter ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; END | CREATE TABLE IF NOT EXISTS t6 ( `pk` INTEGER NOT NULL AUTO_INCREMENT , `col_int` INTEGER , PRIMARY KEY ( `pk` ) ) PARTITION BY HASH ( `pk` ) PARTITIONS digit SELECT `pk` , `col_int_key` FROM E | CREATE TRIGGER letter AFTER UPDATE ON t8 FOR EACH ROW BEGIN INSERT INTO letter ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; END | CREATE PROCEDURE letter () BEGIN SELECT * FROM t6 ; SELECT * FROM t3 ; INSERT INTO letter ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; INSERT INTO letter ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; END | CREATE TABLE IF NOT EXISTS t10 ( `pk` INTEGER NOT NULL AUTO_INCREMENT , `col_int` INTEGER , PRIMARY KEY ( `pk` ) ) PARTITION BY HASH ( `pk` ) PARTITIONS digit SELECT `pk` , `col_int_key` FROM E | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 5 WHERE _field_key = _int_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_int` = 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_key` >= _tinyint_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` = 1 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_10` IN (_char) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` IN (_char) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 1 WHERE `col_text` = _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 5 WHERE `col_char_10` > _quid ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE _field_key <= _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 1 WHERE `col_text_not_null_key` = _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE `col_int_not_null_key` IN (_digit) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_key` IN (5) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_text_key` >= _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_1024` IN (_char) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_not_null` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE _field_key = _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10` = _quid ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` IN (_int_unsigned) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10` = _char ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `pk` BETWEEN _digit AND _varchar(1) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM k PARTITION (p3) | UPDATE s PARTITION (p3) SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM o PARTITION (p3) WHERE `col_int_nokey` BETWEEN _digit AND _digit | /*!50400 ALTER TABLE f OPTIMIZE PARTITION p1 */ | /*!50400 SET GLOBAL c4.key_buffer_size = _smallint_unsigned */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM e PARTITION (p0) | /*!50400 ALTER TABLE a COALESCE PARTITION 2 */ | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT COUNT(*) FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `airports` { $table_name = 'airports'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `origin` = { 'a'.$alias_count } .`code` ) ) INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( a1 . `carrier` = { 'a'.$alias_count } . `code` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `carrier` IN ( 'TW' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` BETWEEN _char(2) AND _char(2) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `tail_num` LIKE 'N9Q%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` BETWEEN _char(2) AND _char(2) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` = 'ORD' AND { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'BIS' , 'ORD' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` = 'AKN' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT a1 . * FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `carrier` = { 'a'.$alias_count } . `code` ) ) INNER JOIN `airports` { $table_name = 'airports'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( a1 . `origin` = { 'a'.$alias_count } .`code` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` = 'AKN' AND { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'BIS' , 'ORD' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } ( { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state` = 'HI' ) AND ( { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `city` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 2 )) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `longitude` BETWEEN _tinyint AND _tinyint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'zipcodes'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `zipcode` BETWEEN 10000 + ( _tinyint_unsigned * 100) AND 10000 + ( _tinyint_unsigned * 100) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'MSP' , 'MSP' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` BETWEEN _char(2) AND _char(2) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) ORDER BY a1 . `id` LIMIT _digit | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT MIN(a1 . dep_time) FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `carrier` = { 'a'.$alias_count } . `code` ) ) INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( a1 . `carrier` = { 'a'.$alias_count } . `code` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'AKN' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'ORD' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `tail_num` LIKE 'N9Q%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `carrier` = 'B6' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'zipcodes'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `zipcode` BETWEEN 10000 + ( _tinyint_unsigned * 100) AND 10000 + ( _tinyint_unsigned * 100) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` IN ( 'DE' , 'TX' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT a1 . * FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `carrier` = { 'a'.$alias_count } . `code` ) ) INNER JOIN `aircraft` { $table_name = 'aircraft'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( a1 .`tail_num` = { 'a'.$alias_count } .`tail_num` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `carrier` IN ( 'B6' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `longitude` BETWEEN _tinyint AND _tinyint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft_engines'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `manufacturer` LIKE 'N9Q%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` IN ( 'VI' , 'LA' , 'WY' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'zipcodes'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `zipcode` BETWEEN 10000 + ( _tinyint_unsigned * 100) AND 10000 + ( _tinyint_unsigned * 100) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'zipcodes'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `zipcode` BETWEEN 10000 + ( _tinyint_unsigned * 100) AND 10000 + ( _tinyint_unsigned * 100) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) ORDER BY a1 . `id` LIMIT _digit | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT a1 . * FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `carriers` { $table_name = 'carriers'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `carrier` = { 'a'.$alias_count } . `code` ) ) CROSS JOIN `airports` { $table_name = 'airports'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `airport_remarks` { $table_name = 'airport_remarks' ; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } USING ( `site_number` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` = 'BIS' OR { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'AKN' , 'AKN' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'aircraft_engines'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `manufacturer` LIKE 'N10%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `tail_num` LIKE 'N9Q%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'states'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state_code` IN ( 'FL' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` = 'ORD' OR { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'AKN' , 'BIS' , 'AKN' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) ORDER BY a1 . `id` LIMIT _digit | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT a1 . * FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `aircraft` { $table_name = 'aircraft'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.$alias_count } .`tail_num` = { 'a'.($alias_count - 1) } .`tail_num` ) ) INNER JOIN `airports` { $table_name = 'airports'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( a1 . `origin` = { 'a'.$alias_count } .`code` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` IN ( 'LIT' ) OR { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'MSP' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'ORD' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state` BETWEEN _char(2) AND _char(2) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'carriers' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` IN ( 'UA' , 'WN' , 'CO' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` = 'ORD' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state` IN ( 'NE' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) ORDER BY a1 . `id` LIMIT _digit | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT COUNT(*) FROM ( `ontime_mysiam` { $table_name = 'ontime'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `aircraft` { $table_name = 'aircraft'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.$alias_count } .`tail_num` = { 'a'.($alias_count - 1) } .`tail_num` ) ) CROSS JOIN `airports` { $table_name = 'airports'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `airport_remarks` { $table_name = 'airport_remarks' ; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } USING ( `site_number` ) WHERE { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `origin` IN ( 'MSP' , 'LIT' , 'ORD' , 'AKN' , 'MSP' ) AND { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'MSP' ) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND ( { $condition_table = 'airport_remarks'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `airport_remark_id` BETWEEN _tinyint_unsigned AND _smallint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `longitude` BETWEEN _tinyint AND _tinyint_unsigned { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'zipcodes'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `zipcode` BETWEEN 10000 + ( _tinyint_unsigned * 100) AND 10000 + ( _tinyint_unsigned * 100) { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'ontime' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'MSP' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `tail_num` LIKE 'N9Q%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } AND { $condition_table = 'aircraft_engines'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `manufacturer` LIKE 'N10%' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} , _field AS {"field".++$fields} FROM ( BB AS { "table".++$tables } RIGHT OUTER JOIN ( ( D AS { "table".++$tables } RIGHT JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_text_not_null_key` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) ) ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) WHERE `col_int` != _digit | { $tables = 0 ; $fields = 0 ; "" } ALTER TABLE _table[invariant] ADD INDEX `_quid[invariant]` (`col_char_10_not_null_key` , `col_char_10_not_null`) ; ALTER TABLE _table[invariant] DROP INDEX `_quid[invariant]` | { $tables = 0 ; $fields = 0 ; "" } ALTER TABLE _table[invariant] ADD INDEX `_quid[invariant]` (`col_int_key`) ; ALTER TABLE _table[invariant] DROP INDEX `_quid[invariant]` | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} FROM ( CC AS { "table".++$tables } RIGHT JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null_key` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE `col_char_1024_not_null` <= _char | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} FROM ( DD AS { "table".++$tables } INNER JOIN ( ( BB AS { "table".++$tables } STRAIGHT_JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_1024_key` ) ) ) ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) WHERE `col_text_key` != _char | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} FROM ( CC AS { "table".++$tables } INNER JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE `col_char_10_key` < _char | { $tables = 0 ; $fields = 0 ; "" } SHOW PROCESSLIST | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT { $cur_table='table3'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table1'; ""} { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table2'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' OR { $cur_table='table1'; "" } { $cur_table } . `col_varchar_10_latin1_key` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 6 ) AND { $cur_table } . `pk` >= 10 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "table".$prng->int(1,$tables) } . `col_varchar_10_latin1_key` > _quid | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT DISTINCT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { $cur_table } . `col_varchar_1024_utf8` IS NULL AND { $cur_table='table1'; "" } { $cur_table } . `col_int_key` IN ( 1, 1 ) OR { $cur_table } . `col_varchar_1024_utf8_key` > { "table".$prng->int(1,$tables) } . `col_varchar_1024_utf8` OR { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= _char OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 1000 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT SQL_SMALL_RESULT MAX( table3 . `col_int` ) AS { "field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field } >= _quid AND { $char_idx_field } < _char OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IN ( _digit ) OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _quid AND { $char_idx_field } <= _quid AND { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field } IS NULL OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> _digit OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } LIKE ( 'a%' ) OR { $char_idx_field } IN (_english) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field } >= { "table".$prng->int(1,$tables) } . `col_int_key` AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 3 ) AND { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + 1000 ) AND { $cur_table='table1'; "" } { $cur_table } . `col_int` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 100 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT { $cur_table='table3'; ""} { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table1'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table2'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { $cur_table } . `col_int_key` <= { "table".$prng->int(1,$tables) } . `col_int` AND { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IN (_english) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT DISTINCT { $cur_table='table1'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table2'; ""} { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table3'; ""} { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table } . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` < { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } NOT LIKE ( CONCAT( _char, '%') ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND ( _digit[invariant] + 7 ) OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } IN (_quid, _char, _char, _char, _char) AND { $char_idx_field } >= 'b' AND { $char_idx_field } <= 't' OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } IN ( 1 ) AND { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + 6 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 9 ) OR { $cur_table='table1'; "" } { $cur_table } . `col_varchar_1024_latin1` <> _char AND { $cur_table } . `col_varchar_1024_utf8_key` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 8 ) AND { $cur_table } . `col_varchar_1024_latin1` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "table".$prng->int(1,$tables) } . `col_varchar_10_utf8` <= _char | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table3 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } NOT IN ( 7 ) OR { $int_idx_field } BETWEEN _digit[invariant] AND ( _digit[invariant] + 25 ) OR { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } != 100 OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND ( _digit[invariant] + 100 ) OR { $int_idx_field } = 100 AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 8 ) AND { $int_idx_field } IN ( _digit ) OR { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table3 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table3 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table3 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_utf8` <= { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_latin1` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_utf8` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` > { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_latin1_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { $cur_table='table1'; "" } { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _quid AND { $char_idx_field } <= _char OR { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field } = { "table".$prng->int(1,$tables) } . `col_varchar_10_latin1` OR { $char_idx_field } >= _char AND { $char_idx_field } < 'zzzz' OR { $cur_table='table1'; "" } { $cur_table } . `col_varchar_10_utf8` <> { "table".$prng->int(1,$tables) } . `col_varchar_10_latin1_key` AND { $cur_table } . `col_int` IS NULL AND { $cur_table='table1'; "" } { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } <> { "table".$prng->int(1,$tables) } . `pk` OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + 1 ) OR { my @char_idx_fields = ("`col_varchar_10_latin1_key`", "`col_varchar_10_utf8_key`", "`col_varchar_1024_latin1_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = $cur_table." . ".$prng->arrayElement(@char_idx_fields) ; "" } { $char_idx_field } >= _english AND { $char_idx_field } <= 'z' AND { $char_idx_field } LIKE ( _english ) OR { $char_idx_field } IN (_char) | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN 3 AND 7 LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _varchar(1) WHERE `col_char_10_key` IN (_char, _char) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _varchar(1) , _varchar(1) , _int_unsigned , _digit , _int_unsigned ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _digit , _varchar(1) , _varchar(1) , _int_unsigned ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255` IN (_quid) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_bigint_key` BETWEEN 4 AND 6 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _varchar(1) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int_not_null_key` BETWEEN 1 AND 6 LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_not_null_key` BETWEEN 7 AND _digit ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 50 WHERE `col_bigint` BETWEEN _digit AND _tinyint_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 2 AND 8 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 4 AND 6 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = _int_unsigned ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` IN (_char) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key < _digit LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_255` = _quid ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int` = _digit ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ | SELECT MIN( `pk` ) FROM _table WHERE ( `col_varchar_64_key` IS NULL OR ( `col_varchar_64_key` = _varchar(2) ) ) AND ( `col_varchar_64_key` IN ( _states , _varchar(2) ) OR `col_varchar_10_key` NOT LIKE CONCAT (_varchar(10) , '%' ) ) AND ( `col_varchar_64_key` IN ( _english , _english , _states , _english ) OR `col_varchar_64_key` IN ( _varchar(10) , _english ) ) AND ( `pk` IN ( _digit , _digit ) OR `col_smallint_key` IS NULL ) | SELECT * FROM _table WHERE ( `col_varchar_64_key` IN ( _english , _varchar(2) , _english , _varchar(2) ) OR `col_varchar_64_key` IS NULL ) OR ( ( `col_varchar_10_key` LIKE CONCAT (_states , '%' ) AND `col_varchar_10_key` LIKE CONCAT (_states , '%' ) ) AND ( `pk` IS NULL OR `col_smallint_key` IN ( 255 , _digit ) ) AND ( `pk` IN ( _digit , 255 , _tinyint , 1 , _tinyint , _digit , 255 ) OR ( `col_bigint_key` <= 1 ) ) ) OR ( `col_varchar_10_key` LIKE CONCAT (_varchar(2) , '%' ) OR `col_varchar_64_key` LIKE CONCAT (_states , '%' ) ) AND ( `pk` IS NULL OR `col_smallint_key` IN ( _tinyint_unsigned , _tinyint_unsigned , _tinyint , _tinyint , 255 ) ) AND ( `col_varchar_64_key` LIKE CONCAT (_varchar(2) , '%' ) OR `col_varchar_64_key` IS NULL ) ORDER BY `col_varchar_64_key` , `pk` /* */ | SELECT * FROM _table WHERE ( `col_varchar_64_key` BETWEEN _varchar(10) AND _varchar(1) OR `col_varchar_64_key` BETWEEN _varchar(1) AND _english ) OR ( ( `col_varchar_10_key` NOT IN ( _varchar(2) , _english ) OR `col_varchar_64_key` IS NULL ) OR ( ( `col_bigint_key` BETWEEN _digit AND _tinyint_unsigned + _digit OR `col_bigint_key` IS NOT NULL ) AND ( ( `col_varchar_10_key` IS NULL OR `col_varchar_64_key` IN ( _english , _varchar(10) , _states ) ) AND ( ( `col_smallint_key` IS NULL OR `col_bigint_key` IS NULL ) AND ( ( NOT ( `pk` = _tinyint_unsigned ) OR NOT ( `col_bigint_key` = 255 ) ) AND ( ( `col_varchar_10_key` = _english ) OR ( `col_varchar_10_key` = _states ) ) AND ( `col_smallint_key` IN ( 1 , _digit ) OR `col_smallint_key` IN ( 255 , _tinyint_unsigned ) ) ) ) ) ) ) AND ( `col_varchar_64_key` LIKE CONCAT (_varchar(2) , '%' ) OR `col_varchar_64_key` BETWEEN _varchar(10) AND _states ) AND ( `col_varchar_64_key` NOT IN ( _varchar(10) , _varchar(10) , _varchar(1) ) OR `col_varchar_64_key` IN ( _varchar(1) , _varchar(10) , _varchar(2) ) ) /* */ | SELECT * FROM _table FORCE KEY ( PRIMARY , `col_smallint_key` , `col_bigint_key` , `col_varchar_10_key` , `col_varchar_64_key` ) WHERE ( `col_bigint_key` IS NULL OR `col_smallint_key` IS NULL ) OR ( `pk` BETWEEN 1 AND _digit + _tinyint_unsigned OR `col_smallint_key` IN ( 255 , _digit , _tinyint_unsigned ) ) AND ( `pk` NOT IN ( 1 , 1 ) OR `pk` IS NULL ) /* */ | SELECT MIN( `pk` ) FROM _table FORCE KEY ( PRIMARY , `col_smallint_key` , `col_bigint_key` , `col_varchar_10_key` , `col_varchar_64_key` ) WHERE ( ( `col_bigint_key` = _digit ) AND `col_bigint_key` IS NOT NULL ) AND ( ( `col_varchar_10_key` IN ( _varchar(1) , _varchar(1) , _states , _varchar(10) , _varchar(1) ) OR `col_varchar_64_key` IN ( _varchar(2) , _english ) ) AND ( `col_varchar_64_key` NOT BETWEEN _states AND _english OR `col_varchar_64_key` IS NULL ) OR ( ( `col_varchar_64_key` = _varchar(1) ) OR `col_varchar_10_key` IN ( _varchar(10) , _english ) ) ) OR ( NOT ( `col_varchar_64_key` <> _states ) OR `col_varchar_10_key` LIKE CONCAT (_varchar(10) , '%' ) ) AND ( ( `col_varchar_64_key` IN ( _varchar(10) , _english ) OR `col_varchar_64_key` IS NULL ) ) | SELECT `col_bigint_key` , MAX( `col_smallint_key` ) FROM _table WHERE ( `col_bigint_key` NOT IN ( _tinyint_unsigned , _tinyint , 255 , 255 ) AND `col_bigint_key` IN ( 255 , _digit , 255 ) ) AND ( `col_varchar_64_key` BETWEEN _varchar(2) AND _varchar(10) OR `col_varchar_64_key` BETWEEN _varchar(10) AND _english ) AND ( `pk` IN ( _tinyint_unsigned , 255 , 1 , _digit ) OR `col_smallint_key` NOT BETWEEN _digit AND _tinyint + _tinyint_unsigned ) AND ( ( `pk` IS NULL OR `pk` IN ( _tinyint_unsigned , 255 , _digit ) ) AND ( ( `col_varchar_64_key` IN ( _varchar(2) , _varchar(1) , _varchar(1) , _varchar(2) ) OR `col_varchar_10_key` IS NULL ) AND ( ( `pk` BETWEEN _tinyint AND _tinyint + 255 OR `col_smallint_key` IN ( _tinyint_unsigned , _tinyint ) ) ) ) ) GROUP BY 1 | SELECT * FROM _table WHERE ( ( `col_smallint_key` = _tinyint ) OR ( `col_bigint_key` >= 1 ) ) AND ( `pk` BETWEEN 255 AND 1 + _digit OR `pk` BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit ) AND ( `col_smallint_key` IN ( 1 , 255 ) OR ( `pk` = _tinyint_unsigned ) ) AND ( `pk` IN ( _digit , 1 ) OR ( `pk` = _tinyint ) ) ORDER BY `col_bigint_key` , `pk` /* */ | UPDATE _table SET _field = CURDATE() WHERE _field < MAKEDATE( '0000' , _tinyint_unsigned ) OR ADDDATE( _field , digit ) IS NOT NULL OR _field IN ( ADDDATE( '0000-00-00 00:00:00' , _field ) , FROM_DAYS( _field ) , DATE( _date ) ) AND _field NOT IN ( ADDDATE( _field , _field ) , FROM_UNIXTIME( _integer_unsigned , CONCAT_WS( ':' , '%r' , '%e' ) ) ) AND _field NOT IN ( _field , _field , _field , UTC_DATE() , _field , CONVERT_TZ( _field , CONCAT( '+' , CONCAT_WS(':', _digit , _digit ) ) , 'UTC' ) , TIMESTAMP( _field , UTC_DATE() ) ) OR _field <=> UTC_DATE() AND _field <> TIMESTAMP( _field , _time ) | UPDATE _table SET _field = _field WHERE _field <= DATE( _date ) | UPDATE _table SET _field = CURDATE() WHERE ADDDATE( TIMESTAMPADD( QUARTER , _tinyint_unsigned , _field ) , _field ) IS NULL | UPDATE _table SET _field = _field WHERE _field NOT IN ( _field , TIMESTAMPADD( MINUTE , DAYOFMONTH( _date ) , _field ) , _field ) AND _field <=> _field AND FROM_DAYS( digit ) IS NOT NULL | INSERT INTO _table ( _field ) VALUE ( _field ) | UPDATE _table SET _field = _field WHERE CURDATE() IS NOT NULL | INSERT INTO _table ( _field ) VALUE ( CURDATE() ) | SELECT MIN( _field_key ) FROM _table WHERE ( _field_indexed BETWEEN _datetime AND _datetime AND _field_indexed IN ( _datetime , _datetime , _datetime , _datetime ) ) AND ( _field_indexed IN ( _timestamp , _datetime , '0000-00-00 00:00:00' ) OR _field_indexed IN ( _timestamp , _datetime , _datetime , _timestamp ) ) AND ( _field_indexed BETWEEN _datetime AND _datetime AND ( _field_indexed <> '0000-00-00 00:00:00' ) ) AND ( _field_indexed IS NULL OR _field_indexed BETWEEN _timestamp AND '0000-00-00 00:00:00' ) AND ( _field_indexed IS NOT NULL AND _field_indexed BETWEEN _timestamp AND _timestamp ) | SELECT * FROM _table FORCE KEY ( PRIMARY , _field_indexed , _field_indexed , _field_indexed , _field_indexed ) WHERE ( ( _field_indexed = _timestamp ) AND _field_indexed IS NULL ) AND ( _field_indexed BETWEEN _datetime AND '0000-00-00 00:00:00' AND _field_indexed IN ( _timestamp , _datetime , '0000-00-00 00:00:00' ) ) AND ( _field_indexed BETWEEN '0000-00-00 00:00:00' AND _datetime AND _field_indexed BETWEEN _timestamp AND _datetime ) AND ( ( _field_indexed < _datetime ) AND _field_indexed IS NULL ) AND ( _field_indexed IS NULL AND _field_indexed IN ( _datetime , _timestamp , _datetime ) ) ORDER BY _field_indexed , `pk` /* */ | SELECT * FROM _table FORCE KEY ( PRIMARY , _field_indexed , _field_indexed , _field_indexed , _field_indexed ) WHERE ( _field_indexed BETWEEN _datetime AND _timestamp AND _field_indexed IS NULL ) AND ( _field_indexed IN ( _timestamp , _datetime , _datetime , _datetime , _timestamp , _datetime , '0000-00-00 00:00:00' , _datetime , _timestamp , _datetime , _datetime ) OR NOT ( _field_indexed = '0000-00-00 00:00:00' ) ) AND ( _field_indexed BETWEEN '0000-00-00 00:00:00' AND _timestamp AND _field_indexed IN ( _timestamp , _datetime , '0000-00-00 00:00:00' , _datetime ) ) AND ( ( _field_indexed = _datetime ) AND _field_indexed IN ( _datetime , '0000-00-00 00:00:00' , _datetime ) ) /* */ | SELECT * FROM _table FORCE KEY ( PRIMARY , _field_indexed , _field_indexed , _field_indexed , _field_indexed ) WHERE ( _field_indexed BETWEEN _timestamp AND '0000-00-00 00:00:00' AND _field_indexed BETWEEN _datetime AND _datetime ) AND ( _field_indexed BETWEEN _timestamp AND _timestamp AND _field_indexed IS NOT NULL ) /* */ | SELECT DISTINCT * FROM _table WHERE ( ( _field_indexed <= _datetime ) OR NOT ( _field_indexed = _datetime ) ) AND ( ( _field_indexed IN ( _datetime , _datetime , _datetime ) AND _field_indexed IN ( '0000-00-00 00:00:00' , '0000-00-00 00:00:00' , _datetime , _timestamp , _datetime , _datetime , '0000-00-00 00:00:00' ) ) AND ( _field_indexed IN ( _datetime , _datetime , '0000-00-00 00:00:00' ) AND _field_indexed BETWEEN _timestamp AND _datetime ) ) AND ( _field_indexed IS NULL OR NOT ( _field_indexed = _datetime ) ) OR ( _field_indexed BETWEEN '0000-00-00 00:00:00' AND '0000-00-00 00:00:00' AND _field_indexed IS NULL ) AND ( _field_indexed IN ( '0000-00-00 00:00:00' , _datetime , _timestamp ) AND _field_indexed IS NULL ) /* */ | SELECT MAX( _field_key ) FROM _table FORCE KEY ( PRIMARY , _field_indexed , _field_indexed , _field_indexed , _field_indexed ) WHERE ( _field_indexed IS NOT NULL AND _field_indexed IN ( '0000-00-00 00:00:00' , _datetime , _datetime , _datetime , _datetime , _timestamp , '0000-00-00 00:00:00' , _datetime ) ) OR ( _field_indexed BETWEEN _datetime AND '0000-00-00 00:00:00' AND _field_indexed IN ( '0000-00-00 00:00:00' , _datetime , _datetime ) ) AND ( _field_indexed BETWEEN _datetime AND '0000-00-00 00:00:00' AND _field_indexed BETWEEN _datetime AND _timestamp ) | SELECT MIN( _field_key ) FROM _table WHERE ( _field_indexed IS NULL AND _field_indexed IS NOT NULL ) AND ( ( ( _field_indexed = _datetime ) OR ( _field_indexed <= _datetime ) ) AND ( ( ( _field_indexed >= '0000-00-00 00:00:00' ) AND _field_indexed BETWEEN _datetime AND _datetime ) OR ( _field_indexed IN ( _datetime , _datetime , _timestamp , _datetime ) AND _field_indexed IS NULL ) ) ) AND ( _field_indexed IS NULL AND _field_indexed IS NULL ) OR ( _field_indexed IS NULL OR ( _field_indexed = _datetime ) ) AND ( NOT ( _field_indexed <> _datetime ) AND _field_indexed IS NULL ) | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `pk` IN (10) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ | SELECT X . _field_key FROM _table AS X WHERE X . _field_key < _digit LIMIT 5 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_10_key` IN (_char) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_key` IN (_digit) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_int_not_null` = _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ | CREATE VIEW v2 AS SELECT * FROM t4 | CREATE TRIGGER letter AFTER INSERT ON t7 FOR EACH ROW SET @trg=100 | CREATE PROCEDURE db1.p3 () SET @pro=10 | CREATE TABLE IF NOT EXISTS t10 (c4 TIME NULL, c7 BLOB NOT NULL, c7 BLOB NULL) ENGINE = Myisam | CREATE VIEW v2 AS SELECT * FROM t1 | CREATE FUNCTION f9 () RETURNS INT RETURN (SELECT COUNT(*) FROM t4) | CREATE EVENT letter ON SCHEDULE EVERY digit SECOND ON COMPLETION PRESERVE DO SET @ev=100 | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_char_10_not_null_key` = _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `col_int_key` IN (_digit, _tinyint_unsigned) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `col_int_not_null_key` != _tinyint_unsigned ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` = _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN 4 AND 7 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . _field_key IN ( _digit , _digit , _tinyint_unsigned , _int_unsigned , _int_unsigned ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` IN (2) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_255_not_null` IN (_char) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint` BETWEEN 1 AND 5 LIMIT 6 /*Generated by THREAD_ID _thread_id*/ | SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _digit , _varchar(1) , _tinyint_unsigned , _tinyint_unsigned , _varchar(1) ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `pk` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 5 WHERE `col_bigint_key` BETWEEN 1 AND _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255` >= _quid ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_10_not_null_key` = _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 8 WHERE `col_char_10_key` IN (_char) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key < _tinyint_unsigned LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255` = _char ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` IN (_digit) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255_not_null_key` != _quid ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 8 WHERE `col_char_255_not_null` IN (_char) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 3 WHERE `col_char_255_not_null` IN (_quid) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` IN (6, _digit) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 8 WHERE int_field BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` ) VALUES ( _tinyint_unsigned , _smallint_unsigned ) | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` ) VALUES ( _tinyint_unsigned , _digit ) | INSERT IGNORE INTO oqgraph1 ( `origid` , `destid` , `weight` ) VALUES ( _smallint_unsigned , _smallint_unsigned , _tinyint_unsigned ) , ( _digit , _smallint_unsigned , _tinyint_unsigned ) | SELECT * FROM oqgraph2 | SELECT * FROM oqgraph1 WHERE latch = 1 AND origid = _tinyint_unsigned | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` , `weight` ) VALUES ( _smallint_unsigned , _digit , _tinyint_unsigned ) , ( _digit , _tinyint_unsigned , _digit ) | INSERT IGNORE INTO oqgraph1 ( `origid` , `destid` ) VALUES ( _smallint_unsigned , _smallint_unsigned ) | SET SQL_MODE='ANSI_QUOTES' | SET GLOBAL BINLOG_FORMAT = MIXED | SET TIME_ZONE='Europe/Moscow' | SET TIME_ZONE='Japan' | SET GLOBAL QUERY_CACHE_SIZE=4198490 | SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ | SET GLOBAL KEY_BUFFER_SIZE=400000 | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE ( ( ( (NOT ( (NOT { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _datetime) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <> _char(2)) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _digit) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field = _digit) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field > { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <= _char(2)) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE ( (NOT { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field != _datetime OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field != _datetime) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <= { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _digit IS NULL OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _char(2)) ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE ( { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _char(2) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <= { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _digit IS NULL ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field , { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field LIMIT _digit | SHOW ENGINES | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE ( ( ( ( { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field = { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field > { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field > _datetime) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field != _digit) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field != _datetime IS NOT NULL LIMIT _digit | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','INFORMATION_SCHEMA','test']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } WHERE ( { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _char(2) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <= { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ( ( ({ my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field <> _digit IS NULL OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _char(2)) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _char(2)) AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _char(2)) LIMIT _digit | CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_n = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $normal_piece ; $view_table_name = $view_table_name_n ; $table_name = $view_table_name } { $view_table_item_n = $database_name . " . " . $view_table_name_n ; $view_table_item = $view_table_item_n ; return undef } AS SELECT HIGH_PRIORITY { $table_field_list = "`pk` , `col_int` , `col_int_key` "} FROM { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $part_table_name_n = $table_prefix . $part_piece . $prng->int(1,$namespace_width) . $normal_piece ; $part_table_name = $part_table_name_n ; $table_name = $part_table_name } { $part_table_item_n = $database_name . " . " . $part_table_name_n ; $part_table_item = $part_table_item_n ; return undef } AS A WHERE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $function_name_s = $function_prefix . $prng->int(1,$namespace_width) . $sequence_piece ; $function_name = $function_name_s } { $function_item_s = $database_name_s . " . " . $function_name_s ; $function_item = $function_item_s ; return undef } () = _digit AND `pk` = _digit | /* { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $merge_table_name_n = $table_prefix . $merge_piece . $prng->int(1,$namespace_width) . $normal_piece ; $merge_table_name = $merge_table_name_n ; $table_name = $merge_table_name } { $merge_table_item_n = $database_name . " . " . $merge_table_name_n ; $merge_table_item = $merge_table_item_n ; return undef } { $mt = $merge_table_item_n ; return undef } consists of ( { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $base_table_name_n = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $normal_piece ; $base_table_name = $base_table_name_n ; $table_name = $base_table_name } { $base_table_item_n = $database_name . " . " . $base_table_name_n ; $base_table_item = $base_table_item_n ; return undef } { $mp1 = $base_table_item_n ; return undef } , { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $base_table_name_n = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $normal_piece ; $base_table_name = $base_table_name_n ; $table_name = $base_table_name } { $base_table_item_n = $database_name . " . " . $base_table_name_n ; $base_table_item = $base_table_item_n ; return undef } { $mp2 = $base_table_item_n ; return undef } ) based on { $template_table_item = "test.table0_int_autoinc" } */ CREATE TABLE IF NOT EXISTS $mp1 LIKE $template_table_item ; ALTER TABLE $mp1 ENGINE = MyISAM ; INSERT INTO $mp1 SELECT * FROM $template_table_item ; CREATE TABLE IF NOT EXISTS $mp2 LIKE $template_table_item ; ALTER TABLE $mp2 ENGINE = MyISAM ; INSERT INTO $mp2 SELECT * FROM $template_table_item ; CREATE TABLE IF NOT EXISTS $mt LIKE $template_table_item ; ALTER TABLE $mt ENGINE = MERGE UNION ( $mp1 , $mp2 ); COMMIT | ALTER TABLE { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $base_table_name_n = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $normal_piece ; $base_table_name = $base_table_name_n ; $table_name = $base_table_name } { $base_table_item_n = $database_name . " . " . $base_table_name_n ; $base_table_item = $base_table_item_n ; return undef } COMMENT = 'UPDATED NOW()' | HANDLER handler_a READ `PRIMARY` LAST WHERE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $function_name_s = $function_prefix . $prng->int(1,$namespace_width) . $sequence_piece ; $function_name = $function_name_s } { $function_item_s = $database_name_s . " . " . $function_name_s ; $function_item = $function_item_s ; return undef } () = _digit AND `pk` = _digit | UPDATE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } SET `col_int_key` = _digit WHERE SLEEP( 0.5 * { $rand_val = $prng->int(0,100) / 100 } * $life_time_unit ) = 0 LIMIT 1 | DELETE A , B FROM { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } AS A NATURAL JOIN { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $temp_table_name_n = $table_prefix . $temp_piece . $prng->int(1,$namespace_width) . $normal_piece ; $temp_table_name = $temp_table_name_n ; $table_name = $temp_table_name } { $temp_table_item_n = $database_name . " . " . $temp_table_name_n ; $temp_table_item = $temp_table_item_n ; return undef } B WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $merge_table_name_n = $table_prefix . $merge_piece . $prng->int(1,$namespace_width) . $normal_piece ; $merge_table_name = $merge_table_name_n ; $table_name = $merge_table_name } { $merge_table_item_n = $database_name . " . " . $merge_table_name_n ; $merge_table_item = $merge_table_item_n ; return undef } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_int_signed` = _digit[invariant] WHERE ( _table[invariant] . `col_int_signed` IN ( _digit, _digit ) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } DELETE FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] AND ( ( ( NOT ( _table[invariant] . `col_int_signed` != _digit ) OR _table[invariant] . `col_int_signed_key` != _digit ) OR _table[invariant] . `col_int_signed_key` in (_digit, _digit, _digit) ) AND _table[invariant] . `col_int_signed_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + _digit ) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } DELETE FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] AND ( _table[invariant] . `col_int_signed_key` in (_digit, _digit) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } DELETE FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] AND ( _table[invariant] . `col_varchar_5_latin1` > _char ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_varchar_512_utf8` = _char[invariant] WHERE NOT ( _table[invariant] . `col_int_signed` BETWEEN _digit[invariant] AND ( _digit[invariant] + _digit ) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_varchar_512_utf8` = _char[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_int_signed` = _digit[invariant] WHERE ( _table[invariant] . `col_varchar_256_latin1` > _char ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_int_signed` = _digit[invariant] WHERE ( _table[invariant] . `col_int_signed` NOT in (_digit, _digit, _digit, _digit, _digit) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | SHOW GLOBAL STATUS | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW TEMPORARY TABLES | SHOW TABLES | SHOW PROCESSLIST | SHOW PROCESSLIST | DELETE FROM _table WHERE _field LIKE CONCAT( LEFT( _varchar(255) , _digit ) , '%' ) LIMIT 1 | REPLACE INTO _table ( _field , _field ) VALUES ( _varchar(255) , _varchar(255) ) | UPDATE _table SET _field = digit WHERE _field BETWEEN _varchar(1) AND _varchar(255) ORDER BY _field , _field | UPDATE _table SET _field = digit WHERE _field <> _varchar(1) ORDER BY _field , _field | UPDATE _table SET _field = digit WHERE _field BETWEEN _varchar(255) AND _varchar(1) ORDER BY _field , _field | REPLACE INTO _table ( _field , _field ) VALUES ( _varchar(255) , _varchar(1) ) | INSERT INTO _table ( _field , _field ) VALUES ( _varchar(1) , _varchar(1) ) | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW PROCESSLIST | SHOW PROCESSLIST | CALL { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } . { $procedure_name_n = $procedure_prefix . $prng->int(1,$namespace_width) . $normal_piece ; $procedure_name = $procedure_name_n } { $procedure_item_n = $database_name . " . " . $procedure_name_n ; $procedure_item = $procedure_item_n ; return undef } | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $temp_table_name_n = $table_prefix . $temp_piece . $prng->int(1,$namespace_width) . $normal_piece ; $temp_table_name = $temp_table_name_n ; $table_name = $temp_table_name } { $temp_table_item_n = $database_name . " . " . $temp_table_name_n ; $temp_table_item = $temp_table_item_n ; return undef } | UNLOCK TABLES | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $base_table_name_s = $table_prefix . $base_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $base_table_name = $base_table_name_s ; $table_name = $base_table_name } { $base_table_item_s = $database_name_s . " . " . $base_table_name_s ; $base_table_item = $base_table_item_s ; return undef } | FLUSH TABLE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $part_table_name_s = $table_prefix . $part_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $part_table_name = $part_table_name_s ; $table_name = $part_table_name } { $part_table_item_s = $database_name_s . " . " . $part_table_name_s ; $part_table_item = $part_table_item_s ; return undef } | START TRANSACTION | LOCK TABLES { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $view_table_name_s = $table_prefix . $view_piece . $prng->int(1,$namespace_width) . $sequence_piece ; $view_table_name = $view_table_name_s ; $table_name = $view_table_name } { $view_table_item_s = $database_name_s . " . " . $view_table_name_s ; $view_table_item = $view_table_item_s ; return undef } AS _letter IN EXCLUSIVE MODE NOWAIT | START TRANSACTION ; REPLACE INTO _table ( `pk` ) VALUES ( 3 ) ; ROLLBACK ; COMMIT | START TRANSACTION ; DELETE FROM _table WHERE `pk` = _tinyint_unsigned AND `pk` > 10 ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; REPLACE INTO _table ( `pk` ) VALUES ( 1 ) ; ROLLBACK ; SAVEPOINT A | START TRANSACTION ; SET @var = 1 ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` >= @var AND `pk` <= @var + 1 ; COMMIT | START TRANSACTION ; INSERT INTO _table ( `pk` ) VALUES ( NULL ) ; ROLLBACK ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; INSERT INTO _table[invariant] ( `pk` , `col_int_key` , `col_int` ) VALUES ( NULL , 50 , 60 ) ; DELETE FROM _table[invariant] WHERE `pk` = @@LAST_INSERT_ID ; ROLLBACK | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` = 6 ; COMMIT | SELECT _field FROM _table WHERE _field < digit LIMIT _digit | DELETE FROM _table WHERE _field < digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | INSERT INTO _table ( _field ) VALUES ( _digit ) | INSERT INTO _table ( _field ) VALUES ( _digit ) | INSERT INTO _table ( _field ) VALUES ( _digit ) | SELECT _field FROM _table WHERE _field = _digit LIMIT _digit | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int` IN (9) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING (({ "field".$prng->int(1,$fields) } > 3 AND { "field".$prng->int(1,$fields) } < 7) OR { "field".$prng->int(1,$fields) } <> 1) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` > 2 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ((((({ "field".$prng->int(1,$fields) } != 9 OR { "field".$prng->int(1,$fields) } < 7) AND { "field".$prng->int(1,$fields) } = 3) AND { "field".$prng->int(1,$fields) } < 8) AND { "field".$prng->int(1,$fields) } < 3) AND { "field".$prng->int(1,$fields) } <= 1) { $stack->pop(undef) } | SELECT * FROM `data_dictionary` . INNODB_CMPMEM | SELECT * FROM `data_dictionary` . INNODB_CMPMEM_RESET | SHOW PROCESSLIST | SELECT * FROM `data_dictionary` . INNODB_STATUS | SHOW PROCESSLIST | /*!50400 SET GLOBAL c2.key_buffer_size = _smallint_unsigned */ | /*!50400 SET GLOBAL c3.key_cache_block_size = 1024 */ | REPLACE INTO d PARTITION (p65) ( `col_int_nokey`, `col_int_key` ) VALUES ( _digit , _digit ) , ( _digit , _digit ) | /*!50400 ALTER TABLE a ORDER BY `col_int_nokey` */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM l PARTITION (p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24, p25,p26,p27,p28,p29,p30,p31,p32,p33,p34,p35,p36,p37,p38,p39,p40,p41,p42,p43,p44,p45,p46, p47,p48,p49,p50,p51,p52,p53,p54,p55,p56,p57,p58,p59,p60,p61,p62,p63,p64,p65,p66,p67,p68, p69,p70,p71,p72,p73,p74,p75,p76,p77,p78,p79,p80,p81,p82,p83,p84,p85,p86,p87,p88,p89,p90, p91,p92,p93,p94,p95,p96) WHERE `col_int_nokey` = _digit | /*!50400 ALTER TABLE b ADD PARTITION (PARTITION p98 VALUES LESS THAN MAXVALUE) */ | CREATE TABLE IF NOT EXISTS a ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MYISAM SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM o | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } LEFT JOIN ( ( C AS { "alias".++$tables } STRAIGHT_JOIN view_BB AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `col_int_key` ) ) ) ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( 8, 8 ) IN ( SELECT { "SQ".$subquery_idx."_alias2" ; } . `pk` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_int_nokey` AS { "SQ".$subquery_idx."_field2" } FROM BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) AND ( alias1 . `col_varchar_key` != _char[invariant] OR alias1 . `col_varchar_key` >= _char[invariant] ) OR { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <= _char { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } <= _char(2) OR { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_varchar_key` , { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) IN ( SELECT { "SQ".$subquery_idx."_alias2" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "SQ".$subquery_idx."_field2" } FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_varchar_nokey` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_varchar_key` ) ) )) ORDER BY alias1 . _field_indexed DESC , alias1 . _field_indexed ASC, { join(', ', map { "field".$_ } (1..$fields) ) } /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( 3, 8 ) IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_int_nokey` AS { "SQ".$subquery_idx."_field1" } , COUNT( { "SQ".$subquery_idx."_alias2" ; } . `col_int_nokey` ) AS { "SQ".$subquery_idx."_field2" } FROM ( A AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_int_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_int_nokey` ) ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` IN ( SELECT 5 UNION SELECT 8 ) ) ) OR ( alias1 . `col_varchar_key` = _char AND alias1 . `pk` = _tinyint_unsigned ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ASC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` ASC /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( DISTINCT { "SQ".$subquery_idx."_alias2" ; } . `col_varchar_nokey` ) AS { "SQ".$subquery_idx."_field1" } FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } INNER JOIN ( ( CC AS { "alias".++$tables } INNER JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_nokey` ) ) ) ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT _char FROM DUAL ) IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != _char(2) /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MIN( DISTINCT alias1 . `col_varchar_key` ) AS { "field".++$fields } FROM ( C AS { "alias".++$tables } INNER JOIN ( ( C AS { "alias".++$tables } INNER JOIN A AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `col_int_key` ) ) ) ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `pk` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( _char, _char ) IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias2" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field2" } FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } STRAIGHT_JOIN CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_int_key` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_int_key` ) ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY alias1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 OFFSET 6 /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MIN( alias1 . `col_varchar_key` ) AS { "field".++$fields }, MAX( alias2 . `col_varchar_key` ) AS { "field".++$fields } FROM ( CC AS { "alias".++$tables } STRAIGHT_JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_nokey` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_int_key` AS { "SQ".$subquery_idx."_field1" } FROM view_AA AS { "SQ".$subquery_idx."_alias".++$subquery_tables } WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_key` < { "alias".$prng->int(1,$tables) } . `col_int_key` AND { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_key` != { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` ) ) AND alias1 . `pk` = _tinyint_unsigned AND ( alias1 . `col_int_nokey` IS NULL AND { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` < { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) ORDER BY alias1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT _char FROM DUAL ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } STRAIGHT_JOIN BB AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_int_key` , { "alias".$prng->int(1,$tables) } . `col_int_nokey` ) IN ( SELECT _tinyint_unsigned , 9 UNION SELECT 7, _tinyint_unsigned ) ) AND alias1 . `pk` > _tinyint_unsigned[invariant] AND alias1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) AND ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <= _char AND { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <> _char ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } < _char(1) ORDER BY CONCAT ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) , { "field".$prng->int(1,$fields) } , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( B AS { "alias".++$tables } STRAIGHT_JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `pk` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` , { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field2" } FROM C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) HAVING ({ "field".$prng->int(1,$fields) } > _char(1) AND { "field".$prng->int(1,$fields) } <> _char(1)) ORDER BY CONCAT ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_key` ), { join(', ', map { "field".$_ } (1..$fields) ) } /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } LEFT OUTER JOIN CC AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` > { "alias".($tables - 1) } . `col_int_key` ) ) WHERE ( alias1 . `col_varchar_key` != _char[invariant] OR alias1 . `pk` NOT IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } > _char(2) OR { "field".$prng->int(1,$fields) } < _char(2)) ORDER BY { "field".$prng->int(1,$fields) } ASC , alias1 . _field_indexed DESC , alias1 . _field_indexed ASC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias2 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } , ( B AS { "alias".++$tables } , CC AS { "alias".++$tables } ) ) WHERE { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` >= { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` HAVING ((({ "field".$prng->int(1,$fields) } > _char(2) OR { "field".$prng->int(1,$fields) } > _tinyint_unsigned) OR { "field".$prng->int(1,$fields) } < 'USA') AND { "field".$prng->int(1,$fields) } >= _char(2)) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } , alias1 . _field_indexed ASC LIMIT 1 OFFSET 6 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( alias1 . `col_varchar_nokey` , alias2 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } , ( CC AS { "alias".++$tables } , C AS { "alias".++$tables } ) ) WHERE ( alias1 . `pk` > _tinyint_unsigned[invariant] AND alias1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR ( alias1 . `col_varchar_key` IN ('USA') OR ( alias1 . `col_varchar_key` IN (_char) OR ( alias1 . `col_int_key` > _tinyint_unsigned[invariant] AND alias1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR ( alias1 . `col_varchar_key` = _char[invariant] OR ( alias1 . `pk` IN (_tinyint_unsigned) OR alias1 . `col_int_key` > _tinyint_unsigned[invariant] AND alias1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) ) ) ) ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } , alias1 . _field_indexed LIMIT 2 OFFSET 9 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT DISTINCT alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } LEFT JOIN ( ( C AS { "alias".++$tables } LEFT OUTER JOIN B AS { "alias".++$tables } ON (( { "alias".$tables } . `pk` = { "alias".($tables - 1) } . `pk` ) AND ( { "alias".$tables } . `col_int_key` >= { "alias".($tables - 1) } . `col_int_nokey` ) ) ) ) ON (( { "alias".$tables } .`pk` <> { "alias".($tables - 1) } . `col_int_nokey` ) AND ({ "alias".$tables } .`pk` = { "alias".($tables - 1) } . `col_int_key` ) ) ) WHERE ( alias1 . `col_varchar_key` IN ('USA') OR alias1 . `col_int_key` > _tinyint_unsigned[invariant] AND alias1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } <= 4 ORDER BY alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } , C AS { "alias".++$tables } ) WHERE ( alias1 . `pk` IN (_tinyint_unsigned, _tinyint_unsigned) OR ( alias1 . `pk` NOT BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR ( alias1 . `col_varchar_key` <= _char[invariant] OR ( alias1 . `pk` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR alias1 . `col_int_key` > _tinyint_unsigned[invariant] AND alias1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) ) ) ) OR alias1 . _field_indexed = _char(2) AND ( alias1 . `col_varchar_key` LIKE '%a%' OR alias1.`col_varchar_nokey` LIKE '%b%') { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != _char(2) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT DISTINCT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , COUNT( DISTINCT alias1 . `col_int_key` ) AS { "field".++$fields } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } , ( CC AS { "alias".++$tables } , C AS { "alias".++$tables } ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) }, { "field".$prng->int(1,$fields) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT COUNT( alias1 . `col_varchar_nokey` ) AS { "field".++$fields } FROM ( CC AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE alias1 . `col_int_key` = _tinyint_unsigned HAVING { "field".$prng->int(1,$fields) } != _char(2) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } , alias1 . _field_indexed DESC | UPDATE _table SET `col_varchar_nokey` = _charset ' letter ' WHERE `col_varchar_nokey` >= _charset ' letter ' | DELETE FROM _table WHERE `col_varchar_nokey` <> _charset ' letter ' | INSERT INTO _table ( `col_varchar_key` ) VALUES ( _charset ' letter ' ) | INSERT INTO _table ( `col_varchar_key` ) VALUES ( _charset ' letter ' ) | INSERT INTO _table ( `col_varchar_nokey` ) VALUES ( _charset ' letter ' ) | DELETE FROM _table WHERE `col_varchar_nokey` > _charset ' letter ' | DELETE FROM _table WHERE `col_varchar_key` <> _charset ' letter ' | DELETE FROM X WHERE f2 = _digit ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | DELETE FROM X WHERE f3 != f3 ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | UPDATE X SET f3 = f4 WHERE v3 = f4 AND v1 <=> f4 | DELETE FROM X WHERE v1 <=> f3 ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | REPLACE INTO X ( f1 , f2 , f3 , f4 ) SELECT f3 , v4 , f1 , v2 FROM X WHERE v4 <> f4 ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | CREATE TABLE IF NOT EXISTS X ( f1 DOUBLE , f2 DOUBLE DEFAULT '0', f3 DOUBLE NOT NULL DEFAULT '0', f4 DOUBLE DEFAULT '0', v1 DOUBLE AS ( ( f1 + f1 ) ) /*executor1 PERSISTENT */ /*executor2 VIRTUAL */ , v2 DOUBLE AS ( ( ( f3 ) OR ( f1 ) ) ) /*executor1 PERSISTENT */ /*executor2 VIRTUAL */ , v3 DOUBLE AS ( ( NOT ( ( ( ( ( f4 ) OR ( ( ( NULLIF( ( IFNULL( f4 , ( ( ( f4 ) OR ( ( NOT ( f4 ) ) ) ) IS UNKNOWN ) ) ) , f2 ) ) NOT IN ( ( COT( ( NULLIF( ( LEAST( f1, ( ROUND( f3 , ( ( ( f2 IS NOT UNKNOWN ) ) OR ( f2 ) ) ) ) , ( GREATEST( f3 , f1 , ( ( ( IFNULL( f3 , f1 ) ) >= ( IFNULL( f1 , ( NOT ( f1 ) ) ) ) ) * f1 ) ) ) ) ) , f2 ) ) ) ) , f3 ) ) ) ) DIV ( ( - f2 ) ) ) != f4 ) ) ) ) /*executor1 PERSISTENT */ /*executor2 VIRTUAL */ , v4 DOUBLE AS ( ( ACOS( ( ( f4 ) AND ( f4 ) ) ) ) ) /*executor1 PERSISTENT */ /*executor2 VIRTUAL */ /*executor1 , KEY (v3), KEY (v4) */ ) | DELETE FROM X WHERE f3 <> _digit ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `col_int_key` != { "table".$prng->int(1,$tables) } . `pk` OR { "table".$prng->int(1,$tables) } . `pk` != 5 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } = 7 OR { "field".$prng->int(1,$fields) } = 6) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int` BETWEEN _digit[invariant] AND ( _digit[invariant] + 8 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } >= 1 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT OUTER JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `pk` > 2 AND { "table".$prng->int(1,$tables) } . `col_int` >= 7 ) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT STRAIGHT_JOIN table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table3 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `col_int` <= { "table".$prng->int(1,$tables) } . `pk` HAVING { "field".$prng->int(1,$fields) } > 3 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT COUNT( table2 . `pk` ) AS {"field".++$fields } FROM { $stack->push() } { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_1024_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE { "table".$prng->int(1,$tables) } . `pk` IN (1, 2, 4, _tinyint_unsigned) HAVING { "field".$prng->int(1,$fields) } <> 6 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 OFFSET 8 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT STRAIGHT_JOIN table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_varchar_10_key` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( { "table".$prng->int(1,$tables) } . `pk` BETWEEN _digit[invariant] AND ( _digit[invariant] + 2 ) AND { "table".$prng->int(1,$tables) } . `col_int` IS NULL ) ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } { $stack->set("left",$stack->get("result")); } LEFT JOIN { $stack->push(); my $x = $prng->arrayElement($executors->[0]->tables())." AS table".++$tables; my @s=($x); $stack->pop(@s); $x } ON { my $left = $stack->get("left"); my %s=map{$_=>1} @$left; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `col_int_key` = { my $right = $stack->get("result"); my %s=map{$_=>1} @$right; my @r=(keys %s); my $table_string = $prng->arrayElement(@r); my @table_array = split(/AS/, $table_string); $table_array[1] } . `pk` { my $left = $stack->get("left"); my $right = $stack->get("result"); my @n = (); push(@n,@$right); push(@n,@$left); $stack->pop(@n); return undef } WHERE ( ( { "table".$prng->int(1,$tables) } . `pk` IS NULL OR { "table".$prng->int(1,$tables) } . `col_int_key` <= 7 ) OR { "table".$prng->int(1,$tables) } . `col_int_key` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 7 ) ) HAVING ({ "field".$prng->int(1,$fields) } < 9 OR { "field".$prng->int(1,$fields) } = 4) { $stack->pop(undef) } | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'STATEMENT' ; UPDATE _table SET _field = RAND() WHERE _field = NULL ORDER BY RAND () ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; DELETE FROM _table WHERE _field > NULL LIMIT 1 ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; DELETE FROM _table WHERE _field > _digit LIMIT 1 ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; DELETE FROM _table WHERE _field = _digit LIMIT 1 ; SET BINLOG_FORMAT = @binlog_format_saved | SAVEPOINT A | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; DELETE FROM _table WHERE _field < _english LIMIT 1 ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; INSERT INTO _table ( _field ) VALUES ( _digit ) ; SET BINLOG_FORMAT = @binlog_format_saved | DELETE FROM _table WHERE _field < digit LIMIT 1 | DELETE FROM _table WHERE _field = _digit LIMIT 1 | DELETE FROM _table WHERE _field = _digit LIMIT 1 | DELETE FROM _table WHERE _field < digit LIMIT 1 | UPDATE _table SET _field = digit WHERE _field = _digit LIMIT _digit | DELETE FROM _table WHERE _field < digit LIMIT 1 | INSERT INTO _table ( _field ) SELECT _field FROM _table LIMIT _digit | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 | HANDLER alias3 CLOSE ; HANDLER _table OPEN AS alias3 ; DEALLOCATE PREPARE h_rp ; PREPARE h_rp FROM " HANDLER alias1 READ _field_key > ( ? ) WHERE _field <= _digit " ; SET @val = _varchar(1) ; EXECUTE h_rp USING @val ; HANDLER alias1 READ _field_key = ( _tinyint_unsigned ) WHERE _field > _digit | HANDLER alias1 CLOSE ; HANDLER _table OPEN AS alias1 | HANDLER alias4 CLOSE ; HANDLER _table OPEN AS alias4 ; DEALLOCATE PREPARE h_rp ; PREPARE h_rp FROM " HANDLER alias4 READ _field_key >= ( ? ) WHERE _field = _tinyint_unsigned " ; SET @val = _varchar(1) ; EXECUTE h_rp USING @val ; DEALLOCATE PREPARE h_r ; PREPARE h_r FROM " HANDLER alias2 READ `PRIMARY` FIRST WHERE _field <= _digit " ; EXECUTE h_r | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 ; DEALLOCATE PREPARE h_rp ; PREPARE h_rp FROM " HANDLER alias3 READ _field_key >= ( ? ) WHERE _field >= _tinyint_unsigned " ; SET @val = _digit ; EXECUTE h_rp USING @val ; HANDLER alias4 READ `PRIMARY` > ( _varchar(1) ) WHERE _field >= _varchar(1) | DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias3 READ _field_key NEXT WHERE _field <= ? " ; SET @val = _varchar(1) ; EXECUTE h_rp2 USING @val | DEALLOCATE PREPARE h_rp ; PREPARE h_rp FROM " HANDLER alias1 READ `PRIMARY` >= ( ? ) " ; SET @val = _varchar(1) ; EXECUTE h_rp USING @val | REPLACE INTO _table ( _field_no_pk ) VALUES ( NULL ) | UPDATE LOW_PRIORITY _table t1, _table t2 SET t1._field_no_pk = _letter WHERE t1._field >= NULL | INSERT DELAYED INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _datetime(6) , _mediumint , _time(6) ) | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _datetime(6) , _digit , _time(6) ) | INSERT LOW_PRIORITY INTO _table ( _field , _field , _field ) VALUES ( _letter , _year , _digit ) | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _date(6) , _mediumint , _bigint ) | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( 1 , NULL , _timestamp(6) ) | UPDATE _table SET _field = NULL, _field = _char(255) WHERE NOT EXISTS (SELECT * FROM _table WHERE LOG(_tinyint_unsigned) > _field OR ((_field <> NULL) AND (_field = _data)) GROUP BY _field) OR _field >= _digit OR ((_field < _char(255)) AND (_field IS NOT NULL)) | INSERT INTO _table ( _field ) VALUES ( _data ), ( _char(255) ) , ( _data ) , ( (_field + _field[invariant]) ) , ( _digit ) | INSERT IGNORE INTO _table ( _field ) VALUES ( REPEAT(_tinyint_unsigned, _english) ) | FLUSH LOGS | UPDATE _table SET _field = NULL, _field = (_field + _field[invariant]) WHERE _field <= REPEAT(_tinyint_unsigned, _english) AND (_field > _datetime) | DELETE FROM _table WHERE _field < REPEAT(_tinyint_unsigned, _english) LIMIT _tinyint_unsigned,_tinyint_unsigned | INSERT IGNORE INTO _table ( _field ) VALUES ( DATEDIFF(NOW(), _date) ) | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } FROM _table WHERE _field BETWEEN TIMESTAMP( _field ) AND _field OR _field NOT IN ( TIMESTAMP( _field , _time ) , _field ) ORDER BY _field , _field , _field | { $col = 1 ; return "" } SELECT TIMESTAMPADD( QUARTER , digit , '0000-00-00 00:00:00' ) AS { 'c'.$col++ } FROM _table WHERE _field IS NOT NULL ORDER BY _field , _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , FROM_DAYS( digit ) AS { 'c'.$col++ } FROM _table WHERE _field BETWEEN TIMESTAMP( _field ) AND _field AND SEC_TO_TIME( _digit ) IS NOT NULL AND _field NOT BETWEEN TIME( _field ) AND _field | { $col = 1 ; return "" } SELECT TIMEDIFF( '0000-00-00' , DATE ( '0000-00-00' ) ) AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , date_add_sub AS { 'c'.$col++ } FROM _table WHERE _field >= _field OR _field IS NOT NULL ORDER BY _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } FROM _table WHERE _field <= LEAST( TIMESTAMP( _date , _time ) , ADDTIME( _field , _time ) ) ORDER BY _field , _field , _field , _field , _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field BETWEEN _field AND _field AND FROM_UNIXTIME( _integer_unsigned , CONCAT_WS( '-' , '%u' , '%e' ) ) IS NOT NULL ORDER BY _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , CAST( _date AS DATE ) AS { 'c'.$col++ } FROM _table WHERE LEAST( '0000-00-00 00:00:00' , _field ) IS NOT NULL ORDER BY _field , _field , _field | START TRANSACTION ; INSERT INTO _table ( _field , _field ) VALUES ( CONNECTION_ID() , (CONNECTION_ID() * _thread_count) + _digit ) ; ROLLBACK | START TRANSACTION ; DELETE FROM _table WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; REPLACE INTO _table ( _field , _field ) VALUES ( CONNECTION_ID() , (CONNECTION_ID() * _thread_count) + (_digit * 10) ) ; COMMIT | START TRANSACTION ; REPLACE INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + (_digit * 10) , (CONNECTION_ID() * _thread_count) + (_digit * 10) ) ; COMMIT | START TRANSACTION ; DELETE FROM _table WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + _digit WHERE `pk` = CONNECTION_ID() ; UPDATE _table SET _field = CONNECTION_ID() WHERE `pk` = CONNECTION_ID() ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + (_digit * 10) WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + (_digit * 10) ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + _digit WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = CONNECTION_ID() WHERE `pk` = (CONNECTION_ID() * _thread_count) + (_digit * 10) ; ROLLBACK | SELECT ST_WITHIN( /*executor1 LINESTRINGFROMTEXT(' */ /*executor2 ST_LINEFROMTEXT(' */ LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') , /*executor1 MULTIPOLYGONFROMTEXT(' */ /*executor2 ST_MPOLYFROMTEXT(' */ MULTIPOLYGON( ( ( 7 7 , _digit 7 , _digit _digit , 7 _digit , 7 7 ) ) ) ') ) | SELECT GeometryType( /*executor1 MULTILINESTRINGFROMTEXT(' */ /*executor2 ST_MLINEFROMTEXT(' */ MULTILINESTRING( ( 0 0 , _digit _digit , _digit _digit , 0 0 ) ) ') ) | SELECT ST_DIMENSION( /*executor1 GEOMETRYFROMTEXT(' */ /*executor2 ST_GEOMETRYFROMTEXT(' */ MULTIPOINT( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') ) | SELECT GeometryType( /*executor1 GEOMETRYFROMTEXT(' */ /*executor2 ST_GEOMETRYFROMTEXT(' */ POINT( _digit _digit ) ') ) | SELECT ST_EQUALS( ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION( LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , POLYGON( ( { $start_x = $prng->digit() ; $start_y = $prng->digit() ; "$start_x $start_y"; } , _digit _digit , _digit _digit , _digit _digit , _digit _digit , { "$start_x $start_y" } ) ) , MULTIPOLYGON( ( ( 9 9 , _digit _digit , _digit _digit , 9 9 ) ) , ( ( 2 2 , _digit 2 , _digit _digit , 2 _digit , 2 2 ) ) ) , POINT( _digit _digit ) , MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) ) , MULTIPOLYGON( ( (0 5, 3 5, 3 4, 1 4, 1 3, 3 3 , 3 0, 0 0, 0 1, 2 1 , 2 2 , 0 2, 0 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ) ') , /*executor1 GEOMETRYN( */ /*executor2 ST_GEOMETRYN( */ ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION( MULTILINESTRING( ( 7 7 , _digit 7 , _digit _digit , 7 _digit , 7 7 ) ) , LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ) ') , CAST( ST_AREA( /*executor1 MULTIPOLYGONFROMTEXT(' */ /*executor2 ST_MPOLYFROMTEXT(' */ MULTIPOLYGON( ( ( 2 2 , _digit 2 , _digit _digit , 2 _digit , 2 2 ) ) , ( ( 0 0 , _digit _digit , _digit _digit , 0 0 ) ) ) ') ) AS INTEGER ) ) ) | SELECT GeometryType( /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( (3 5, 2 4, 2 5, 3 5) ) ') ) | SELECT /*executor1 ASTEXT( */ /*executor2 ST_ASEWKT( */ /*executor1 GEOMETRYFROMTEXT(' */ /*executor2 ST_GEOMETRYFROMTEXT(' */ LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') ) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD UNIQUE INDEX idx1 ( col_bit_64_default_null , col_tinytext_default_null (25)) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD UNIQUE INDEX idx1 ( col_decimal_35_default_null , col_bit_4_default_null ) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD UNIQUE INDEX idx1 ( col_varchar_25_binary_default_null ) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD INDEX idx1 ( col_varchar_25_binary_default_null ), ADD UNIQUE INDEX idx2 ( col_tinyint_default_null ) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD PRIMARY KEY ( col_tinytext_not_null (25), col_tinytext_not_null (25)) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD PRIMARY KEY ( col_bit_4_not_null , col_bit_4_not_null ) | { $engine = $prng->arrayElement(['myisam','innodb']) ; $database = $prng->arrayElement(['test1','test2']) ; $count++ ; if ($count > 20) { $count = 1 } ; $tablename = 't1_'.$count.'_'.$engine ; return undef } DROP TABLE IF EXISTS $database . $tablename ; CREATE TABLE $database . $tablename ENGINE = $engine AS SELECT _field_list FROM _table WHERE 1 = 2; ALTER TABLE $database . $tablename ADD PRIMARY KEY ( col_varchar_25_not_null ) | DELETE FROM _table WHERE `col_char_10_not_null` < _char | DELETE FROM _table WHERE `col_char_10_not_null` >= _char | DELETE FROM _table WHERE `col_char_1024_not_null` > _char | DELETE FROM _table WHERE `col_char_10_not_null` < _char | DELETE FROM _table WHERE `col_char_10_not_null` >= _char | INSERT INTO _table ( `col_char_1024_key` ) VALUES ( _char ) | UPDATE _table SET `col_char_1024` = _char WHERE `col_char_1024_not_null_key` >= _char | DELETE FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } y PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` = _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 7 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } j PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` <> _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } t PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` <> _digit | EXPLAIN /*!50100 PARTITIONS */ SELECT `col_int_nokey` FROM e WHERE `col_int_nokey` > _digit | CREATE TABLE IF NOT EXISTS t ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MEMORY /*!50100 PARTITION BY LINEAR HASH ( `col_int_nokey` ) PARTITIONS { return $prng->int($nb_parts-9,$nb_parts) } */ SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM a | /*!50400 ALTER TABLE a ADD PARTITION (PARTITION { our $nb_part_list= $prng->int(0,$nb_parts); return "p".$nb_part_list } VALUES LESS THAN MAXVALUE) */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } c PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_key` IN (_quid, _char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` IN (_quid) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `pk` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _tinyint_unsigned WHERE `col_bigint_key` IN (1) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key != _varchar(1) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 6 WHERE `col_int_not_null_key` > _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_not_null_key` != _char ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` = 100 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE int_field BETWEEN 2 AND 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN 1 AND 8 LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_10_not_null` IN (_quid) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255_not_null` IN (_char, _quid, _char) ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 3 WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` BETWEEN 2 AND 25 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_int_not_null` = _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int` IN (_digit) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` = 25 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN 4 AND 6 LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint` BETWEEN 2 AND 8 LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 1 WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` < _digit ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255_not_null_key` IN (_quid, _char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint` IN (_varchar(1), 3, _digit, 10) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint_key` BETWEEN 3 AND 6 LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `pk` BETWEEN 1 AND 8 LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` < _char ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _int_unsigned LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _digit , _varchar(1) , _varchar(1) , _varchar(1) , _tinyint_unsigned ) LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = _varchar(1) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN 3 AND 7 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN 2 AND 6 LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _digit LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null_key` IN (_quid, _char, _char) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 100 WHERE int_field BETWEEN 2 AND 5 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE `col_char_10_not_null_key` = _char ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND 25 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_not_null_key` = 6 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255_key` IN (_char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE `col_char_255_not_null` IN (_char, _quid) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` = _digit ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255` IN (_char) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int_not_null_key` = _tinyint_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 1 WHERE `col_bigint` BETWEEN _digit AND _tinyint_unsigned ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _digit LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_10` != _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key <= _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `pk` BETWEEN 7 AND _digit ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_bigint_key` BETWEEN 7 AND 6 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_int` IN (6) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 25 WHERE `col_char_255_not_null_key` > _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X WHERE X . `col_bigint` BETWEEN 1 AND 6 LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X WHERE X . `col_int` BETWEEN 3 AND 8 LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _int_unsigned , _int_unsigned , _digit , _int_unsigned , _tinyint_unsigned ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _digit , _varchar(1) , _tinyint_unsigned , _digit , _varchar(1) ) LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 2 WHERE `col_int_not_null` BETWEEN _varchar(1) AND 100 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE `col_bigint_key` != _tinyint_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` >= _char ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key != _tinyint_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 10 WHERE `col_int_not_null` BETWEEN _digit AND 6 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_bigint_key` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SELECT DISTINCT GRANDPARENT1 . `col_bigint_key` AS G1 FROM C AS GRANDPARENT1 LEFT JOIN D AS GRANDPARENT2 ON ( GRANDPARENT2 . `col_text_key` = GRANDPARENT1 . `col_text_not_null` ) WHERE GRANDPARENT1 . `col_char_10_not_null_key` IN ( SELECT DISTINCT PARENT1 . `col_text_key` AS P1 FROM B AS PARENT1 WHERE ( PARENT1 . `col_int_not_null` , GRANDPARENT1 . `col_int_not_null` ) IN ( SELECT DISTINCT CHILD1 . `col_int_not_null` AS C1 , CHILD1 . `col_int_not_null` AS C2 FROM DD AS CHILD1 LEFT JOIN A AS CHILD2 USING ( `col_int_not_null_key` ) ORDER BY CHILD1 . `col_text_not_null_key` ) AND ( PARENT1 . `col_char_10_not_null_key` >= _varchar(1) ) ) AND GRANDPARENT1 . `col_int` <= digit HAVING G1 <> _datetime ORDER BY GRANDPARENT1 . `col_int_not_null_key` | SELECT GRANDPARENT1 . `col_char_10_not_null` AS G1 FROM BB AS GRANDPARENT1 LEFT JOIN BB AS GRANDPARENT2 USING ( `col_bigint` ) WHERE ( GRANDPARENT1 . `col_int` , GRANDPARENT1 . `col_int_key` ) IN ( SELECT PARENT1 . `pk` AS P1 , PARENT1 . `col_bigint` AS P2 FROM D AS PARENT1 LEFT JOIN CC AS PARENT2 ON ( PARENT1 . `col_char_10` >= PARENT2 . `col_char_10_key` ) WHERE ( PARENT1 . `col_char_1024` > _varchar(1) ) ) AND ( GRANDPARENT1 . `col_text_not_null` IS UNKNOWN OR NOT GRANDPARENT1 . `pk` < digit ) GROUP BY GRANDPARENT1 . `col_char_1024` | SELECT GRANDPARENT1 . `col_char_1024` AS G1 FROM CC AS GRANDPARENT1 LEFT JOIN CC AS GRANDPARENT2 USING ( `col_bigint` ) WHERE ( GRANDPARENT1 . `col_char_1024` , GRANDPARENT1 . `col_char_1024_key` ) IN ( SELECT PARENT1 . `col_char_10_not_null_key` AS P1 , PARENT1 . `col_char_1024` AS P2 FROM B AS PARENT1 LEFT JOIN BB AS PARENT2 ON ( PARENT1 . `col_bigint` < PARENT2 . `col_int_not_null` ) WHERE ( PARENT1 . `col_char_1024_key` IS NULL ) ORDER BY PARENT1 . `col_text_key` ) AND ( ( ( GRANDPARENT1 . `col_bigint` IS NULL OR GRANDPARENT1 . `col_int_not_null` IS UNKNOWN ) OR GRANDPARENT1 . `col_char_10_key` IS UNKNOWN ) OR NOT GRANDPARENT1 . `col_char_1024` IS UNKNOWN ) GROUP BY GRANDPARENT1 . `col_int` HAVING G1 = _datetime LIMIT digit | SELECT DISTINCT GRANDPARENT1 . `col_char_1024_key` AS G1 FROM BB AS GRANDPARENT1 WHERE ( GRANDPARENT1 . `pk` , GRANDPARENT1 . `col_int` ) IN ( SELECT PARENT1 . `col_int_not_null` AS P1 , PARENT1 . `col_int_not_null_key` AS P2 FROM D AS PARENT1 LEFT JOIN A AS PARENT2 USING ( `col_bigint` ) WHERE ( ( PARENT1 . `col_int_key` = GRANDPARENT1 . `col_int` ) OR ( GRANDPARENT1 . `col_char_10` = _varchar(1) ) ) ORDER BY PARENT1 . `col_int_not_null_key` ) AND ( ( ( ( GRANDPARENT1 . `col_char_10` > _varchar(1) OR GRANDPARENT1 . `col_text_not_null` <> _varchar(1) ) OR GRANDPARENT1 . `col_text` >= _varchar(1) ) AND GRANDPARENT1 . `col_int_not_null_key` > digit ) AND GRANDPARENT1 . `col_bigint_key` IS NULL ) ORDER BY GRANDPARENT1 . `col_int_not_null` LIMIT digit | SELECT GRANDPARENT1 . `col_int_key` AS G1 FROM DD AS GRANDPARENT1 LEFT JOIN C AS GRANDPARENT2 ON ( GRANDPARENT2 . `col_int` < GRANDPARENT1 . `col_int_key` ) WHERE ( GRANDPARENT1 . `col_bigint` , GRANDPARENT1 . `pk` ) IN ( SELECT PARENT1 . `pk` AS P1 , PARENT1 . `col_bigint_key` AS P2 FROM DD AS PARENT1 LEFT JOIN D AS PARENT2 ON ( PARENT1 . `col_text_key` <> PARENT2 . `col_text_not_null_key` ) WHERE PARENT1 . `col_char_10_not_null_key` IN ( SELECT CHILD1 . `col_text` AS C1 FROM A AS CHILD1 LEFT JOIN C AS CHILD2 USING ( `col_int` ) WHERE ( GRANDPARENT1 . `col_bigint_key` >= digit ) ORDER BY CHILD1 . `col_int_key` ) AND ( ( PARENT1 . `col_text` = GRANDPARENT1 . `col_char_10` ) AND ( ( ( ( ( ( GRANDPARENT1 . `col_char_10_not_null_key` >= _varchar(1) OR NOT GRANDPARENT1 . `col_char_1024_not_null` IS NULL ) OR NOT GRANDPARENT1 . `col_bigint` IS UNKNOWN ) AND GRANDPARENT1 . `col_char_1024_key` >= _varchar(1) ) AND GRANDPARENT1 . `col_char_10_not_null_key` IS UNKNOWN ) OR GRANDPARENT1 . `col_char_1024_not_null` IS NOT NULL ) OR GRANDPARENT1 . `pk` = digit ) ) ) AND GRANDPARENT1 . `col_bigint_key` >= digit GROUP BY GRANDPARENT1 . `col_char_10_not_null_key` LIMIT digit | SELECT DISTINCT GRANDPARENT1 . `col_char_10_not_null` AS G1 FROM AA AS GRANDPARENT1 WHERE GRANDPARENT1 . `col_int` IN ( SELECT DISTINCT PARENT1 . `col_int_not_null` AS P1 FROM DD AS PARENT1 LEFT JOIN BB AS PARENT2 USING ( `col_int` ) WHERE GRANDPARENT1 . `col_bigint` IN ( SELECT CHILD1 . `col_bigint_key` AS C1 FROM BB AS CHILD1 WHERE ( CHILD1 . `col_text_key` IS NULL ) ) AND ( GRANDPARENT1 . `col_bigint` >= digit ) ) AND GRANDPARENT1 . `col_int_not_null` >= digit HAVING G1 < _date ORDER BY GRANDPARENT1 . `col_char_1024_not_null_key` LIMIT digit | SELECT GRANDPARENT1 . `col_bigint_key` AS G1 FROM D AS GRANDPARENT1 LEFT JOIN C AS GRANDPARENT2 ON ( GRANDPARENT2 . `pk` = GRANDPARENT1 . `col_bigint_key` ) WHERE GRANDPARENT1 . `col_int_not_null` IN ( SELECT PARENT1 . `pk` AS P1 FROM D AS PARENT1 WHERE ( GRANDPARENT1 . `col_bigint_key` <> digit ) ) AND ( GRANDPARENT1 . `col_char_1024` IS UNKNOWN OR GRANDPARENT1 . `col_char_10_key` >= _varchar(1) ) | DELETE FROM _table WHERE `col_char_1024_not_null` >= 'c' ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_char_10` >= 'b' ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_char_10_not_null_key` <= 'y' LIMIT 7 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_int_not_null_key` BETWEEN 2 AND 5 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_char_1024_key` < 'x' ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key > _digit ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_char_1024_not_null_key` >= 'a' LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ | SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint_key` >= 4 LIMIT 8 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_key` < _digit ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 1 WHERE `col_int_not_null_key` < _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_not_null_key` >= 4 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _int_unsigned WHERE `col_char_1024_key` != _char ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_char_10` >= 'b' ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int` < 5 LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 25 WHERE `col_char_10_not_null_key` <= _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; UPDATE _table SET `col_int` = _digit WHERE `col_char_1024_key` < 'y' ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` < 'z' ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_1024_not_null` , `col_char_1024_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int_not_null` >= _digit ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SELECT X . _field_key FROM _table AS X WHERE X . `pk` BETWEEN 1 AND 5 LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_10_key` < 'y' ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; UPDATE _table SET `col_int` = _digit WHERE `col_int` < 6 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text_not_null` >= _quid ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint_key` <= 8 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE `col_bigint` > 4 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` < 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE `col_text_not_null_key` >= 'b' ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_int` <= 5 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` <= 7 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_text_not_null` > _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint_key` >= 3 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `pk` >= 2 ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` >= 'a' ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` <= 6 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint_key` = _digit ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` < _digit ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text` >= 'c' ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `pk` <= 5 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 50 WHERE _field_key < _int_unsigned ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE _field_key > _int_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key != _int_unsigned ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text` != _char ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 1 WHERE `col_char_255` > _char ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; REPLACE INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_text` <= 'y' ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_text_key` > _quid LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE `col_char_255_key` <= 'y' ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint_key` BETWEEN 3 AND 5 LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint` BETWEEN 4 AND 7 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE `col_text_not_null` >= 'a' ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int` >= 4 LIMIT 6 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `pk` < 5 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X WHERE X . `col_int_key` < _tinyint_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` >= 2 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_not_null_key` FROM _table WHERE `col_bigint` < 5 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk , _field_next , _field_next ) VALUES ( CONNECTION_ID() , { $$ } , CONNECTION_ID() ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _digit , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , { $$ } ) ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_next = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_nokey = CONNECTION_ID() , _field_nokey = CONNECTION_ID() WHERE `pk` = CONNECTION_ID() ORDER BY _field ; SAVEPOINT s1 ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk , _field_next , _field_next ) VALUES ( { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() ) , ( { $$ } , CONNECTION_ID() , CONNECTION_ID() ) , ( { time() } , CONNECTION_ID() , CONNECTION_ID() ) ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_next = { $$ } , _field_nokey = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) WHERE `pk` = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ORDER BY _field ; ROLLBACK TO SAVEPOINT s1 ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( CONNECTION_ID() ) ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( { $$ } ) ; COMMIT | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_next = CONNECTION_ID() , _field_next = CONNECTION_ID() , _field_nokey = _varchar(1) , _field_next = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_nokey = { $$ } , _field_nokey = { $$ } WHERE `pk` = { $$ } ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = { $$ } , _field_nokey = { $$ } WHERE _field_key IN ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , { $$ } , CONNECTION_ID() ) ; ROLLBACK | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE `pk` = CONNECTION_ID() ORDER BY _field ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_next = CONNECTION_ID() , _field_nokey = { $$ } , _field_nokey = CONNECTION_ID() WHERE _field_key = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ; SAVEPOINT s1 ; /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE _field_key = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( CONNECTION_ID() ) ; RELEASE SAVEPOINT s1 ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_next = CONNECTION_ID() WHERE `pk` = { $$ } ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( { $$ } ) ; COMMIT | /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk , _field_next , _field_next ) VALUES ( CONNECTION_ID() , { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() , { $$ } ) | /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE _field_key = _digit | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk , _field_next , _field_next ) VALUES ( { $$ } , { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( { $$ } , { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() , _varchar(1) ) , ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( CONNECTION_ID() , CONNECTION_ID() , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk , _field_next , _field_next ) VALUES ( CONNECTION_ID() , { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) , ( CONNECTION_ID() , { $$ } , CONNECTION_ID() ) ; COMMIT | /* QUERY_IS_REPLICATION_SAFE */ UPDATE _table SET _field_nokey = CONNECTION_ID() , _field_nokey = CONNECTION_ID() , _field_next = CONNECTION_ID() WHERE _field_key = { $$ } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT { $mlens_movie_alias } . `year` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NULL AND ( { $mlens_movie_alias } . `year` <= 1930 ) AND ( { $mlens_tag_alias } . `timestamp` >= _timestamp OR LENGTH( { $mlens_tag_alias } . `tag` ) >= ( SELECT AVG( LENGTH( `tag` ) ) FROM mlens_tag ) OR LENGTH( { $mlens_tag_alias } . `tag` ) >= ( SELECT MIN( LENGTH( `tag` ) ) FROM mlens_tag ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mmg_t1'; $mlens_genre_alias='mmg_t2'; $mlens_rating_alias='mmg_t3'; "" } SELECT STRAIGHT_JOIN SQL_SMALL_RESULT { $mlens_movie_alias } . `title` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , COUNT( `genre` ) FROM mlens_movie AS mmg_t1 JOIN mlens_genre AS mmg_t2 ON { $mlens_movie_alias } . `id` = { $mlens_genre_alias} . `mlens_movie_id` WHERE { $mlens_genre_alias } . `genre` IN ( 'Musical' ) AND ( { $mlens_movie_alias } . `alternate_title` IS NULL ) AND ( { $mlens_genre_alias } . `genre` BETWEEN _english AND _english ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT { $mlens_movie_alias } . `id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, { $mlens_movie_alias } . `year` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $mlens_tag_alias } . `tag` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 LEFT OUTER JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NULL AND ( { $mlens_movie_alias } . `title` LIKE 'L%' AND { $mlens_movie_alias } . `year` > 1995 AND { $mlens_movie_alias } . `alternate_title` IS NULL ) AND ( { $mlens_tag_alias } . `timestamp` <= _timestamp AND { $mlens_tag_alias } . `tag` IS NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 500 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT { $mlens_movie_alias } . `title` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NULL AND ( { $mlens_movie_alias } . `year` != 1910 OR { $mlens_movie_alias } . `alternate_title` <= _english AND { $mlens_movie_alias } . `alternate_title` <= _english ) AND ( { $mlens_tag_alias } . `tag` != _quid ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT { $mlens_movie_alias } . `year` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 LEFT OUTER JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NULL AND ( { $mlens_movie_alias } . `title` > _char OR { $mlens_movie_alias } . `year` <> 1960 AND { $mlens_movie_alias } . `alternate_title` IS NULL ) AND ( { $mlens_tag_alias } . `tag` IS NULL OR LENGTH( { $mlens_tag_alias } . `tag` ) <= ( SELECT MIN( LENGTH( `tag` ) ) FROM mlens_tag ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 10000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT { $mlens_movie_alias } . `id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NOT NULL AND ( { $mlens_movie_alias } . `title` < _english ) AND ( { $mlens_tag_alias } . `tag` != _quid ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 500 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT DISTINCT { $mlens_movie_alias } . `id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 JOIN mlens_tag AS mwt_t2 ON { $mlens_movie_alias } . `id` = { $mlens_tag_alias } . `mlens_movie_id` WHERE { $mlens_tag_alias} . `tag` IS NULL AND ( { $mlens_movie_alias } . `title` IS NULL AND ( { $mlens_movie_alias } . `year` >= _year[invariant] AND { $mlens_movie_alias } . `year` <= (_year[invariant] + 2) ) OR { $mlens_movie_alias } . `year` <> 1985 ) AND ( { $mlens_tag_alias } . `user_id` <= _smallint_unsigned OR { $mlens_tag_alias } . `timestamp` > _timestamp OR { $mlens_tag_alias } . `tag` >= _english OR { $mlens_tag_alias } . `timestamp` <= _timestamp ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _varchar(1) LIMIT 6 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 50 WHERE `col_int_not_null` > _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE `col_char_255_not_null_key` IN (_quid, _quid, _char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int` IN (1, 1) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` IN (_tinyint_unsigned) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_char_10_not_null_key` IN (_quid, _char, _quid, _char) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_char_255_not_null_key` IN (_char) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` IN (_quid) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` IN (_int_unsigned, _digit, 6) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 7 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | INSERT INTO _table ( `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` ) SELECT `col_char_10` , `col_char_10_key` , `col_char_10_not_null` , `col_char_10_not_null_key` , `col_char_255` , `col_char_255_key` , `col_char_255_not_null` , `col_char_255_not_null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_not_null_key` , `col_bigint` , `col_bigint_key` , `col_bigint_not_null` , `col_bigint_not_null_key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_not_null_key` FROM _table ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE _field < digit LIMIT _digit | DELETE FROM _table WHERE _field < digit LIMIT _digit | DELETE FROM _table WHERE _field = _digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | INSERT INTO _table ( _field ) VALUES ( _digit ) | DELETE FROM _table WHERE _field = _digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | SELECT DISTINCT STD( OUTR . `col_bigint_key` ) AS X FROM BB AS OUTR2 LEFT JOIN D AS OUTR ON ( OUTR2 . `pk` = OUTR . `pk` ) WHERE ( OUTR . `col_bigint_key` , OUTR . `col_int_key` ) IN ( SELECT INNR . `col_int_not_null_key` AS X , INNR . `pk` AS Y FROM A AS INNR WHERE INNR . `pk` >= digit ) AND OUTR . `col_int_not_null` IS NOT NULL AND OUTR . `col_char_1024_not_null` IS NOT NULL ORDER BY OUTR . `pk` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_char_1024_not_null` AS X FROM BB AS OUTR2 LEFT JOIN DD AS OUTR ON ( OUTR2 . `col_char_1024_not_null` <> OUTR . `col_text` ) WHERE OUTR . `col_text_not_null` IN ( SELECT INNR . `col_char_10` AS Y FROM BB AS INNR2 LEFT JOIN D AS INNR ON ( INNR2 . `pk` <= INNR . `col_bigint_key` ) WHERE OUTR . `col_bigint_key` >= digit ORDER BY INNR . `col_bigint_key` ) AND OUTR . `col_char_1024_not_null` >= _varchar(1) ORDER BY OUTR . `col_text_key` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_char_1024_key` AS X FROM A AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_int_not_null_key` >= OUTR . `pk` ) WHERE OUTR . `col_bigint_key` IN ( SELECT DISTINCT INNR . `col_int_not_null_key` AS Y FROM C AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char_10_not_null` > INNR . `col_char_10_not_null` ) WHERE INNR . `pk` = INNR . `col_int` AND NOT INNR . `col_int_key` <> INNR . `col_int_not_null` ORDER BY INNR . `col_char_10` ) OR ( OUTR . `col_char_10_not_null` <> _varchar(1) AND OUTR . `col_text_not_null` > _varchar(1) ) ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` | SELECT SUM(DISTINCT OUTR . `col_int_not_null_key` ) AS X FROM DD AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_char_1024_not_null` = OUTR . `col_char_10` ) WHERE OUTR . `pk` IN ( SELECT INNR . `col_bigint_key` AS Y FROM D AS INNR WHERE INNR . `col_text_not_null` > _varchar(1) OR INNR . `col_char_10_not_null_key` <> _varchar(1) ORDER BY INNR . `col_int_not_null` ) XOR OUTR . `pk` IS NULL ORDER BY OUTR . `col_char_1024_not_null_key` , OUTR . `pk` | SELECT DISTINCT MAX(DISTINCT OUTR . `col_char_1024_key` ) AS X FROM A AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_int` < OUTR . `col_int_key` ) WHERE OUTR . `pk` IN ( SELECT INNR . `col_int` AS Y FROM CC AS INNR WHERE INNR . `col_char_10_not_null` >= INNR . `col_char_10` XOR INNR . `col_int` = INNR . `col_bigint` ) OR OUTR . `col_int` <= digit OR OUTR . `col_int_not_null_key` >= digit ORDER BY OUTR . `pk` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text_key` AS X FROM CC AS OUTR2 LEFT JOIN DD AS OUTR ON ( OUTR2 . `col_char_1024` < OUTR . `col_char_1024_key` ) WHERE ( OUTR . `col_bigint` , OUTR . `col_int_key` ) IN ( SELECT INNR . `col_int_not_null_key` AS X , INNR . `col_int_key` AS Y FROM BB AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char_10_key` > INNR . `col_char_10_not_null_key` ) WHERE INNR . `col_int_not_null` < INNR . `col_bigint_key` XOR OUTR . `col_bigint` IS NOT NULL ORDER BY INNR . `col_int` ) AND OUTR . `col_text_key` = _varchar(1) ORDER BY OUTR . `col_char_10_not_null_key` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_int_not_null` AS X FROM C AS OUTR WHERE OUTR . `col_int_key` IN ( SELECT INNR . `col_int_key` AS Y FROM DD AS INNR2 LEFT JOIN DD AS INNR ON ( INNR2 . `col_char_10_not_null` <= INNR . `col_text_key` ) WHERE INNR . `col_int_not_null` >= INNR . `col_int_key` XOR INNR . `col_text_key` = INNR . `col_char_1024` ORDER BY INNR . `pk` ) AND OUTR . `col_bigint_key` >= digit ORDER BY OUTR . `col_bigint` , OUTR . `pk` | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. B AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . DD ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . C LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. AA AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. AA AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . DD ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null_key` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. BB AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. D AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. DD AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. CC AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . D LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. C AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. DD AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. DD AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. CC AS t1 , `test`. CC AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . D LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. CC AS t1 , `test`. CC AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. DD AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. BB AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . A ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. AA AS t1 , `test`. AA AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. CC AS t1 , `test`. B AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . CC ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; CREATE TABLE { "dump_table".++$tables } ( `pk` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(`pk`)) SELECT t1 . `col_char_10` AS field0 , t1 . `col_char_10_key` AS field1 , t1 . `col_char_10_not_null` AS field2 , t1 . `col_char_10_not_null_key` AS field3 , t1 . `col_char_128` AS field4 , t1 . `col_char_128_key` AS field5 , t1 . `col_char_128_not_null` AS field6 , t1 . `col_char_128_not_null_key` AS field7 , t1 . `col_int` AS field8 , t1 . `col_int_key` AS field9 , t1 . `col_int_not_null` AS field10 , t1 . `col_int_not_null_key` AS field11 , t1 . `col_bigint` AS field12 , t1 . `col_bigint_key` AS field13 , t1 . `col_bigint_not_null` AS field14 , t1 . `col_bigint_not_null_key` AS field15 , t1 . `col_enum` AS field16 , t1 . `col_enum_key` AS field17 , t1 . `col_enum_not_null` AS field18 , t1 . `col_enum_not_null_key` AS field19 , t1 . `col_text` AS field20 , t1 . `col_text_key` AS field21 , t1 . `col_text_not_null` AS field22 , t1 . `col_text_not_null_key` AS field23 , t2 . `col_char_10` AS field24 , t2 . `col_char_10_key` AS field25 , t2 . `col_char_10_not_null` AS field26 , t2 . `col_char_10_not_null_key` AS field27 , t2 . `col_int` AS field32 , t2 . `col_int_key` AS field33 , t2 . `col_int_not_null` AS field34 , t2 . `col_int_not_null_key` AS field35 , t2 . `col_enum` AS field40 , t2 . `col_enum_key` AS field41 , t2 . `col_enum_not_null` AS field42 , t2 . `col_enum_not_null_key` AS field43 FROM `test`. DD AS t1 , `test`. DD AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . AA ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . DD LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . BB ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; INSERT INTO {"dump_table".$tables } ( `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` ) SELECT `col_mediumint`, `col_mediumint_not_null_key`, `col_mediumint_key`, `col_mediumint_not_null`, `col_char_128_not_null_key`, `col_char_128_not_null`, `col_char_128_key`, `col_char_128`, `col_smallint_key`, `col_smallint_not_null`, `col_smallint_not_null_key`, `col_smallint`, `col_bigint_not_null`, `col_bigint`, `col_bigint_key`, `col_bigint_not_null_key`, `col_enum_key`, `col_enum_not_null_key`, `col_enum_not_null`, `col_enum`, `col_char_10`, `col_char_10_not_null`, `col_char_10_key`, `col_char_10_not_null_key`, `col_int_key`, `col_int`, `col_int_not_null`, `col_int_not_null_key`, `col_tinyint_not_null_key`, `col_tinyint_not_null`, `col_tinyint`, `col_tinyint_key` , `col_timestamp_not_null`, `col_timestamp_not_null_key`, `col_timestamp`, `col_timestamp_key`, `col_datetime`, `col_datetime_key`, `col_datetime_not_null`, `col_datetime_not_null_key` , `col_year`, `col_year_key`, `col_year_not_null`, `col_year_not_null_key`, `col_time`, `col_time_key`, `col_time_not_null_key`, `col_time_not_null` , `col_binary_5`, `col_binary_5_key`, `col_binary_5_not_null`, `col_binary_5_not_null_key`, `col_varbinary_5`, `col_varbinary_5_key`, `col_varbinary_5_not_null`, `col_text`, `col_text_key`, `col_text_not_null_key`, `col_text_not_null` FROM `test` . BB LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_key` ; SELECT 1 | SELECT c_custkey , MIN( n_nationkey ) FROM region RIGHT JOIN nation ON ( r_regionkey = n_regionkey ) JOIN supplier ON ( s_nationkey = n_nationkey ) JOIN partsupp ON ( s_suppkey = ps_suppkey ) RIGHT JOIN lineitem ON ( ps_partkey = l_partkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) JOIN customer ON ( o_custkey = c_custkey ) WHERE o_orderkey IN ( { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } ) AND c_comment >= _varchar(1) AND s_nationkey IN ( { $prng->uint16(0,24) } , _digit , _digit ) AND l_quantity IN ( _digit , { $prng->uint16(1,50) } ) GROUP BY 1 | SELECT MIN( ps_partkey ) FROM part RIGHT JOIN partsupp ON ( p_partkey = ps_partkey ) LEFT JOIN supplier ON ( ps_suppkey = s_suppkey ) RIGHT JOIN nation ON ( s_nationkey = n_nationkey ) RIGHT JOIN region ON ( n_regionkey = r_regionkey ) WHERE ps_supplycost = _tinyint_unsigned AND s_suppkey IN ( 10 , 10 ) AND p_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned | SELECT s_nationkey, ps_supplycost AS currency1 , COUNT( l_extendedprice ) AS currency2 FROM part RIGHT JOIN partsupp ON ( p_partkey = ps_partkey ) RIGHT JOIN supplier ON (s_suppkey = ps_suppkey) RIGHT JOIN lineitem ON ( ps_partkey = l_partkey AND ps_suppkey = l_suppkey ) JOIN orders ON ( l_orderkey = o_orderkey ) LEFT JOIN customer ON ( o_custkey = c_custkey ) WHERE p_partkey = _tinyint_unsigned AND s_acctbal BETWEEN _mediumint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND p_comment LIKE CONCAT( _varchar(1) , '%' ) GROUP BY 1 , 2 HAVING currency1 < _digit | SELECT s_suppkey , o_orderkey , c_custkey FROM region RIGHT JOIN nation ON ( r_regionkey = n_regionkey ) JOIN supplier ON ( s_nationkey = n_nationkey ) LEFT JOIN partsupp ON ( s_suppkey = ps_suppkey ) RIGHT JOIN lineitem ON ( ps_suppkey = l_suppkey ) LEFT JOIN orders ON ( l_orderkey = o_orderkey ) JOIN customer ON ( o_custkey = c_custkey ) WHERE c_nationkey <> s_nationkey AND c_acctbal > _digit OR c_nationkey != s_nationkey | SELECT r_regionkey , n_nationkey , COUNT( ps_suppkey ) FROM part RIGHT JOIN partsupp ON ( p_partkey = ps_partkey ) RIGHT JOIN lineitem ON ( ps_partkey = l_partkey AND ps_suppkey = l_suppkey ) LEFT JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) RIGHT JOIN nation ON ( c_nationkey = n_nationkey ) RIGHT JOIN supplier ON ( s_nationkey = n_nationkey ) RIGHT JOIN region ON ( n_regionkey = r_regionkey ) WHERE s_suppkey BETWEEN _digit AND _digit + _digit AND l_suppkey BETWEEN 10 AND 10 + _digit AND ps_suppkey BETWEEN 10 AND _digit + _digit AND ps_comment IS NOT NULL AND ps_comment IS NOT NULL AND r_regionkey IN ( 2 , 1 ) GROUP BY 1 , 2 | SELECT ps_supplycost AS currency1 , ps_supplycost AS currency2 FROM part RIGHT JOIN partsupp ON ( p_partkey = ps_partkey ) RIGHT JOIN supplier ON (s_suppkey = ps_suppkey) LEFT JOIN lineitem ON ( ps_suppkey = l_suppkey ) JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) WHERE o_comment = _varchar(1) AND c_acctbal = _tinyint_unsigned AND o_orderkey <= { $prng->uint16(1,1500) } HAVING currency1 BETWEEN _mediumint_unsigned AND _digit + _tinyint_unsigned | SELECT n_nationkey , SUM( s_nationkey ) FROM part JOIN partsupp ON ( p_partkey = ps_partkey ) LEFT JOIN lineitem ON ( ps_partkey = l_partkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) LEFT JOIN customer ON ( o_custkey = c_custkey ) LEFT JOIN nation ON ( c_nationkey = n_nationkey ) LEFT JOIN supplier ON ( s_nationkey = n_nationkey ) RIGHT JOIN region ON ( n_regionkey = r_regionkey ) WHERE p_retailprice BETWEEN _tinyint_unsigned AND _digit + _tinyint_unsigned OR ps_suppkey BETWEEN _digit AND _digit + _digit AND ps_suppkey BETWEEN 10 AND 10 + _digit GROUP BY 1 | /*!50400 ALTER TABLE q ANALYZE PARTITION { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } h PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } f PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` BETWEEN _digit AND _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } g PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } h PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) WHERE `col_int_nokey` BETWEEN _digit AND _digit | UPDATE { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } o PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } g PARTITION ( { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } ) | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | UPDATE performance_schema . setup_timers SET timer_name = 'MILLISECOND' | UPDATE performance_schema . setup_instruments SET TIMED = 'NO' ORDER BY RAND() LIMIT _digit | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM { $last_database = $prng->arrayElement(['mysql','test','INFORMATION_SCHEMA','performance_schema']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < _digit LIMIT _tinyint_unsigned | { @nonaggregates = () ; @table_names = () ; @database_names = () ; $tables = 0 ; $fields = 0 ; "" } SELECT * FROM ({ $last_database = $prng->arrayElement(['mysql','test','INFORMATION_SCHEMA','performance_schema']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } INNER JOIN { $last_database = $prng->arrayElement(['mysql','test','INFORMATION_SCHEMA','performance_schema']); return $last_database } . _table AS { $database_names[++$tables] = $last_database ; $table_names[$tables] = $last_table ; "table".$tables } ON ( { $last_database = $database_names[$tables] ; $last_table = $table_names[$tables] ; "table".$tables } . _field = { $last_database = $database_names[$tables-1] ; $last_table = $table_names[$tables-1] ; "table".($tables - 1) } . _field ) ) WHERE NOT (NOT (NOT { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field LIKE 'wait/synch/mutex/%') AND { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field < { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } LIMIT _tinyint_unsigned | UPDATE _table SET _field = _char(2) WHERE _field <> _digit | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | SELECT _field FROM _table ORDER BY _field LIMIT _digit | INSERT DELAYED INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _bigint , _datetime , _mediumint ) | START TRANSACTION | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _datetime , 0 , _char(64) ) | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _bigint , _char(64) , 0 ) | DROP FUNCTION IF EXISTS _letter[invariant] ; CREATE FUNCTION _letter[invariant] ( _letter DATE ) RETURNS DATETIME DETERMINISTIC READS SQL DATA BEGIN DECLARE out1 DATETIME ; SELECT _table._field INTO out1 FROM _table ; RETURN out1 | SELECT _field FROM _table WHERE _field <> _year | SELECT 1 ;