query: UPDATE _table SET _field = digit WHERE _field > NULL AND _field < NULL | UPDATE _table SET _field = digit WHERE _field = _datetime | UPDATE _table SET _field = digit WHERE _field = _english | UPDATE _table SET _field = digit WHERE _field = _english | UPDATE _table SET _field = digit WHERE _field = _datetime | UPDATE _table SET _field = digit WHERE _field > _english AND _field < _digit | UPDATE _table SET _field = digit WHERE _field > NULL AND _field < _english | UPDATE _table SET _field = digit WHERE _field = _char(255) | UPDATE _table SET _field = digit WHERE _field > _datetime AND _field < _char(255) | UPDATE _table SET _field = digit WHERE _field = _digit | 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 WHERE `col_bigint_key` = _digit ORDER BY _field_list LIMIT 50 /*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*/ ; 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` != _digit ORDER BY _field_list LIMIT 50 /*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*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int_key` BETWEEN 4 AND 8 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_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 25 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*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 . _field_key < _digit LIMIT 6 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_bigint` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list 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*/ ; 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` = _char ORDER BY _field_list LIMIT 25 /*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_not_null` = _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_text_key` < _char ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` < _quid ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _int_unsigned WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) 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 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` = _tinyint_unsigned ) 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_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` != _char 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 4 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null_key` = _digit ORDER BY _field_list LIMIT 7 /*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` = 6 WHERE `col_char_1024` IN (_char, _char, _char) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_int_key` BETWEEN 1 AND 8 LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _tinyint_unsigned 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 WHERE `col_text_not_null_key` IN (_quid, _quid) ORDER BY _field_list LIMIT 25 /*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 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_bigint_key` BETWEEN 3 AND 8 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 int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ | { 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']) } } | { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ FLUSH LOGS | { 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 */ FLUSH LOGS | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = STATEMENT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " 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 { return $m1 } table0_int_autoinc { return $m2 } table0_myisam_int { return $m3 } table10_innodb_int { return $m4 } SET _field = CONVERT( _set USING UTF8 ) WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { 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 } table10_innodb { return $m1 } table10_int { return $m2 } table0_myisam { return $m3 } table1_innodb { return $m4 } AS A NATURAL JOIN 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 } table1_myisam { return $m1 } table0_int { return $m2 } table0_myisam_int { return $m3 } table10_innodb_int { return $m4 } B SET A. _field = _int , B. _field = RAND( _digit ) 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 */ | /* BEGIN 1 */ 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 */ RELEASE SAVEPOINT A /* 1 END */ | /* 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 */ USE `test1` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK TO SAVEPOINT A /* 1 END */ | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = ROW ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ INSERT INTO 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 } table1_myisam_int { return $m1 } table10_int { return $m2 } table10_myisam_int { return $m3 } table1_innodb_int_autoinc { return $m4 } ( _field_list[invariant] ) SELECT _field_list[invariant] FROM { $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 { return $m1 } table1_int { return $m2 } table1_myisam_int_autoinc { return $m3 } table1_innodb_int_autoinc { return $m4 } AS A WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 AND A. _field[invariant] IN ( SELECT _field[invariant] FROM 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_myisam { return $m1 } table1_int_autoinc { return $m2 } table1_myisam_int { return $m3 } table10_innodb_int { return $m4 } AS B WHERE B.col_tinyint = A.col_tinyint ) ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SAVEPOINT A { $pick_mode=3; return undef} /* 1 END */ | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'STATEMENT' ; $pick_mode = $prng->int(1,4) ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " 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 } table1_innodb_int_autoinc { return $m1 } table0 { return $m2 } table10_myisam_int { return $m3 } table0_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_innodb_int { return $m1 } table1 { return $m2 } table10_myisam { return $m3 } table1_innodb_int { return $m4 } B SET A. _field = @aux , B. _field = { if ($format=='STATEMENT') {return '/*'} } VERSION() { if ($format=='STATEMENT') {return '*/ 17 '} } 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 */ RELEASE SAVEPOINT A /* 1 END */ | /* BEGIN 1 */ COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'STATEMENT' ; $pick_mode = $prng->int(1,4) ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ 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_autoinc { return $m1 } table1_int_autoinc { return $m2 } table1_myisam { return $m3 } table0_innodb { return $m4 } SET _field[invariant] = col_tinyint WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + _digit AND _field[invariant] IS NULL ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK /* 1 END */ | HANDLER { $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} OPEN handler_a | 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 = 'col_float' ; return undef } {$table_field_list = $table_field_list.','.$field} FROM { $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} A NATURAL JOIN { $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} B WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 | REPLACE INTO { $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} ( { $field = 'col_varchar_64' ; return undef } { return "`".$field."`" } ) VALUES ( _digit ) | HANDLER handler_a READ idx2 PREV WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 | SELECT 1 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} WHERE SLEEP( 0.5 * { $rand_val = $prng->int(0,100) / 100 } * $life_time_unit ) = 0 LIMIT 1 | FLUSH 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} | UPDATE LOW_PRIORITY { $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} AS A NATURAL JOIN { $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} B SET A. { $field = 'col_blob' ; return undef } { return "`".$field."`" } = _digit , B. { $field = 'pk' ; return undef } { return "`".$field."`" } = _digit | UNLOCK TABLES | START TRANSACTION | SELECT { $field = 'col_int' ; return undef } {$table_field_list = $field; return undef} { $field = 'col_float' ; 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 `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_key` ) ) ) AS { "table".++$tables } RIGHT JOIN ( ( BB AS { "table".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} EXISTS ( SELECT { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_char_10_not_null` AS { "CHILD_SUBQUERY".$subquery_idx."_field1" } FROM ( AA AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } LEFT JOIN ( ( BB AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } INNER JOIN C AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `col_char_1024` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_char_10_not_null_key` ) ) ) ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `col_text_not_null` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_char_10_not_null_key` ) ) WHERE { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_int_not_null` <> { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint` ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `pk` ) ) ) ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_not_null` AS { "SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) ) ) AND ( table1 . `pk` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `pk` IN (_tinyint_unsigned) ) HAVING { "field".$prng->int(1,$fields) } != _char(2) ORDER BY table1 . _field_indexed , table1 . _field_indexed ASC , { "field".$prng->int(1,$fields) } ASC | SHOW TEMPORARY TABLES | SELECT * FROM `data_dictionary` . INDEXES | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } EXPLAIN EXTENDED SELECT COUNT( table1 . `col_int_key` ) AS { "field".++$fields } FROM ( CC AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10` = { "table".($tables - 1) } . `col_char_10_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` = ANY ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` AS { "SUBQUERY".$subquery_idx."_field1" } FROM D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } HAVING ({ "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int` >= 1 OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` > _char) ) ) AND ( table1 . `col_int_not_null_key` = _tinyint_unsigned AND table1 . `col_char_1024_key` = { "table".$prng->int(1,$tables) } . `col_char_1024_not_null_key` ) HAVING { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_1024_not_null_key` <= SOME ( SELECT _char UNION SELECT _char ) ORDER BY table1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 | SHOW TABLES | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } STRAIGHT_JOIN ( ( AA AS { "table".++$tables } RIGHT JOIN AA AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_not_null_key` = { "table".($tables - 1) } . `col_char_1024_not_null` ) ) ) ON ({ "table".$tables } . `col_int_not_null_key` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `pk` , { "table".$prng->int(1,$tables) } . `col_int` ) IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } , { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` AS { SUBQUERY.$subquery_idx."_field2" } FROM B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) ) AND ( { "table".$prng->int(1,$tables) } . `col_text_key` != { "table".$prng->int(1,$tables) } . `col_text_key` OR { "table".$prng->int(1,$tables) } . `col_char_10_key` > { "table".$prng->int(1,$tables) } . `col_char_1024_not_null` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } <> 9 OR { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( 9, 5 ) IN ( SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` AS { "SUBQUERY".$subquery_idx."_field1" } , COUNT( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_bigint` ) AS { SUBQUERY.$subquery_idx."_field2" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } )) ORDER BY { "field".$prng->int(1,$fields) } ASC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_not_null_key` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` > ALL ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null_key` >= { "table".$prng->int(1,$tables) } . `col_text_not_null_key` ) ) OR table1 . `pk` = { "table".$prng->int(1,$tables) } . `col_int_not_null_key` HAVING { "field".$prng->int(1,$fields) } < _char(2) ORDER BY { "field".$prng->int(1,$fields) } DESC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } INNER JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_key` = { "table".($tables - 1) } . `col_char_10_not_null` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `col_char_1024_not_null` , { "table".$prng->int(1,$tables) } . `col_char_10_not_null_key` ) IN ( SELECT _char , _char UNION SELECT _char , _char ) ) AND ( table1 . `col_char_10_not_null_key` >= _char[invariant] OR table1 . `col_int_not_null_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } DESC , table1 . _field_indexed DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } LEFT JOIN ( ( DD AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` ) ) ) ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_10_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `pk` , { "table".$prng->int(1,$tables) } . `col_bigint` ) IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int` AS { "SUBQUERY".$subquery_idx."_field1" } , { "SUBQUERY".$subquery_idx."_t2" ; } . `col_bigint` AS { SUBQUERY.$subquery_idx."_field2" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) ) ) AND table1 . `col_bigint_key` = { "table".$prng->int(1,$tables) } . `col_bigint_key` ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_char_1024_key`, { "table".$prng->int(1,$tables) } . `col_char_1024_key` ) , table1 . _field_indexed DESC , table1 . _field_indexed ASC , { "field".$prng->int(1,$fields) } ASC , table1 . _field_indexed ASC , table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` DESC , table1 . _field_indexed ASC, { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MAX( table1 . `col_char_10_not_null_key` ) AS { "field".++$fields } FROM ( AA AS { "table".++$tables } LEFT JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_text_not_null` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_not_null_key` IN ( SELECT DISTINCT SQL_SMALL_RESULT { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } HAVING ((({ "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null` = 3 AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` <= 4) AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint` >= _tinyint_unsigned) AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` <= _char) ) ) AND ( table1 . `pk` > _tinyint_unsigned[invariant] AND table1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `pk` > _tinyint_unsigned[invariant] AND table1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) | SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X WHERE X . `col_bigint_key` BETWEEN 1 AND 7 LIMIT 6 LOCK IN SHARE MODE /*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_char_10_key` IN (_char) ORDER BY _field_list LIMIT 25 /*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*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `col_int` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null_key` < _quid ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 3 WHERE `col_char_255_not_null_key` = _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 `col_bigint_key` IN (25) 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*/ | DELETE FROM _table WHERE `col_int` = _tinyint_unsigned 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_bigint` BETWEEN 4 AND 8 LIMIT 8 FOR UPDATE /*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` = _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` != _tinyint_unsigned ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _int_unsigned , _int_unsigned , _int_unsigned , _varchar(1) ) LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 25 WHERE `col_bigint` IN (_digit) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) 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` IN (10) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X WHERE X . `col_bigint` BETWEEN 1 AND 8 LIMIT 6 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint` 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 _digit AND _digit 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*/ ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 8 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 _tinyint_unsigned AND _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 `col_int_not_null` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_int_not_null` IN (_tinyint_unsigned, _tinyint_unsigned, 50) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` = _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*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 _tinyint_unsigned AND _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 50 WHERE `pk` IN (_digit) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 8 WHERE `col_char_10` IN (_quid) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_int` BETWEEN 4 AND 5 LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` IN (_digit) ORDER BY _field_list LIMIT 2 /*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 int_field BETWEEN 3 AND 5 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `pk` IN (_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 `pk` BETWEEN 3 AND 3 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key < _digit 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*/ ; SELECT * FROM _table AS X WHERE X . `col_bigint` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 FOR UPDATE /*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 X . `pk` FROM _table AS X WHERE X . `col_bigint_key` BETWEEN 2 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_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*/ ; UPDATE _table SET `col_int` = 7 WHERE `col_bigint` 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_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 5 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` != _tinyint_unsigned ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` IN (_char, _char) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_int` IN (50) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null_key` = _char ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null_key` IN (_quid, _char) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 7 WHERE `col_char_10_not_null_key` IN (_char) ORDER BY _field_list LIMIT 7 /*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*/ ; ROLLBACK TO 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*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key < _tinyint_unsigned LIMIT 5 FOR UPDATE /*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*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _digit 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_10` IN (_char, _char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 5 WHERE `col_bigint_key` IN (_digit) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_key` IN (_char) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | ROLLBACK WORK AND CHAIN | UNLOCK TABLES | CREATE SCHEMA { $database_name_n = $database_prefix . $normal_piece ; $database_name = $database_name_n } CHARACTER SET = utf8 | PREPARE st1 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 } AS A WHERE A.`pk` IN ( SELECT `pk` 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 B WHERE B.`pk` = A.`pk` ) " ; EXECUTE st1 ; DEALLOCATE PREPARE st1 | DROP PROCEDURE { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $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 } | UNLOCK TABLES | INSERT INTO { $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 } ( { $table_field_list = "`pk` , `col_int` , `col_int_key` "} ) SELECT $table_field_list 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 } WHERE SLEEP( 0.5 * { $rand_val = $prng->int(0,100) / 100 } * $life_time_unit ) = 0 LIMIT 1 | UNLOCK TABLES | $sequence_begin CREATE TRIGGER { $database_name_s = $database_prefix . $sequence_piece ; $database_name = $database_name_s } . { $trigger_name_s = $trigger_prefix . $prng->int(1,$namespace_width) . $sequence_piece ; $trigger_name = $trigger_name_s } { $trigger_item_s = $database_name_s . " . " . $trigger_name_s ; $trigger_item = $trigger_item_s ; return undef } AFTER INSERT ON { $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 } FOR EACH ROW BEGIN UPDATE { $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 } SET `pk` = _digit WHERE `pk` > _digit LIMIT _digit ; END ; COMMIT ; SELECT SLEEP( 0.5 * { $rand_val = $prng->int(0,100) / 100 } * $life_time_unit ) ; DROP TRIGGER $trigger_item_s $sequence_end | UNLOCK TABLES | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } STRAIGHT_JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_key` IN ( SELECT 1 UNION SELECT 9 ) ) AND ( table1 . `col_int_key` = { "table".$prng->int(1,$tables) } . `col_int_key` AND table1 . `pk` = _tinyint_unsigned ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_key` <> ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_nokey` ) ) WHERE ( { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` <= { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` OR { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` <= ALL ( SELECT 4 UNION SELECT 8 ) ) ) ) AND table1 . `col_varchar_key` IN (_char, _char) AND { "table".$prng->int(1,$tables) } . `col_varchar_nokey` <> _char ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) , { "field".$prng->int(1,$fields) } ASC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } EXPLAIN EXTENDED SELECT MAX( DISTINCT table1 . `col_varchar_key` ) AS { "field".++$fields }, COUNT( table1 . `col_int_key` ) AS { "field".++$fields } FROM ( CC AS { "table".++$tables } STRAIGHT_JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_nokey` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `pk` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` = { "table".$prng->int(1,$tables) } . `pk` ) ) AND ( table1 . `col_varchar_key` = _char OR table1 . `col_varchar_key` = _char ) OR ( table1 . `col_varchar_key` IS NOT NULL AND { "table".$prng->int(1,$tables) } . `col_varchar_nokey` = { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) HAVING { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `col_varchar_key` , { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) IN ( SELECT _char , _char UNION SELECT _char , _char ) ORDER BY { "field".$prng->int(1,$fields) } ASC, { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 OFFSET 2 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SUM( table1 . `col_varchar_key` ) AS { "field".++$fields } FROM ( D AS { "table".++$tables } INNER JOIN ( ( C AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_nokey` ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_nokey` >= ( SELECT DISTINCT MAX( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_nokey` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) ) OR table1 . `col_int_key` IN (_tinyint_unsigned, _tinyint_unsigned) HAVING { "field".$prng->int(1,$fields) } >= _char(2) ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) , { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } , CONCAT ( { "table".$prng->int(1,$tables) } . `col_varchar_nokey`, { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } LEFT JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_nokey` = { "table".($tables - 1) } . `col_varchar_key` ) ) ) ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `col_int_key` , { "table".$prng->int(1,$tables) } . `pk` ) NOT IN ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_nokey` AS { "SUBQUERY".$subquery_idx."_field1" } , SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_key` ) AS { SUBQUERY.$subquery_idx."_field2" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ) ) AND ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `col_int_key` IN (_tinyint_unsigned) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } <= _char(2) ORDER BY { "field".$prng->int(1,$fields) } , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MAX( table1 . `col_varchar_key` ) AS { "field".++$fields } FROM ( D AS { "table".++$tables } INNER JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "table".$prng->int(1,$tables) } . `col_varchar_key` , { "table".$prng->int(1,$tables) } . `col_varchar_key` ) IN ( SELECT _char , _char UNION SELECT _char , _char ) ) OR ( table1 . `col_int_key` IN (_tinyint_unsigned) OR table1 . `pk` > _tinyint_unsigned[invariant] AND table1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) ORDER BY table1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( _char, _char ) IN ( SELECT _char , _char UNION SELECT _char , _char ) ) AND ( table1 . `col_varchar_key` = _char AND table1 . `pk` = _tinyint_unsigned ) HAVING { "field".$prng->int(1,$fields) } >= 9 ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_varchar_nokey`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } RIGHT JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} NOT EXISTS ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_nokey` AS { "SUBQUERY".$subquery_idx."_field1" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` <> { "table".$prng->int(1,$tables) } . `col_int_key` ) ) AND ( table1 . `pk` > _tinyint_unsigned[invariant] AND table1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `pk` IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MAX( table2 . `col_varchar_nokey` ) AS { "field".++$fields } FROM ( A AS { "table".++$tables } STRAIGHT_JOIN ( ( BB AS { "table".++$tables } RIGHT JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_nokey` IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_nokey` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_nokey` ) ) ) ) AND { "table".$prng->int(1,$tables) } . `col_varchar_key` < { "table".$prng->int(1,$tables) } . `col_varchar_nokey` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT MAX( table1 . `col_int_key` ) AS { "field".++$fields } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } STRAIGHT_JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} AND { "table".$prng->int(1,$tables) } . `pk` IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` != ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) ) OR ( table1 . `col_varchar_key` = _char AND table1 . `col_varchar_key` = _char ) OR { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_nokey` IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` <> { "table".$prng->int(1,$tables) } . `col_varchar_nokey` AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` <= { "table".$prng->int(1,$tables) } . `col_varchar_key` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } <= _char(2) OR { "field".$prng->int(1,$fields) } = _tinyint_unsigned) ORDER BY table1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 | 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() } } | 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() } } | DELETE FROM _table WHERE `col_char_255_not_null_key` > _char 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_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*/ ; UPDATE _table SET `col_int_not_null_key` = 10 WHERE `col_int_not_null_key` = 3 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_255` > _char ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_int_key` >= 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*/ | 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` ) 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 (100) ORDER BY _field_list LIMIT 25 /*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 < _int_unsigned LIMIT 5 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_int_not_null_key` != 5 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 . `pk` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _varchar(1) , _varchar(1) , _int_unsigned , _int_unsigned , _varchar(1) ) LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned 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*/ | SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 7 FOR UPDATE /*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` <= _char 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 `col_bigint` = 50 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` >= _tinyint_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 3 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` = 4 WHERE `col_char_10_not_null` IN (_char, _quid) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE `pk` IN (10) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` = _digit ORDER BY _field_list LIMIT 1 /*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 = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table 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_int_not_null` BETWEEN 8 AND 2 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*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 6 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 `col_int` BETWEEN _tinyint_unsigned AND _tinyint_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` = _char ORDER BY _field_list LIMIT 1 /*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_char_255_not_null` = _char 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 ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null` IN (_quid) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_char_10_not_null_key` IN (_char, _char) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO 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` ) 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 25 /*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*/ ; 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` IN (_digit, 50) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key IN ( _int_unsigned , _int_unsigned , _varchar(1) , _int_unsigned , _tinyint_unsigned ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_bigint` BETWEEN 5 AND 25 ORDER BY _field_list LIMIT 6 /*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` = _digit ) FROM _table AS X LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | query | query | query | query | query | query | query | query | query | query | DELETE FROM _table WHERE _field BETWEEN CONVERT( _varchar(255) , CHAR) AND CONVERT( _english , CHAR) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | DELETE FROM _table WHERE _field IN ( REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) , CHAR) , CONVERT( _varchar(255) , CHAR) , CONVERT( _varchar(255) , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) ) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | SELECT _field FROM _table | DELETE FROM _table WHERE _field < CONVERT( _english , CHAR) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | DELETE FROM _table WHERE _field IS NULL ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IS NOT NULL ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | { @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 } , { 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(); 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() } { $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 } { $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_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 } 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) } . `col_int` <= 2 { 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 } , COUNT( table1 . `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 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_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 } 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 } 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) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 3 ) AND { "table".$prng->int(1,$tables) } . `col_int` IS NULL ) OR { "table".$prng->int(1,$tables) } . `col_int_key` = 2 ) OR { "table".$prng->int(1,$tables) } . `pk` BETWEEN _digit[invariant] AND ( _digit[invariant] + 3 ) ) OR { "table".$prng->int(1,$tables) } . `col_int` <> { "table".$prng->int(1,$tables) } . `col_int_key` ) { 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 SUM( 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_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` IS NULL { $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 STRAIGHT_JOIN MAX( table1 . `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() } { $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 } 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` <> 4 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 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 } , { 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] } . `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) } . `col_int` IS NOT NULL { 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 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 } 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() } { $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 } 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_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 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_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) } . `col_int_key` >= { "table".$prng->int(1,$tables) } . `pk` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } , { "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 DISTINCT SQL_SMALL_RESULT MAX( table1 . `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_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` < { "table".$prng->int(1,$tables) } . `pk` 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 { 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_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_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 (6, 8, 5) 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 } , { 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_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) } . `col_int_key` IN (1) OR { "table".$prng->int(1,$tables) } . `pk` != { "table".$prng->int(1,$tables) } . `col_int` ) { 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 SQL_SMALL_RESULT COUNT( table2 . `col_int` ) AS {"field".++$fields }, MAX( table1 . `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 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 } WHERE { "table".$prng->int(1,$tables) } . `pk` IN (5) { $stack->pop(undef) } | 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 */ INSERT INTO test1 . { $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_trans_safe_for_sbr_'.abs($$) } else { return 'v1_trans_'.$prng->arrayElement(['safe_for_sbr_','unsafe_for_sbr_']).abs($$) } } { return $m1 } { 't2_temp_nontrans_'.abs($$) } { return $m2 } { 't1_base_trans_'.abs($$) } { return $m3 } ( _field , col_tinyint_not_null ) VALUES ( _char(10) , _tinyint ) , ( CONVERT( _text(65535) USING BINARY ) , _tinyint ) ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SAVEPOINT A { $pick_mode='trans'; return undef} | 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 */ ROLLBACK | 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 */ ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK TO 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 */ SET GLOBAL BINLOG_ROW_IMAGE = noblob ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'STATEMENT' ; $pick_mode = $prng->arrayElement(['nontrans','trans','shift']) ; return $format } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_ROW_IMAGE = full ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = MIXED ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test1` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ COMMIT | 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 */ UPDATE test1 . { $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 } { 't2_temp_nontrans_'.abs($$) } { return $m2 } { 't1_base_trans_'.abs($$) } { return $m3 } SET _field = +1.1 { 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] <> FOUND_ROWS() ) { return $f2 } { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ COMMIT { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET @aux = CONVERT( _text(65535) USING LATIN1 ) { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ UPDATE test1 . { $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 } { return 't1_'.$prng->int(1,20).'_innodb' } { return $m3 } SET _field = { 'f1_'.$pick_mode.'_'.abs($$) } () { 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 } { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ DELETE 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 } { 't1_base_nontrans_'.abs($$) } { 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 } 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 } { 't1_'.$prng->int(1,20).'_myisam' } { return $m1 } { 't2_temp_nontrans_'.abs($$) } { return $m2 } { 't1_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] <> CURRENT_USER() ) { return $f2 } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ DROP TABLE IF EXISTS { 't1_base_trans_'.abs($$) } | 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 */ SET GLOBAL BINLOG_ROW_IMAGE = noblob { if ( ($prng->int(1,4) == 4) and ($pick_mode eq 'shift') ) { $pick_mode = 'trans' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test1` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ CREATE VIEW { if ($format eq 'STATEMENT') {return 'v1_trans_safe_for_sbr_'.abs($$) } else { return 'v1_trans_unsafe_for_sbr_'.abs($$) } } AS SELECT _field_list FROM { return 't1_'.$prng->int(1,20).'_innodb' } { 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 } | 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 */ UPDATE test1 . { $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 } { 't2_temp_nontrans_'.abs($$) } { return $m2 } { 't2_temp_trans_'.abs($$) } { return $m3 } AS A NATURAL JOIN test1 . { $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 } { 't1_'.$prng->int(1,20).'_myisam' } { return $m2 } { 't2_base_trans_'.abs($$) } { return $m3 } B SET A. _field = +2.0E-1 , B. _field = +1.1 { 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] <> USER() ) { return $f2 } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ DROP USER { 'Luigi_'.abs($$).'@localhost' } | 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 */ ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | SELECT VARIANCE( OUTR . `pk` ) AS X FROM AA AS OUTR WHERE OUTR . `col_int` NOT IN ( SELECT INNR . `col_char` AS Y FROM DD AS INNR WHERE INNR . `pk` < digit ) AND OUTR . `col_char_not_null` < _char(1) AND OUTR . `col_int_key` <= digit HAVING X > _time ORDER BY OUTR . `col_text_key` , OUTR . `pk` LIMIT digit | SELECT OUTR . `col_char` AS X FROM AA AS OUTR WHERE ( OUTR . `col_text` , OUTR . `col_int_key` ) IN ( SELECT INNR . `col_bigint` AS Y , INNR . `col_text_not_null_key` AS Z FROM DD AS INNR WHERE OUTR . `col_text` < _char(1) ) OR NOT OUTR . `col_text_key` >= _char(1) OR OUTR . `col_text` IS NULL ORDER BY OUTR . `col_int_not_null_key` , OUTR . `pk` LIMIT digit | SELECT COUNT( OUTR . `col_int_not_null` ) AS X FROM BB AS OUTR WHERE ( OUTR . `col_bigint_key` , OUTR . `col_int` ) IN ( SELECT INNR . `col_int_key` AS Y , INNR . `col_text_key` AS Z FROM BB AS INNR WHERE INNR . `col_bigint` IS NOT NULL ORDER BY INNR . `col_int` ) AND OUTR . `col_text_key` IS NULL AND OUTR . `col_char_not_null_key` <= _char(1) HAVING X <= _digit ORDER BY OUTR . `col_int_key` , OUTR . `pk` | SELECT COUNT( OUTR . `col_text_not_null` ) AS X FROM BB AS OUTR WHERE EXISTS ( SELECT INNR . `col_int_not_null` AS Y FROM CC AS INNR WHERE INNR . `col_int` <= INNR . `col_int` OR NOT INNR . `col_bigint_key` < INNR . `col_int_not_null_key` ) OR OUTR . `col_text_not_null` = _char(1) GROUP BY OUTR . `col_text_key` HAVING X >= _time ORDER BY OUTR . `col_text_key` , OUTR . `pk` LIMIT digit | SELECT MAX(DISTINCT OUTR . `col_text_not_null` ) AS X FROM AA AS OUTR WHERE ( OUTR . `col_int_not_null_key` , OUTR . `col_text` ) NOT IN ( SELECT INNR . `col_char` AS Y , INNR . `col_text_key` AS Z FROM CC AS INNR WHERE INNR . `col_bigint` IS NULL AND INNR . `col_bigint` >= INNR . `col_bigint` ORDER BY INNR . `pk` ) OR NOT OUTR . `col_int_not_null` <> digit AND OUTR . `col_int_not_null` = digit GROUP BY OUTR . `col_int_key` HAVING X <= NULL ORDER BY OUTR . `col_text_not_null_key` , OUTR . `pk` LIMIT digit | SELECT OUTR . `col_text_key` AS X FROM B AS OUTR WHERE EXISTS ( SELECT INNR . `col_int_key` AS Y FROM DD AS INNR WHERE INNR . `col_int_not_null_key` <> INNR . `col_int_key` OR NOT INNR . `col_text_key` <> INNR . `col_char_not_null_key` ) AND OUTR . `col_int` <= digit HAVING X <> _time ORDER BY OUTR . `col_bigint_key` , OUTR . `pk` | SELECT VAR_SAMP( OUTR . `col_int_not_null` ) AS X FROM BB AS OUTR WHERE OUTR . `col_text_not_null` IN ( SELECT INNR . `col_int_key` AS Y FROM D AS INNR WHERE INNR . `col_char_not_null_key` >= INNR . `col_text` OR NOT OUTR . `col_int` IS NOT NULL ) OR NOT ( OUTR . `col_int_not_null_key` <= digit OR NOT OUTR . `col_text_not_null_key` IS NOT NULL ) GROUP BY OUTR . `col_int_not_null_key` HAVING X <> NULL ORDER BY OUTR . `col_int_key` , OUTR . `pk` | SELECT OUTR . `col_int_key` AS X FROM AA AS OUTR WHERE OUTR . `col_char_not_null_key` NOT IN ( SELECT INNR . `col_int_key` AS Y FROM BB AS INNR WHERE OUTR . `pk` <= digit ) OR NOT OUTR . `col_char` < _char(1) ORDER BY OUTR . `col_text_not_null_key` , OUTR . `pk` | SELECT STD( OUTR . `col_text_not_null` ) AS X FROM D AS OUTR WHERE NOT EXISTS ( SELECT INNR . `col_text_key` AS Y FROM CC AS INNR WHERE INNR . `col_char_not_null_key` < _char(1) ) AND OUTR . `col_int_key` > digit AND OUTR . `col_int` <= digit ORDER BY OUTR . `col_text` , OUTR . `pk` | SELECT STDDEV_SAMP( OUTR . `col_bigint_key` ) AS X FROM AA AS OUTR WHERE OUTR . `col_char` IN ( SELECT INNR . `col_int` AS Y FROM D AS INNR WHERE INNR . `col_char` = INNR . `col_text` OR NOT INNR . `col_int_not_null` <> INNR . `col_bigint` ORDER BY INNR . `col_bigint` ) AND OUTR . `col_bigint_key` IS NULL GROUP BY OUTR . `col_text_not_null` HAVING X >= _time ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` LIMIT digit | SET AUTOCOMMIT=OFF ; START TRANSACTION ; 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` IN (_quid, _quid) ORDER BY _field_list LIMIT 25 ; DELETE FROM _table WHERE `col_text_key` IN (_quid) ORDER BY _field_list LIMIT 3 ; 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 6 ; DELETE FROM _table WHERE `col_bigint_key` > _digit ORDER BY _field_list LIMIT 3 ; 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 _tinyint_unsigned ORDER BY _field_list LIMIT 10 ; SELECT X . _field_key FROM _table AS X LIMIT 5 LOCK IN SHARE MODE ; UPDATE _table SET `col_bigint_key` = 100 WHERE `col_bigint` >= 3 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 _field_key = _tinyint_unsigned ORDER BY _field_list LIMIT 25 ; UPDATE _table SET `col_int_key` = _digit WHERE `col_bigint` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 7 ; UPDATE _table SET `col_int_not_null_key` = 8 ORDER BY _field_list LIMIT 8 ; DELETE FROM _table WHERE `col_text_not_null` > _char 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_1024_key` IN (_char, _quid) ORDER BY _field_list LIMIT 25 ; UPDATE _table SET `col_bigint_key` = _digit ORDER BY _field_list LIMIT 7 ; DELETE FROM _table WHERE `col_int` BETWEEN 8 AND 7 ORDER BY _field_list LIMIT 4 ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X LIMIT 5 ; UPDATE _table SET `col_bigint` = 25 WHERE `col_char_1024` > _char ORDER BY _field_list LIMIT 5 ; COMMIT ; SET AUTOCOMMIT=ON | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned 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_int` BETWEEN _digit AND _tinyint_unsigned ORDER BY _field_list LIMIT 10 ; DELETE FROM _table WHERE `col_char_10` IN (_char, _quid, _char) ORDER BY _field_list LIMIT 3 ; UPDATE _table SET `col_int` = _digit WHERE `col_int_not_null_key` IN (_digit) ORDER BY _field_list LIMIT 5 ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN 2 AND 7 ORDER BY _field_list LIMIT 6 ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 6 FOR UPDATE ; COMMIT ; SET AUTOCOMMIT=ON | SET AUTOCOMMIT=OFF ; START TRANSACTION ; UPDATE _table SET `col_int_key` = _digit WHERE `col_text` = _char ORDER BY _field_list LIMIT 8 ; DELETE FROM _table WHERE `col_int_key` IN (_tinyint_unsigned, _digit, _int_unsigned, _tinyint_unsigned) ORDER BY _field_list LIMIT 4 ; SELECT X . `pk` FROM _table AS X WHERE X . `col_bigint` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 ; UPDATE _table SET `col_bigint` = _digit WHERE `col_char_1024_not_null` IN (_quid, _char) 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 (_tinyint_unsigned) ORDER BY _field_list LIMIT 10 ; UPDATE _table SET `col_bigint` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 6 ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _varchar(1) , _tinyint_unsigned , _int_unsigned , _digit , _digit ) LIMIT 7 FOR UPDATE ; SELECT X . `pk` FROM _table AS X WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key < _digit 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_text_not_null` IN (_quid) ORDER BY _field_list LIMIT 10 ; UPDATE _table SET `col_int_key` = 2 WHERE `col_text_not_null_key` IN (_char) ORDER BY _field_list LIMIT 7 ; COMMIT ; SET AUTOCOMMIT=ON | DELETE FROM _table WHERE `col_int_not_null_key` < _digit ORDER BY _field_list LIMIT 1 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE `col_text_key` IN (_char, _quid) ORDER BY _field_list LIMIT 3 ; 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 100 ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _tinyint_unsigned , _varchar(1) , _varchar(1) , _varchar(1) , _tinyint_unsigned ) LIMIT 8 ; DELETE FROM _table WHERE `col_char_10_not_null_key` IN (_quid, _quid) ORDER BY _field_list LIMIT 1 ; COMMIT ; SET AUTOCOMMIT=ON | SELECT * FROM _table AS X LIMIT 6 LOCK IN SHARE MODE | SET AUTOCOMMIT=OFF ; START TRANSACTION ; 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) , _tinyint_unsigned , _digit ) LIMIT 8 FOR UPDATE ; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 6 ; 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` <= _quid ORDER BY _field_list LIMIT 50 ; UPDATE _table SET `col_int` = 4 WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) 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 _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 25 ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_10` > _char ORDER BY _field_list LIMIT 6 ; COMMIT ; SET AUTOCOMMIT=ON | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE `col_char_1024_not_null` IN (_char) ORDER BY _field_list LIMIT 1 ; SELECT X . _field_key FROM _table AS X WHERE X . _field_key IN ( _tinyint_unsigned , _digit , _tinyint_unsigned , _varchar(1) , _tinyint_unsigned ) LIMIT 7 FOR UPDATE ; UPDATE _table SET `col_bigint` = 2 WHERE int_field BETWEEN 3 AND 5 ORDER BY _field_list LIMIT 8 ; ROLLBACK TO SAVEPOINT A ; COMMIT ; SET AUTOCOMMIT=ON | DELETE FROM _table WHERE `pk` = _digit ORDER BY _field_list LIMIT 1 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; 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 ; SELECT X . _field_key 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 ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _digit 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_char_10_not_null` < _quid ORDER BY _field_list LIMIT 50 ; COMMIT ; SET AUTOCOMMIT=ON | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE FROM OUTR1.*, OUTR2.* USING D AS OUTR1 LEFT OUTER JOIN D AS OUTR2 ON ( OUTR1 . `col_date_key` = OUTR2 . `col_date_key` ) JOIN E AS OUTR3 ON ( OUTR1 . `col_varchar_key` = OUTR3 . `col_varchar_key` ) WHERE OUTR1 . `col_varchar_key` IN ( SELECT INNR1 . `col_varchar_nokey` AS y FROM BB AS INNR1 WHERE INNR1 . `col_date_key` IS NULL ORDER BY INNR1 . `col_int_key` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY D AS OUTR1, D AS OUTR2 SET OUTR1.`col_varchar_key` = -1, OUTR2.`col_varchar_key` = NULL WHERE OUTR1.`pk` IN ( SELECT _digit UNION SELECT _digit ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE LOW_PRIORITY IGNORE OUTR1.* FROM B AS OUTR1 LEFT JOIN E AS OUTR2 ON ( OUTR1 . `pk` = OUTR2 . `col_int_key` ) RIGHT JOIN A AS OUTR3 ON ( OUTR1 . `pk` = OUTR3 . `col_int_key` ) WHERE ( OUTR1 . `col_varchar_key` , OUTR1 . `col_varchar_nokey` ) IN ( SELECT INNR1 . `col_varchar_key` AS x , INNR1 . `col_varchar_key` AS y FROM DD AS INNR1 WHERE OUTR1 . `pk` IS NOT NULL ORDER BY INNR1 . `col_varchar_key` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE LOW_PRIORITY D AS OUTR1 LEFT JOIN A AS OUTR2 ON ( OUTR1 . `col_varchar_key` = OUTR2 . `col_varchar_nokey` ) JOIN B AS OUTR3 ON ( OUTR1 . `col_int_nokey` = OUTR3 . `col_int_key` ) SET OUTR1.`col_int_nokey` = _char(256) WHERE OUTR1 . `col_int_nokey` NOT IN ( SELECT DISTINCT INNR1 . `col_int_key` AS y FROM DD AS INNR2 INNER JOIN AA AS INNR1 ON ( INNR2 . `col_datetime_key` <= INNR1 . `col_date_nokey` ) WHERE INNR1 . `col_datetime_key` < INNR1 . `col_datetime_nokey` AND OUTR2 . `col_date_key` BETWEEN date AND date ORDER BY INNR1 . `col_varchar_nokey` ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE B AS OUTR1 JOIN D AS OUTR2 ON ( OUTR1 . `col_int_key` = OUTR2 . `col_int_key` ) SET OUTR1.`col_varchar_nokey` = NULL, OUTR2.`col_varchar_nokey` = _data WHERE OUTR1 . `col_varchar_key` IN ( SELECT INNR1 . `col_varchar_nokey` AS y FROM AA AS INNR1 WHERE INNR1 . `col_date_key` IS NULL ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE IGNORE FROM OUTR1.* USING A AS OUTR1 JOIN D AS OUTR2 ON ( OUTR1 . `col_int_nokey` = OUTR2 . `col_int_nokey` ) LEFT OUTER JOIN E AS OUTR3 ON ( OUTR1 . `pk` = OUTR3 . `col_int_key` ) WHERE OUTR1 . `col_varchar_key` IN ( SELECT _char UNION SELECT _char ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE IGNORE FROM OUTR1.*, OUTR2.* USING B AS OUTR1 RIGHT OUTER JOIN A AS OUTR2 ON ( OUTR1 . `col_int_nokey` = OUTR2 . `col_int_nokey` ) WHERE OUTR1 . `col_int_nokey` IN ( SELECT INNR1 . `pk` AS y FROM BB AS INNR1 WHERE OUTR1 . `col_int_key` <= digit ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } DELETE LOW_PRIORITY OUTR1.* FROM D AS OUTR1 LEFT OUTER JOIN E AS OUTR2 ON ( OUTR1 . `col_int_key` = OUTR2 . `pk` ) LEFT OUTER JOIN C AS OUTR3 ON ( OUTR1 . `col_date_nokey` = OUTR3 . `col_date_nokey` ) WHERE OUTR1 . `col_varchar_key` <= ( SELECT DISTINCT INNR1 . `col_varchar_key` AS y FROM AA AS INNR1 WHERE OUTR1 . `col_datetime_nokey` IS NULL ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE B AS OUTR1, E AS OUTR2 SET OUTR1.`col_varchar_nokey` = 0 WHERE OUTR1.`col_varchar_nokey` IN ( SELECT INNR1 . `col_varchar_nokey` AS y FROM DD AS INNR2 RIGHT JOIN BB AS INNR1 ON ( INNR2 . `col_varchar_nokey` > INNR1 . `col_varchar_nokey` ) WHERE INNR1 . `pk` >= digit ) ; ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } UPDATE E AS OUTR1 RIGHT OUTER JOIN C AS OUTR2 ON ( OUTR1 . `col_datetime_nokey` = OUTR2 . `col_date_nokey` ) LEFT OUTER JOIN A AS OUTR3 ON ( OUTR1 . `col_int_nokey` = OUTR3 . `col_int_key` ) SET OUTR1.`col_varchar_key` = _varchar(256) WHERE OUTR1 . `col_int_nokey` > ( SELECT DISTINCT INNR1 . `col_int_key` AS y FROM CC AS INNR1 WHERE INNR1 . `col_int_nokey` <= INNR1 . `pk` OR OUTR2 . `col_varchar_nokey` <= _varchar(1) ) ; ROLLBACK | SELECT * FROM supplier WHERE s_acctbal BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned OR s_nationkey >= { $prng->uint16(0,24) } ; 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' , _digit , { "'".$prng->int(1,10).'-'.$prng->int(100,999).'-'.$prng->int(100,999).'-'.$prng->int(1000,9999)."'" } , { $prng->int(-999,9999) } , 'AUTOMOBILE' , 'sentence' ) , ( _tinyint_unsigned , { "'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) } , 'BUILDING' , 'sentence' ) ; INSERT INTO part ( p_partkey , p_name , p_mfgr , p_brand , p_type , p_size , p_container , p_retailprice , p_comment ) VALUES ( _tinyint_unsigned , 'words words' , 'Manufacturer1', {"'Brand".$prng->int(1,5).$prng->int(1,5)."'" } , 'types1 PLATED types3' , { $prng->int(1,50) } , 'container1 container2' , _tinyint_unsigned , 'sentence' ) ; COMMIT | DELETE FROM nation WHERE n_nationkey < _digit AND n_nationkey = _digit ; INSERT INTO region ( r_regionkey , r_name , r_comment ) SELECT 1 , r_name , r_comment FROM region WHERE r_regionkey BETWEEN 1 AND 2 + 3 AND r_regionkey = 4 ORDER BY r_regionkey ; SELECT * FROM customer WHERE c_custkey BETWEEN _tinyint_unsigned AND { $prng->uint16(1,150) } + _tinyint_unsigned AND c_custkey BETWEEN { $prng->uint16(1,150) } AND _tinyint_unsigned + _digit ; INSERT INTO region ( r_regionkey , r_name , r_comment ) SELECT 1 , r_name , r_comment FROM region WHERE r_regionkey <> 3 OR r_regionkey > 2 ORDER BY r_regionkey ; COMMIT | UPDATE nation SET n_comment = 'sentence' , n_name = 'GERMANY' , n_regionkey = 4 WHERE n_nationkey BETWEEN { $prng->uint16(0,24) } AND _digit + _digit AND n_nationkey = { $prng->uint16(0,24) } ; SELECT * FROM partsupp WHERE ps_supplycost BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND ps_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ; SELECT * FROM supplier WHERE s_acctbal BETWEEN _tinyint_unsigned AND _mediumint_unsigned + _tinyint_unsigned AND s_acctbal BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ; DELETE FROM supplier WHERE s_acctbal = _tinyint_unsigned OR s_suppkey BETWEEN _digit AND 10 + _digit ; UPDATE part SET p_container = 'container1 container2' , p_type = 'types1 BURNISHED types3' , p_container = 'container1 container2' , p_name = 'words words' WHERE p_retailprice BETWEEN _digit AND _digit + _tinyint_unsigned AND p_partkey <> _tinyint_unsigned ; 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_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,27), $year, $month, $prng->uint16(1,27)) } OR l_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit ; 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) } , 'BUILDING' , 'sentence' ) ; UPDATE region SET r_comment = 'sentence' , r_comment = 'sentence' , r_comment = 'sentence' WHERE r_regionkey BETWEEN 4 AND 4 + 1 AND r_regionkey BETWEEN 1 AND 4 + 3 ; SELECT * FROM partsupp WHERE ps_supplycost BETWEEN _mediumint_unsigned AND _mediumint_unsigned + _tinyint_unsigned AND ps_supplycost = _tinyint_unsigned ; COMMIT | INSERT INTO partsupp ( ps_partkey , ps_suppkey , ps_availqty , ps_supplycost , ps_comment ) VALUES ( _tinyint_unsigned , 10 , { $prng->int(1,9999) } , _tinyint_unsigned , 'sentence' ) ; 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' ) , ( 10 , { "'Supplier".chr(35).'00000000'.$prng->int(1,5)."'" } , '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) } , 'sentence' ) , ( _digit , { "'Supplier".chr(35).'00000000'.$prng->int(1,5)."'" } , '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) } , 'sentence' ) ; INSERT INTO partsupp ( ps_partkey , ps_suppkey , ps_availqty , ps_supplycost , ps_comment ) VALUES ( _tinyint_unsigned , 10 , { $prng->int(1,9999) } , _tinyint_unsigned , 'sentence' ) , ( _tinyint_unsigned , _digit , { $prng->int(1,9999) } , _tinyint_unsigned , 'sentence' ) , ( _tinyint_unsigned , 10 , { $prng->int(1,9999) } , _tinyint_unsigned , 'sentence' ) ; 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 ) VALUES ( { $prng->uint16(1,1500) } , _tinyint_unsigned , _digit , _digit , { $prng->int(1,50) } , _tinyint_unsigned , 0.03 , 0.01 , 'R' , 'O' , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , 'TAKE BACK RETURN' , 'RAIL' , 'sentence' ) , ( _tinyint_unsigned , _tinyint_unsigned , _digit , _digit , { $prng->int(1,50) } , _tinyint_unsigned , 0.0 , 0.02 , 'A' , 'F' , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , 'NONE' , 'RAIL' , 'sentence' ) , ( _tinyint_unsigned , 200 , _digit , _digit , { $prng->int(1,50) } , _tinyint_unsigned , 0.08 , 0.0 , 'A' , 'F' , '1992-01-08' , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } , '1998-11-27' , 'COLLECT COD' , 'TRUCK' , 'sentence' ) ; UPDATE region SET r_name = 'AFRICA' , r_comment = 'sentence' , r_name = 'AMERICA' , r_comment = 'sentence' , r_name = 'AMERICA' , r_name = 'EUROPE' WHERE r_regionkey BETWEEN 4 AND 3 + 3 AND r_regionkey = 2 ; SELECT * FROM customer WHERE c_acctbal < _tinyint_unsigned AND c_custkey BETWEEN { $prng->uint16(1,150) } AND { $prng->uint16(1,150) } + _tinyint_unsigned ; COMMIT | DELETE FROM part WHERE p_retailprice BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND p_retailprice BETWEEN _tinyint_unsigned AND _mediumint_unsigned + _tinyint_unsigned ; DELETE FROM region WHERE r_regionkey = 1 AND r_regionkey BETWEEN 2 AND 4 + 4 ; UPDATE nation SET n_comment = 'sentence' , n_comment = 'sentence' WHERE n_nationkey BETWEEN { $prng->uint16(0,24) } AND _digit + _tinyint_unsigned OR n_nationkey BETWEEN _digit AND { $prng->uint16(0,24) } + _tinyint_unsigned ; COMMIT | UPDATE customer SET c_mktsegment = 'HOUSEHOLD' WHERE c_custkey = _tinyint_unsigned AND c_custkey >= _tinyint_unsigned ; SELECT o_orderkey , o_custkey , o_orderstatus , o_orderpriority , o_clerk , o_shippriority , o_comment FROM orders WHERE o_totalprice BETWEEN _digit AND _tinyint_unsigned + _tinyint_unsigned AND o_custkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit ; SELECT * FROM customer WHERE c_custkey BETWEEN _tinyint_unsigned AND { $prng->uint16(1,150) } + _digit AND c_custkey = { $prng->uint16(1,150) } ; COMMIT | 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_receiptDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } OR l_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit ; INSERT INTO part ( p_partkey , p_name , p_mfgr , p_brand , p_type , p_size , p_container , p_retailprice , p_comment ) SELECT _tinyint_unsigned , p_name , p_mfgr , p_brand , p_type , p_size , p_container , p_retailprice , p_comment FROM part WHERE p_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND p_retailprice = _tinyint_unsigned ORDER BY p_partkey ; UPDATE orders SET o_shippriority = 0 WHERE o_totalprice = _mediumint_unsigned AND o_custkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ; COMMIT | UPDATE lineitem SET l_suppkey = 10 , l_shipinstruct = 'DELIVER IN PERSON' , l_linenumber = _digit , l_returnflag = 'A' , l_comment = 'sentence' WHERE l_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit AND l_quantity BETWEEN { $prng->int(1,50) } AND { $prng->int(1,50) } + _digit ; DELETE FROM part WHERE p_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND p_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit ; 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' ) , ( { $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' ) ; COMMIT | INSERT INTO region ( r_regionkey , r_name , r_comment ) SELECT 3 , r_name , r_comment FROM region WHERE r_regionkey BETWEEN 3 AND 4 + 2 AND r_regionkey <> 1 ORDER BY r_regionkey ; 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_suppkey <> _digit AND l_shipDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,27)) } ORDER BY l_orderkey , l_linenumber ; UPDATE supplier SET s_address = 'words words' WHERE s_acctbal > _tinyint_unsigned AND s_nationkey BETWEEN _digit AND _digit + _tinyint_unsigned ; SELECT * FROM nation WHERE n_nationkey > { $prng->uint16(0,24) } AND n_nationkey BETWEEN { $prng->uint16(0,24) } AND _digit + _tinyint_unsigned ; COMMIT | UPDATE _table SET `col_int_nokey` = _digit WHERE `col_int_nokey` = _digit | INSERT INTO _table ( `col_int_nokey`, `col_int_key` ) VALUES ( _digit , _digit ) , ( _digit , _digit ) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | /*!50400 ALTER TABLE _letter CHECK PARTITION p2 */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _letter WHERE `col_int_nokey` = _digit | 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 | UPDATE _letter 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 _table WHERE `col_int_nokey` <> _digit | 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 | 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 ORDER BY `col_int_key` , `col_int_nokey` LIMIT 5 | SELECT GET_LOCK('LOCK', 65535) ; START TRANSACTION ; UPDATE _table AS X SET `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned , `col_int_key` = _tinyint_unsigned WHERE `col_int_nokey` > _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_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 ; ROLLBACK TO SAVEPOINT A ; 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 ; 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 ; COMMIT ; 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 ) ; 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 ; SAVEPOINT A ; 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 ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK TO 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_nokey` != _tinyint_unsigned ; INSERT INTO _table ( `col_int_key` , `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 ) ; 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 ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _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_key` <> _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 ; 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 ; COMMIT ; 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_key` = _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_nokey` = _tinyint_unsigned WHERE `col_int_nokey` != _tinyint_unsigned ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK TO SAVEPOINT A ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) 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_nokey` < _tinyint_unsigned ; COMMIT ; 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_nokey` , `col_int_key` ) 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_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_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_key` , `col_int_nokey` ) 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_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 ; SAVEPOINT A ; INSERT INTO _table ( `col_int_nokey` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; 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 ; 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 ; 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 ; SAVEPOINT A ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _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_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; COMMIT ; 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_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 ; 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 ; INSERT INTO _table ( `col_int_key` , `col_int_nokey` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; ROLLBACK TO 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_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 ; 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_key` != _tinyint_unsigned ; SAVEPOINT A ; INSERT INTO _table ( `col_int_nokey` , `col_int_key` ) 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_nokey` ) 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 ; COMMIT ; 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_key` <> _tinyint_unsigned ; INSERT INTO _table ( `col_int_nokey` , `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_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_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_key` = _tinyint_unsigned WHERE `col_int_nokey` = _tinyint_unsigned ; INSERT INTO _table ( `col_int_key` , `col_int_key` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) ; COMMIT ; SELECT RELEASE_LOCK('LOCK') | { $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 (`pk`, `col_int_key`, `col_int` { @idx_fields =("`pk`", "`col_int_key`", "`col_int`") ; "" }) ; { $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] } . `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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 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_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` { 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[invariant] + 1 ) ; { $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")); } 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_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 { $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 AND { $int_idx_field } <= ( _digit[invariant] + _digit ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field } >= 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 } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) ; { $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() } { $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_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 } 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 } IN (_digit, _digit, _digit) AND { $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 } 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 } 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")); } 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_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 { $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[invariant] AND { $int_idx_field } <= ( _digit + _digit ) ; { $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")); } 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() } { $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_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_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` { 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 { 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 { $char_idx_field } NOT BETWEEN _char AND '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 } NOT BETWEEN _char AND 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; DROP INDEX `test_idx` ON { $idx_table } | { $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_varchar_1024_latin1`( 200 ) , `col_varchar_1024_utf8`( 37 ) {@idx_fields = ("`col_varchar_1024_latin1`", "`col_varchar_1024_utf8`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT 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 = $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() } { $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_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` { 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] } . `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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field } >= _char AND { $char_idx_field } < 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char) AND { $char_idx_field } IS NULL AND { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' OR { $char_idx_field } NOT BETWEEN _char AND 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field } NOT BETWEEN _char AND 'z' ; { $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")); } 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` = { 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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= _char AND { $char_idx_field } NOT BETWEEN _char AND 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' ; { $tables=0 ; $fields = 0 ; "" } SELECT 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() } { $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_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` { 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 } { $stack->set("left",$stack->get("result")); } RIGHT OUTER 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() } { $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_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_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_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] } . `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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char, _char) AND { $char_idx_field } IS NOT NULL OR { $char_idx_field } IN (_char, _char) OR { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { "alias".$prng->int(1,$tables) } . `pk` IS NULL ; { $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")); } 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` { 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 } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= _english AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _quid AND { $char_idx_field } < _char ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ASC ; { $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` = { 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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char, _char) AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' OR { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field } NOT LIKE ( '_' ) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' OR { $char_idx_field } IN (_char, _char) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } LIKE ( _char ) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' 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 = $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")); } 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_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 } { $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_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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _quid AND { $char_idx_field } < 'zzzz' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT LIKE ( 'a%' ) AND { $char_idx_field } NOT BETWEEN _char AND 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char, _char, _char) AND { $char_idx_field } LIKE ( _quid ) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char) AND { $char_idx_field } IS NOT NULL ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; DROP INDEX `test_idx` ON { $idx_table } | { $idx_table = '' ; @idx_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")); } 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 } 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 } = 25 ORDER BY { "field".$prng->int(1,$fields) } ASC ; { $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] } . `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 } IN (_digit) ; { $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(); 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 OR { $int_idx_field } IN (100, _digit, _digit) OR { $int_idx_field } IN (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 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] } . `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` { 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%' ) OR ( { "alias".$prng->int(1,$tables) } . `col_varchar_10_latin1_key` <> _char OR { "alias".$prng->int(1,$tables) } . `col_int_key` >= _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_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 } 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 } < _quid AND { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { $char_idx_field } NOT LIKE ( 'a%' ) 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 } LIKE ( '_' ) | { $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`, `pk` { @idx_fields =("`col_int_key`", "`col_int`", "`pk`") ; "" }) ; { $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 OUTER 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] } . `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_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[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + digit ) ; { $tables=0 ; $fields = 0 ; "" } SELECT 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 = $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_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 } >= _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] + 30 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _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")); } RIGHT 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 } > _digit AND { $int_idx_field } < ( _digit + 2 ) 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] + 2 ) 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 } BETWEEN _char AND 'z' AND { "alias".$prng->int(1,$tables) } . _field IS NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $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` = { 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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + 50 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) ; { $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() ; my $x = $idx_table." AS alias".++$tables; my @s=($x); $stack->pop(\@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT 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")); } 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` { 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 OUTER 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` { 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_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_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` { 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] } . `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 AND { $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 } , alias2 . _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 } , 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 OUTER 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` = { 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_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 } IN (_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[invariant] AND { $int_idx_field } <= ( _digit + _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' ; DROP INDEX `test_idx` ON { $idx_table } | { $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_varchar_10_utf8`( 1 ) , `col_varchar_1024_utf8`( 200 ) {@idx_fields = ("`col_varchar_10_utf8`", "`col_varchar_1024_utf8`") ; "" }) ; { $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 = $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_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 } > _char AND { $char_idx_field } < 'z' OR { $char_idx_field } >= _char AND { $char_idx_field } < _quid AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'zzzz' AND { $char_idx_field } > _char AND { $char_idx_field } < _english AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { $char_idx_field } >= _english AND { $char_idx_field } < _char OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $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 } > _char AND { $char_idx_field } < 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } LIKE ( '_%' ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ; { $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_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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } LIKE ( _quid ) OR { $char_idx_field } LIKE ( '_' ) OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char, _char) OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IS NOT NULL OR { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } LIKE ( _char ) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char, _char) ; { $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 = $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] } . `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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IS NULL 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 } , 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() } { $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_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")); } 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_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] } . `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 } 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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' ; { $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")); } 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` = { 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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _quid AND { $char_idx_field } < 'zzzz' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT LIKE ( '_' ) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@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 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_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 } < 'z' OR { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $char_idx_field } > _quid AND { $char_idx_field } < 'zzzz' OR { $char_idx_field } IS NULL AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' ORDER BY { "field".$prng->int(1,$fields) } ; DROP INDEX `test_idx` ON { $idx_table } | { $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 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 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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + 25 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS 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 ) AND { "alias".$prng->int(1,$tables) } . `col_int_key` <> 30 ; { $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 = $idx_table." AS alias".++$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 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` { 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 } IS NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 1 ) OR { $int_idx_field } <> digit OR { $int_idx_field } NOT IN (75) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + _digit ) AND { $int_idx_field } IS NULL ORDER BY { "field".$prng->int(1,$fields) } ; { $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 } 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_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[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) AND { $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 } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != _digit OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) ; { $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 } 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() } { $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` = { 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] } . `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 } <> 50 AND { $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 AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } < _digit ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC ; { $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(); 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` = { 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_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 } IN (_digit) OR { $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 OR { $int_idx_field } BETWEEN _digit[invariant] AND (_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[invariant] + _digit ) OR { $int_idx_field } IN (_digit) OR { $int_idx_field } IS NOT NULL AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field } IS NOT NULL OR { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) ; { $tables=0 ; $fields = 0 ; "" } SELECT alias2 . _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 } , 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")); } 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 { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char) AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT LIKE ( _quid ) AND { $char_idx_field } > _quid AND { $char_idx_field } < _english AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' OR { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field } NOT IN (_char) AND { "alias".$prng->int(1,$tables) } . `pk` = { "alias".$prng->int(1,$tables) } . `col_int` ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC ; DROP INDEX `test_idx` ON { $idx_table } | { $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 (`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 OUTER 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] } . `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_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` { 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[invariant] + 2 ) ; { $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_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 } WHERE { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT IN (_digit, 30, 30, _digit) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (65) AND { "alias".$prng->int(1,$tables) } . `col_int` <= { "alias".$prng->int(1,$tables) } . `pk` ; { $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_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` { 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[invariant] + 1 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 1000 OFFSET _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")); } 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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> digit OR { $int_idx_field } NOT IN (_digit, 20) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 10 ) OR { $int_idx_field } <> digit OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) 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[invariant] AND { $int_idx_field } <= ( _digit + _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] + 1 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT IN (_digit) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC ; { $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] } . `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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != digit OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) 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 } BETWEEN _char AND 'z' ; { $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_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` { 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 } >= _char AND { $char_idx_field } <= 'z' ; DROP INDEX `test_idx` ON { $idx_table } | { $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 (`pk`, `col_int_key`, `col_int` { @idx_fields =("`pk`", "`col_int_key`", "`col_int`") ; "" }) ; { $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 = $idx_table." 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` = { 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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 10 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $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 } IS NULL OR { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) AND ( ( { "alias".$prng->int(1,$tables) } . `col_varchar_10_latin1_key` <> _char 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 } > _english AND { $char_idx_field } <= 'zzzz' 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 } > 65 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[invariant] + _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 } IN (_digit) OR { $int_idx_field } <> _digit ) AND { "alias".$prng->int(1,$tables) } . _field IS NOT NULL ) ; { $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_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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field } != digit OR { $int_idx_field } IN (_digit, digit) 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 } >= _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[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) OR { $int_idx_field } NOT IN (_digit, _digit) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <= _digit OR { $int_idx_field } IS NOT NULL ORDER BY { "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 = $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_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 { $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 { "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 = $idx_table." 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 } 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 AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 35 ) OR { $int_idx_field } 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 + digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != _digit AND ( { "alias".$prng->int(1,$tables) } . `pk` != { "alias".$prng->int(1,$tables) } . `col_int` AND { "alias".$prng->int(1,$tables) } . `pk` IS NULL ) ; { $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 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] } . `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] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + 75 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (_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 ) OR { $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 = ("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 + _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 ) 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 = ("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 } , 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] } . `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] + 25 ) AND { "alias".$prng->int(1,$tables) } . _field IS NOT NULL ORDER BY { "field".$prng->int(1,$fields) } DESC ; DROP INDEX `test_idx` ON { $idx_table } | { $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`, `pk` { @idx_fields =("`col_int_key`", "`col_int`", "`pk`") ; "" }) ; { $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 } , alias2 . _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] } . `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 } = 100 OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $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 } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) ; { $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")); } 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` = { 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 } IN (_digit) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) AND { $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 } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $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 } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $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 } , alias2 . _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 } , 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")); } 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] } . `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[invariant] + 2 ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $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 } , 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(); 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_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 } 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 } <> _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_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_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 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) ; { $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] } . `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 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_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 } { $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_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 } IN (_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 } <> 50 OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 1 ) 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 OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 5 ) OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) OR { $int_idx_field } != _digit OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 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 } <= 'zzzz' AND { $char_idx_field } BETWEEN _char AND '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 } BETWEEN _char AND 'z' AND { $char_idx_field } LIKE ( '_%' ) 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 } BETWEEN _digit[invariant] AND (_digit[invariant] + digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) AND { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _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 } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) ORDER BY { "field".$prng->int(1,$fields) } ; DROP INDEX `test_idx` ON { $idx_table } | { $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 (`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 } , alias1 . _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_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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + digit ) ORDER BY { "field".$prng->int(1,$fields) } , { "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 = $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_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 { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > digit OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 6 ) OR { $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] + 2 ) OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { $int_idx_field } < _digit AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } = 75 OR { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC ; { $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() } { $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_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 } 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_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 OR { $int_idx_field } <> _digit AND { "alias".$prng->int(1,$tables) } . `col_varchar_10_utf8_key` > { "alias".$prng->int(1,$tables) } . `col_varchar_10_utf8` ; { $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 } , 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")); } 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_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 ; { $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() } { $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 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 } 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 } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field = ("alias".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT IN (_digit, _digit, _digit, digit, _digit, digit, _digit) ; { $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 } 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_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 } NOT IN (_digit, _digit, _digit) ; DROP INDEX `test_idx` ON { $idx_table } | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) LIMIT 5 | REPLACE INTO _table ( _field_no_pk , _field_no_pk ) VALUES ( _digit , _int_unsigned ) , ( _int_unsigned , _digit ) | SELECT X . `pk` FROM _table AS X WHERE X . _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) LIMIT 5 | INSERT IGNORE INTO _table (`pk`) VALUES (NULL) | DELETE IGNORE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 3 | ROLLBACK ; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED | DELETE IGNORE FROM _table WHERE _field_key BETWEEN 2 AND 7 ORDER BY _field_list LIMIT 1 | SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 | SELECT X . _field_key FROM _table AS X WHERE X . _field_key BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 | SAVEPOINT A | { $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` . 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_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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`. CC 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`. 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_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`. 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) } ; 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) } ; 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` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; 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_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; 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_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_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_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`. 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_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) } ; 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` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_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 } 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` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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_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`. 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) } ; 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` . AA ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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_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`. D 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` . 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` . 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_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; 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`. 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) } ; 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` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; 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`. 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) } ; 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` . D ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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_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) } ; 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) } ; 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_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_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_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; 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`. BB 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` . D ; 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_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_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_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`. 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) } ; 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` . 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_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; 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_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`. 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 ; 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_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_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` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; 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` . 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` . 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_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; 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_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; 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` . AA ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; 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 ; 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_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_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`. BB 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_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) } ; 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` . DD ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; 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` . BB ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; 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` . B ; 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 ; 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` . A ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; 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` . CC ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024_not_null` ; 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_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_1024` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; SELECT 1 | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 ; ROLLBACK | START TRANSACTION ; INSERT INTO _table ( `pk` ) VALUES ( NULL ) , ( NULL ) , ( NULL ) ; ROLLBACK ; COMMIT | START TRANSACTION ; INSERT INTO _table ( `pk` , `col_int_key` , `col_int`) VALUES ( NULL , 100 , 100 ) , ( NULL , 100 , 100 ) ; SAVEPOINT A | START TRANSACTION ; INSERT INTO _table ( `pk` , `col_int_key` , `col_int`) VALUES ( NULL , 100 , 100 ) ; ROLLBACK | START TRANSACTION ; INSERT INTO _table ( `pk` ) VALUES ( NULL ) ; ROLLBACK ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; DELETE FROM _table WHERE `pk` > _tinyint_unsigned AND `pk` > 10 LIMIT 9 ; COMMIT | START TRANSACTION ; REPLACE INTO _table ( `pk` , `col_int_key` , `col_int` ) VALUES ( NULL, 100 , 100 ) ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; DELETE FROM _table WHERE `pk` = _tinyint_unsigned AND `pk` > 10 ; SAVEPOINT A | START TRANSACTION ; DELETE FROM _table WHERE `pk` > _tinyint_unsigned AND `pk` > 10 LIMIT 4 ; ROLLBACK | START TRANSACTION ; DELETE FROM _table WHERE `pk` > _tinyint_unsigned AND `pk` > 10 LIMIT 3 ; ROLLBACK | UPDATE _table SET _field = _digit WHERE _field = _digit LIMIT _digit | DELETE FROM _table WHERE _field = _digit LIMIT _digit | COMMIT | SELECT _field FROM _table WHERE _field > _digit | INSERT INTO _table ( `col_int_key`, `col_int` ) VALUES ( _digit , _digit ) | SAVEPOINT A | UPDATE _table SET _field = _digit WHERE _field = _digit LIMIT _digit | SELECT _field FROM _table WHERE _field IN ( _digit , _digit , _digit ) | INSERT INTO _table ( `col_int_key`, `col_int` ) VALUES ( _digit , _digit ) | START TRANSACTION | { @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] } . `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_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 } WHERE { "table".$prng->int(1,$tables) } . `pk` > { "table".$prng->int(1,$tables) } . `col_int_key` { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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")); } 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 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(); 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 } 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_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` { 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 (8) OR { "table".$prng->int(1,$tables) } . `pk` > 4 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` 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` { 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` <> 1 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } <= 6 ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table4 . `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 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_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 } { $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")); } 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_255` { 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_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 } { $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` > { "table".$prng->int(1,$tables) } . `col_int_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } != 2 AND { "field".$prng->int(1,$fields) } > 8) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM { $stack->push() } { $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_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] } . `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 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 } 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 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_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 } WHERE ( { "table".$prng->int(1,$tables) } . `pk` <= 5 AND { "table".$prng->int(1,$tables) } . `col_int` <> 1 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT COUNT( DISTINCT table2 . `col_int` ) AS {"field".++$fields } , table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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")); } 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_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] + 7 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT SQL_SMALL_RESULT 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` { 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 (6) HAVING ((({ "field".$prng->int(1,$fields) } >= 9 AND { "field".$prng->int(1,$fields) } = _tinyint_unsigned) OR { "field".$prng->int(1,$fields) } < 2) AND { "field".$prng->int(1,$fields) } >= 7) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( table2 . `pk` ) AS {"field".++$fields } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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")); } RIGHT 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")); } 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 } 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) } . `pk` != { "table".$prng->int(1,$tables) } . `pk` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `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")); } 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_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_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_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 } WHERE { "table".$prng->int(1,$tables) } . `pk` < { "table".$prng->int(1,$tables) } . `col_int` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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_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_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_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 } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 8 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 { $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_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 | 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_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_not_null` = `col_int` WHERE col_int_not_null_key = _digit[invariant] ; COMMIT ; SELECT col_int FROM _table | UPDATE LOW_PRIORITY IGNORE _table AS X SET _field_no_pk = _tinyint_unsigned WHERE X . _field_key BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 8 | INSERT LOW_PRIORITY INTO _table ( _field_no_pk ) SELECT _field_key FROM _table AS X WHERE X . _field_key BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 5 | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 8 | UPDATE LOW_PRIORITY _table AS X SET _field_no_pk = _int_unsigned WHERE X . _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 5 | DELETE LOW_PRIORITY IGNORE FROM _table WHERE _field_key IN ( _digit , _varchar(1) , _digit , _int_unsigned , _int_unsigned ) ORDER BY _field_list LIMIT 1 | INSERT LOW_PRIORITY INTO _table (`pk`) VALUES (NULL) | INSERT LOW_PRIORITY IGNORE INTO _table (`pk`) VALUES (NULL) | UPDATE LOW_PRIORITY _table AS X SET _field_no_pk = _tinyint_unsigned WHERE X . _field_key IN ( _varchar(1) , _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned , _varchar(1) ) ORDER BY _field_list LIMIT 7 | UPDATE LOW_PRIORITY IGNORE _table AS X SET _field_no_pk = _int_unsigned WHERE X . _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 5 | DELETE LOW_PRIORITY QUICK IGNORE FROM _table WHERE _field_key = _int_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 } 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` 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 } 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 | CREATE TABLE IF NOT EXISTS b ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MEMORY SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM z 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 } 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 } ) WHERE `col_int_nokey` > _digit | /*!50400 ALTER TABLE s 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 } */ | /*!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 } 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 | 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 } z 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 h COALESCE PARTITION 1 */ | 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 } 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 } ) | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_EQUALS( ( SELECT linestring_nokey FROM linestring WHERE pk = { $prng->int(1,3726) } ) , linestring_key ) AND 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(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) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_TOUCHES( GeomFromText('MULTILINESTRING( ( { $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(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(4000,4100)." ".$prng->int(3000,3100) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | 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(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) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_TOUCHES( GeomFromText('MULTILINESTRING( ( { $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(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_INTERSECTS( GeomFromText('MULTILINESTRING( ( { $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(3000,5000)." ".$prng->int(2000,4000) } ) , ( { $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) } , { $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(4000,4100)." ".$prng->int(3000,3100) } , { $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) } ) )') , 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(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) } , { $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(4000,4100)." ".$prng->int(3000,3100) } , { $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(3000,5000)." ".$prng->int(2000,4000) } ) )') , linestring_nokey ) AND ST_DISJOINT( GeomFromText('MULTILINESTRING( ( { $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(3750,4250)." ".$prng->int(2750,3250) } ) )') , linestring_key ) AND ST_CROSSES( GeomFromText('MULTILINESTRING( ( { $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(3000,5000)." ".$prng->int(2000,4000) } , { $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(4000,4100)." ".$prng->int(3000,3100) } , { $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(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) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE ST_EQUALS( ( SELECT linestring_nokey FROM linestring WHERE pk = { $prng->int(1,3726) } ) , linestring_key ) OR ST_CONTAINS( GeomFromText('POLYGON( ( { $start_x = $prng->int(3750,4250) ; $start_y = $prng->int(2750,3250) ; "$start_x $start_y"; } , { $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(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { "$start_x $start_y" } ) )') , linestring_key ) AND ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( { $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(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) } ) , ( { $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(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) } , { $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(3750,4250)." ".$prng->int(2750,3250) } , { $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(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(4000,4100)." ".$prng->int(3000,3100) } ) , ( { $prng->int(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | SELECT AsText(linestring_nokey) FROM linestring /*executor1 FORCE KEY ( linestring_key ) */ WHERE 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_DISJOINT( GeomFromText('LINESTRING( { $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('LINESTRING( { $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(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) } )') , linestring_key ) AND ST_TOUCHES( GeomFromText('MULTILINESTRING( ( { $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(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(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_INTERSECTS( GeomFromText('LINESTRING( { $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_CONTAINS( GeomFromText('POLYGON( ( { $start_x = $prng->int(3750,4250) ; $start_y = $prng->int(2750,3250) ; "$start_x $start_y"; } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { "$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_TOUCHES( GeomFromText('MULTILINESTRING( ( { $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(3000,5000)." ".$prng->int(2000,4000) } , { $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(3750,4250)." ".$prng->int(2750,3250) } , { $prng->int(3000,5000)." ".$prng->int(2000,4000) } , { $prng->int(4000,4100)." ".$prng->int(3000,3100) } ) )') , linestring_key ) AND ST_Length( linestring_nokey ) > 1 | DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND _english ORDER BY `col_text` , `pk` LIMIT digit | UPDATE _table SET `col_text` = _quid WHERE `col_text` = _quid ORDER BY `col_char_10` , `pk` LIMIT 65535 | UPDATE _table SET `col_bigint_not_null_key` = 50 ORDER BY `col_bigint_key` , `pk` LIMIT _tinyint_unsigned | SELECT * FROM _table WHERE `col_bigint_key` BETWEEN _quid AND _digit ORDER BY `col_int_key` , `pk` LIMIT 65535 | SELECT * FROM _table WHERE `col_char_1024_key` != _digit ORDER BY `col_char_10_not_null_key` , `pk` LIMIT _tinyint_unsigned | SELECT * FROM _table WHERE `col_char_10_key` BETWEEN _english AND _digit ORDER BY `col_char_1024` , `pk` LIMIT _tinyint_unsigned | INSERT INTO _table ( `col_char_10_key` , `col_bigint_key` ) VALUES ( _quid , _digit ) | INSERT INTO _table ( `col_char_10_not_null` , `col_int_not_null` ) VALUES ( _quid , _english ) | START TRANSACTION | SELECT * FROM _table WHERE `col_bigint_not_null_key` BETWEEN _quid AND _digit ORDER BY `col_char_1024` , `pk` LIMIT _tinyint_unsigned | SET AUTOCOMMIT=OFF ; START TRANSACTION ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 8 ; SAVEPOINT A ; DELETE FROM _table WHERE `col_char_255` IN (_quid) ORDER BY _field_list LIMIT 2 ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 5 ORDER BY _field_list LIMIT 3 ; COMMIT ; SET AUTOCOMMIT=ON | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 2 ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `pk` IN (2, _int_unsigned) ORDER BY _field_list LIMIT 7 ; DELETE FROM _table ORDER BY _field_list LIMIT 2 ; DELETE FROM _table WHERE `col_text_not_null` IN (_char) ORDER BY _field_list LIMIT 3 ; COMMIT ; SET AUTOCOMMIT=ON | SET AUTOCOMMIT=OFF ; START TRANSACTION ; SELECT * FROM _table AS X WHERE X . `col_int` BETWEEN 4 AND 5 LIMIT 8 LOCK IN SHARE MODE ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_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_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 ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 4 ; DELETE FROM _table WHERE `col_char_10_not_null_key` <= _char ORDER BY _field_list LIMIT 2 ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 6 ; COMMIT ; SET AUTOCOMMIT=ON | DELETE FROM _table WHERE `col_bigint_key` = _digit ORDER BY _field_list LIMIT 1 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table WHERE `col_int_not_null_key` BETWEEN _digit AND 8 ORDER BY _field_list LIMIT 2 ; 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_not_null` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 50 ; 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 ; DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 4 ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 3 ; 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_not_null` = _digit ORDER BY _field_list LIMIT 100 ; COMMIT ; 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_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 25 | DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) ORDER BY _field_list LIMIT 1 | SET AUTOCOMMIT=OFF ; START TRANSACTION ; DELETE FROM _table ORDER BY _field_list LIMIT 2 ; DELETE FROM _table WHERE `col_text` = _quid ORDER BY _field_list LIMIT 4 ; SELECT * FROM _table AS X LIMIT 6 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_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 ; COMMIT ; SET AUTOCOMMIT=ON | SELECT * FROM _table AS X WHERE X . _field_key < _varchar(1) LIMIT 7 FOR UPDATE | DELETE FROM _table WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 2 | 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 ) | 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*/ ; UPDATE _table SET `col_bigint` = _int_unsigned WHERE `col_int_not_null` IN (3, 2) ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_int_not_null` IN (50) ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null_key` IN (_char, _char) 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_key` IN (_char, _quid) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 2 WHERE `col_char_255_not_null` IN (_char) ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` <= '\\"' ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _varchar(1) ORDER BY _field_list LIMIT 8 /* 'foo' 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*/ ; UPDATE _table SET `col_bigint` = _digit WHERE `col_char_255_key` IN (_char, '\\\'') ORDER BY _field_list LIMIT 8 /* '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*/ ; 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 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 3 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `pk` 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 _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_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*/ | 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` <= _quid ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` BETWEEN _digit AND _tinyint_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10` IN (_char, _quid) 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` BETWEEN _digit AND 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_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 5 ORDER BY _field_list LIMIT 25 /*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 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` 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 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 10 WHERE `pk` IN (_digit, 8) ORDER BY _field_list LIMIT 5 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` BETWEEN _tinyint_unsigned AND _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table 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 ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_int_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 8 /* 'foo' 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 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` BETWEEN 3 AND _digit ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 8 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_char_255` = _char ORDER BY _field_list LIMIT 8 /* 'foo' Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X 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*/ ; UPDATE _table SET `col_int_not_null_key` = 5 WHERE _field_key > _digit ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE _field_key = _int_unsigned ORDER BY _field_list LIMIT 8 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 6 /* 'foo' Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 7 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 /* 'foo' 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 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_char_10` != 'If you need to translate Views labels into other languages, consider installing the Internationalization package\'s Views translation module.' LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO 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_bigint` = _tinyint_unsigned ORDER BY _field_list LIMIT 2 /*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 int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` != 3 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 2 WHERE `col_int_not_null_key` BETWEEN _digit AND 10 ORDER BY _field_list LIMIT 6 /* 'foo' 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` = _quid 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*/ | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) 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*/ ; 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_int_not_null_key` IN (_tinyint_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_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*/ ; 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` >= _tinyint_unsigned 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 int_field BETWEEN 2 AND 8 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` IN ('\\\'', '\\\'') ORDER BY _field_list LIMIT 50 /*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_char_10_not_null_key` <= '\\"' 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 4 AND 6 ORDER BY _field_list LIMIT 10 /*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*/ | UPDATE _table SET `col_int_not_null` = 2 WHERE `col_bigint` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 6 /* 'foo' 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 `pk` IN (50) ORDER BY _field_list LIMIT 8 /* 'foo' 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*/ ; UPDATE _table SET `col_int_key` = 6 WHERE `col_char_10_not_null_key` IN ('\\\'', _char, '\\\'') ORDER BY _field_list LIMIT 7 /* 'foo' Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` BETWEEN 25 AND _digit ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . `col_int_not_null` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*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*/ ; DELETE FROM _table WHERE `col_char_255_not_null` = _char 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_key` IN ('\\"') ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 10 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 5 /* 'foo' 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 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 `pk` != _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 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*/ ; 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_bigint` = _varchar(1) WHERE `col_bigint` BETWEEN 3 AND _digit 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*/ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias2 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } , B AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT SQL_SMALL_RESULT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` 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 { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` != _char ) ) OR { "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 { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } ASC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT CONCAT( alias1 . `col_varchar_nokey` , alias1 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias2" ; } . * FROM C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AS { "alias".++$tables } , B AS { "alias".++$tables } , BB AS { "alias".++$tables } ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_int_nokey` , { "alias".$prng->int(1,$tables) } . `col_int_nokey` ) IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_int_key` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_int_key` AS { "SQ".$subquery_idx."_field2" } FROM ( B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER 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_nokey` ) ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != 6 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT alias1 . `col_int_key` 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 } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SQL_SMALL_RESULT SUM( { "SQ".$subquery_idx."_alias2" ; } . `pk` ) AS { "SQ".$subquery_idx."_field1" } FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } RIGHT OUTER 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) } . `col_int_key` = { "alias".$prng->int(1,$tables) } . `pk` OR { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_key` > { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `pk` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , ( ( alias1 . `pk` ) * ( alias1 . `pk` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } INNER JOIN C AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT _char FROM DUAL ) IS NOT NULL ) AND alias1 . `pk` = _tinyint_unsigned { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } > 'USA' ORDER BY alias1 . _field_indexed DESC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } RIGHT OUTER JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT DISTINCT { "SQ".$subquery_idx."_alias1" ; } . * FROM ( B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } STRAIGHT_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` ) ) WHERE ( { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` <> 6 OR { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` <> { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` ) ) AS { "alias".++$tables } STRAIGHT_JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AS { "alias".++$tables } ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `col_int_nokey` ) ) ) 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_varchar_nokey` IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field1" } FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN ( B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } STRAIGHT_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` ) ) 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_varchar_key` > { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` AND { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` > { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN alias1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } , BB AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `pk` IN ( SELECT 6 FROM DUAL ) ) AND ( alias1 . `pk` IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) OR alias1 . `col_varchar_key` = _char[invariant] ) AND ( alias1 . `pk` <= { "alias".$prng->int(1,$tables) } . `col_int_key` AND { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` > { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) HAVING { "field".$prng->int(1,$fields) } != 'USA' ORDER BY alias1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SUM( alias2 . `col_int_nokey` ) AS { "field".++$fields } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "alias".++$tables } LEFT OUTER JOIN ( ( view_C AS { "alias".++$tables } INNER JOIN CC AS { "alias".++$tables } ON ({ "alias".$tables } . `col_varchar_key` = { "alias".($tables - 1) } . `col_varchar_nokey` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} AND { "alias".$prng->int(1,$tables) } . `col_int_key` >= ANY ( SELECT 7 FROM DUAL ) ) ) ) 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_varchar_nokey` , { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) 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 } STRAIGHT_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) } . `col_int_key` < 9 ) ) AND alias1 . `col_varchar_key` = _char AND { "alias".$prng->int(1,$tables) } . `col_varchar_key` <> _char { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } EXPLAIN EXTENDED SELECT MAX( alias1 . `col_int_key` ) AS { "field".++$fields } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MAX( { "SQ".$subquery_idx."_alias1" ; } . `pk` ) AS { "SQ".$subquery_idx."_field1" } FROM ( BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } , C 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) } . `pk` AND { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` = { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } INNER JOIN CC 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` ) ) WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` = { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` ) AS { "alias".++$tables } INNER JOIN A AS { "alias".++$tables } ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `col_int_key` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT _char FROM DUAL ) IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @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 } , 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 } , SUM( alias1 . `col_varchar_nokey` ) AS { "field".++$fields } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( alias1 . `col_varchar_nokey` , alias2 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( alias1 . `col_int_nokey` ) AS { "field".++$fields } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AS { "alias".++$tables } , ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SQ".$subquery_idx."_alias1" ; } . * FROM A AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT COUNT( { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` ) AS { "SQ".$subquery_idx."_field1" } FROM ( 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` ) ) ) IS NULL ) AND ( alias1 . `col_int_key` IN (_tinyint_unsigned) OR alias1 . `col_varchar_key` IN ('USA') ) AND { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT 5 FROM DUAL ) IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY alias1 . _field_indexed | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _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_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } , A AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <> ( SELECT MIN( { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` ) AS { "SQ".$subquery_idx."_field1" } FROM ( CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } , C AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) ) AND ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` <> _char AND alias1 . `col_int_nokey` <> { "alias".$prng->int(1,$tables) } . `pk` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != 5 ORDER BY alias1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 OFFSET _tinyint_unsigned | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } STRAIGHT_JOIN ( ( B AS { "alias".++$tables } INNER JOIN D AS { "alias".++$tables } ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `col_int_nokey` ) ) ) ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `col_int_nokey` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT _char FROM DUAL ) IS NULL ) AND alias1 . `pk` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) HAVING ({ "field".$prng->int(1,$fields) } <> _char(1) OR { "field".$prng->int(1,$fields) } <= 7) ORDER BY alias1 . _field_indexed DESC , alias1 . _field_indexed | INSERT INTO smf_log_actions (`log_time`,`id_log`,`id_member`,`ip`,`action`,`id_board`,`id_topic`,`id_msg`,`extra`) VALUES (_tinyint_unsigned,_mediumint_unsigned,_mediumint_unsigned,_varchar(16),REPEAT ( _varchar(2) , _tinyint_unsigned ),_mediumint_unsigned,_tinyint_unsigned,_tinyint_unsigned,_varchar(255)) | REPLACE INTO smf_themes (`id_member`,`id_theme`,`variable`,`value`) VALUES (_digit,_mediumint_unsigned,_varchar(2),_varchar(1)) | REPLACE INTO smf_themes (`id_theme`,`variable`,`value`,`id_member`) VALUES (_mediumint_unsigned,_varchar(2),_varchar(255),_tinyint_unsigned) | INSERT INTO smf_board_permissions (`id_profile`,`id_group`,`permission`) VALUES (_tinyint_unsigned,_tinyint_unsigned,_varchar(1)) | REPLACE INTO smf_log_topics (`id_msg`,`id_member`,`id_topic`) VALUES (_tinyint_unsigned,_mediumint_unsigned,_tinyint_unsigned) | INSERT IGNORE INTO smf_log_spider_stats (`id_spider`,`last_seen`,`stat_date`,`page_hits`) VALUES (_mediumint_unsigned,_tinyint_unsigned,_date,_digit) | UPDATE smf_messages SET subject = _varchar(255) WHERE id_topic = _digit AND id_msg != _tinyint_unsigned | DELETE FROM smf_board_permissions WHERE id_group IN (_tinyint_unsigned) | SELECT id_topic FROM smf_messages WHERE id_msg = _digit LIMIT 1 | UPDATE smf_messages SET id_topic = _tinyint_unsigned, id_board = _digit, icon = _varchar(255) WHERE id_msg IN(_tinyint_unsigned , _digit) | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'STATEMENT' ; $pick_mode = $prng->int(1,4) ; return $format } { if ($format eq 'STATEMENT') { $f0 = ''; $f1 = '/*'; $f2 = '*/' } else { $f0 = '/*'; $f1 = '*/'; $f2 = '' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " INSERT INTO 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_autoinc { return $m1 } table0_int { return $m2 } table1_myisam_int { 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 } ( _field , col_tinyint ) VALUES ( _date , _tinyint ) " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { 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 } table10_innodb_int_autoinc { return $m1 } table1_int { return $m2 } { 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 $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 } 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 } table10_int { return $m1 } table1_int { return $m2 } table10_myisam_int_autoinc { return $m3 } { 't2_base_innodb_'.abs($$) } { return $m4 } B SET A. _field = test . { 'f1_'.$pick_mode.'_'.abs($$) } () , B. _field = _time WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f0 . $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> UUID() ) { 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 = 0 ; return $format } { if ($format eq 'STATEMENT') { $f0 = ''; $f1 = '/*'; $f2 = '*/' } else { $f0 = '/*'; $f1 = '*/'; $f2 = '' } ; return undef } ; { 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_autoinc { return $m1 } table0_int { return $m2 } { 't1_base_myisam_'.abs($$) } { return $m3 } table1_innodb_int { return $m4 } SET _field = CONVERT( _set USING BINARY ) WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f0 . $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> FOUND_ROWS() ) { return $f2 } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | 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 */ SET @aux = @aux ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ COMMIT | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET GLOBAL BINLOG_FORMAT = ROW ; { 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_int { return $m1 } table1_int { return $m2 } table1_myisam_int_autoinc { return $m3 } table0_innodb_int { return $m4 } SET _field = CONVERT( _text(65535) USING UCS2 ) WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f0 . $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> RAND( _digit ) ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK TO SAVEPOINT A | COMMIT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ SET SESSION BINLOG_FORMAT = { $format = 'STATEMENT' ; $pick_mode = $prng->int(1,4) ; return $format } { if ($format eq 'STATEMENT') { $f0 = ''; $f1 = '/*'; $f2 = '*/' } else { $f0 = '/*'; $f1 = '*/'; $f2 = '' } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ PREPARE st1 FROM " INSERT HIGH_PRIORITY INTO 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_innodb_int_autoinc { return $m1 } table10_int_autoinc { return $m2 } { 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 $m3 } { 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 $m4 } ( _field , col_tinyint ) VALUES ( _timestamp , _tinyint ) , ( _varchar(1) , _tinyint ) " ; { 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 = STATEMENT ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test1` { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { 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 } { 't2_temp_innodb_'.abs($$) } { return $m1 } table10_int { return $m2 } { 't1_temp_myisam_'.abs($$) } { 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 } { 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 } table10_int_autoinc { return $m2 } table10_myisam_int { return $m3 } table1_innodb_int_autoinc { return $m4 } B SET A. _field = _date , B. _field = { if ($format eq 'STATEMENT') {return '/*'} } UUID() { if ($format eq 'STATEMENT') {return '*/ 17 '} } WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f0 . $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> ROW_COUNT() ) { return $f2 } " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ 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 } { 't2_temp_myisam_'.abs($$) } { return $m1 } table0_int { return $m2 } { 't1_base_myisam_'.abs($$) } { return $m3 } table0_innodb_int { return $m4 } SET _field = test1 . { 'f1_'.$pick_mode.'_'.abs($$) } () WHERE col_tinyint BETWEEN _tinyint[invariant] AND _tinyint[invariant] + 2 { return $f0 . $f1 } AND ( _field[invariant] IS NULL OR _field[invariant] <> ROW_COUNT() ) { return $f2 } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ COMMIT | 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 */ START TRANSACTION ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ START TRANSACTION | 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 */ REPLACE INTO 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 } table0_innodb_int_autoinc { return $m1 } table10_int_autoinc { return $m2 } table1_myisam_int_autoinc { return $m3 } table10_innodb_int { return $m4 } ( _field , col_tinyint ) VALUES ( { if ($format eq 'STATEMENT') {return '/*'} } UUID() { if ($format eq 'STATEMENT') {return '*/ 17 '} } , _tinyint ) ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK | 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 */ PREPARE st1 FROM " INSERT INTO { $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 } table0_int_autoinc { return $m2 } table0_myisam_int { return $m3 } { 't2_base_innodb_'.abs($$) } { return $m4 } ( _field , col_tinyint ) VALUES ( { if ($format eq 'STATEMENT') {return '/*'} } UUID() { if ($format eq 'STATEMENT') {return '*/ 17 '} } , _tinyint ) " ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ EXECUTE st1 ; DEALLOCATE PREPARE st1 { if ( ($prng->int(1,4) == 4) && ($pick_mode == 4) ) { $pick_mode = 3 } ; return undef } ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ USE `test` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK | 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 */ USE `test` ; { return '/*' . $pick_mode . '*/' } /* QUERY_IS_REPLICATION_SAFE */ ROLLBACK | UPDATE _table SET _field_no_pk = COLUMN_ADD( COLUMN_ADD( _field_no_pk , _tinyint_unsigned , _digit ) , _tinyint_unsigned , NULL AS DOUBLE , _digit , COLUMN_GET( COLUMN_CREATE( _digit , COLUMN_GET( COLUMN_CREATE( _tinyint_unsigned , NULL AS CHAR , _digit , _varchar(512) AS DATE ) , _tinyint_unsigned AS DOUBLE ) AS DOUBLE , _tinyint_unsigned , _tinyint_unsigned AS INTEGER ) , _digit AS DOUBLE ) AS DATETIME ) WHERE COLUMN_GET( COLUMN_CREATE( _digit , NULL ) , _tinyint_unsigned AS INTEGER ) IS NULL OR NOT COLUMN_GET( COLUMN_CREATE( _digit , _varchar(1) AS CHAR , _digit , NULL AS INTEGER ) , _tinyint_unsigned AS INTEGER ) > COLUMN_GET( COLUMN_CREATE( _tinyint_unsigned , NULL AS INTEGER ) , _digit AS CHAR ) ORDER BY pk LIMIT 1 | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _digit , _tinyint_unsigned ) | UPDATE _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , _varchar(1) AS DOUBLE ) WHERE NOT COLUMN_GET( COLUMN_ADD( _field_no_pk , _tinyint_unsigned , COLUMN_GET( _field_no_pk , _tinyint_unsigned AS TIME ) ) , _digit AS TIME ) != _varchar(512) ORDER BY pk LIMIT 1 | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , NULL AS TIME , _digit , _tinyint_unsigned AS INTEGER ) | UPDATE _table SET _field_no_pk = COLUMN_ADD( COLUMN_CREATE( _digit , _varchar(512) AS DATETIME ) , _digit , _varchar(512) AS DATE ) WHERE NOT COLUMN_EXISTS( COLUMN_CREATE( _digit , _digit ) , _digit ) ORDER BY pk LIMIT 1 | UPDATE _table SET _field_no_pk = COLUMN_CREATE( _digit , _digit AS DOUBLE , _tinyint_unsigned , COLUMN_GET( COLUMN_ADD( COLUMN_ADD( COLUMN_ADD( COLUMN_CREATE( _digit , _varchar(512) ) , _tinyint_unsigned , _tinyint_unsigned ) , _digit , _varchar(512) , _tinyint_unsigned , _digit AS DATE ) , _tinyint_unsigned , NULL AS DATETIME ) , _tinyint_unsigned AS CHAR ) AS INTEGER ) WHERE COLUMN_GET( COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , NULL AS INTEGER , _digit , NULL ) , _digit , _digit ) , _tinyint_unsigned AS DOUBLE ) IS NULL AND NOT COLUMN_EXISTS( COLUMN_CREATE( _tinyint_unsigned , COLUMN_GET( _field_no_pk , _digit AS INTEGER ) ) , _tinyint_unsigned ) ORDER BY pk LIMIT 1 | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , _tinyint_unsigned AS INTEGER , _tinyint_unsigned , _varchar(512) ) , _field_no_pk = COLUMN_CREATE( _digit , COLUMN_GET( COLUMN_ADD( COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , _tinyint_unsigned ) , _digit , _varchar(1) , _tinyint_unsigned , _digit ) , _digit , _digit AS TIME ) , _tinyint_unsigned AS DOUBLE ) AS DOUBLE ) | INSERT INTO _table SET _field_no_pk = COLUMN_CREATE( _tinyint_unsigned , _varchar(512) AS DATETIME , _digit , COLUMN_GET( COLUMN_ADD( COLUMN_CREATE( _digit , NULL , _tinyint_unsigned , _digit AS CHAR ) , _digit , _varchar(1) ) , _digit AS DOUBLE ) ) , _field_no_pk = COLUMN_CREATE( _digit , _digit ) | UPDATE _table SET _field_no_pk = _field_no_pk WHERE NOT COLUMN_GET( COLUMN_ADD( COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , COLUMN_GET( COLUMN_CREATE( _tinyint_unsigned , _varchar(512) AS DATETIME ) , _tinyint_unsigned AS CHAR ) AS INTEGER , _digit , _varchar(512) ) , _tinyint_unsigned , _tinyint_unsigned AS DATE , _digit , COLUMN_GET( COLUMN_CREATE( _digit , _digit ) , _digit AS CHAR ) ) , _tinyint_unsigned , _tinyint_unsigned ) , _tinyint_unsigned AS CHAR ) <= _varchar(512) OR COLUMN_ADD( COLUMN_CREATE( _tinyint_unsigned , _tinyint_unsigned AS CHAR , _digit , _digit AS DOUBLE ) , _digit , NULL , _tinyint_unsigned , _varchar(1) AS CHAR ) = COLUMN_CREATE( _digit , _varchar(512) ) ORDER BY pk LIMIT 1 | UPDATE _table SET _field_no_pk = COLUMN_ADD( COLUMN_CREATE( _digit , _varchar(512) ) , _digit , _tinyint_unsigned AS TIME ) WHERE COLUMN_GET( COLUMN_ADD( _field_no_pk , _digit , COLUMN_GET( COLUMN_CREATE( _digit , COLUMN_GET( COLUMN_ADD( COLUMN_CREATE( _digit , _tinyint_unsigned AS CHAR , _tinyint_unsigned , NULL ) , _digit , _varchar(1) AS INTEGER ) , _digit AS DATE ) AS TIME ) , _digit AS DATE ) ) , _tinyint_unsigned AS DATE ) != _tinyint_unsigned ORDER BY pk LIMIT 1 | DELETE FROM view5 WHERE field1 = _english ORDER BY field1 , field2 , field3 , field4 LIMIT _digit | SELECT field1 , field2 , field3 , field4 FROM ( SELECT field1 , min(field2) as field2 , max(field3) as field3 , count(field4) as field4 FROM table_merge GROUP BY field1 ) AS select1 WHERE field1 != _digit | SELECT a1 . field1 AS field1 , a1 . field2 AS field2 , a1 . field3 AS field3 , a1 . field4 AS field4 FROM table_standard AS a1 RIGHT JOIN table_standard AS a2 ON a1 . field4 >= a2 . field2 WHERE a1 . field4 <=> _varchar(1) AND a1 . field2 <= _digit | REPLACE INTO view3 ( field1 , field2 , field3 , field4 ) VALUES ( NULL , _tinyint_unsigned , _tinyint_unsigned , _digit ) , ( NULL , _varchar(1) , _varchar(1) , _digit ) | INSERT IGNORE INTO view1 ( field1 , field2 , field3 , field4 ) VALUES ( _english , _tinyint_unsigned , _digit , _digit ) , ( NULL , _tinyint_unsigned , _tinyint_unsigned , _english ) | REPLACE INTO view4 ( field1 , field2 , field3 , field4 ) VALUES ( _english , _english , _digit , _digit ) , ( _varchar(1) , _tinyint_unsigned , _english , _english ) | UPDATE view1 SET field2 = NULL , field1 = NULL ORDER BY field1 , field2 , field3 , field4 | INSERT IGNORE INTO view3 ( field1 , field2 , field3 , field4 ) SELECT field1 , field2 , field3 , field4 FROM view4 WHERE field2 <= _english ORDER BY field1 , field2 , field3 , field4 LIMIT _digit | REPLACE INTO view1 SET field2 = NULL , field4 = _tinyint_unsigned , field4 = _tinyint_unsigned | REPLACE INTO view5 SET field3 = _tinyint_unsigned , field3 = _digit , field4 = _varchar(1) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $ind= 0; return undef } v 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 } { return "p".$ind++ }) WHERE `col_int_nokey` <> _digit | CREATE TABLE IF NOT EXISTS a ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MEMORY SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM e WHERE `col_int_nokey` BETWEEN _digit AND _digit | LOAD INDEX INTO CACHE a /*!50400 PARTITION ( ALL ) */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM b | CREATE TABLE IF NOT EXISTS b ( `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 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM { our $ind= 0; return undef } c 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 } { return "p".$ind++ }) WHERE `col_int_nokey` BETWEEN _digit AND _digit | /*!50400 ALTER TABLE g REMOVE PARTITIONING */ | /*!50400 ALTER TABLE h DISABLE KEYS */ | /*!50400 ALTER TABLE y REMOVE PARTITIONING */ | DELETE FROM { our $ind= 0; return undef } h 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` = _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 2 | ROLLBACK | COMMIT | COMMIT | COMMIT | UPDATE _table SET _field = _data ORDER BY RAND() LIMIT 1 | START TRANSACTION | ROLLBACK | START TRANSACTION | 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 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `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_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 { "alias".$prng->int(1,$tables) } . `col_int` >= { "alias".$prng->int(1,$tables) } . `col_int_key` HAVING ({ "field".$prng->int(1,$fields) } = 8 AND { "field".$prng->int(1,$fields) } != 4) ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT SUM( alias1 . `col_int_key` ) AS {"field".++$fields } , MAX( alias2 . `col_int_key` ) AS {"field".++$fields } , alias2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , SUM( alias2 . `col_int_key` ) 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 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 { "alias".$prng->int(1,$tables) } . `pk` != { "alias".$prng->int(1,$tables) } . `pk` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } > 4 AND { "field".$prng->int(1,$fields) } < 4) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias3 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( DISTINCT alias1 . `col_int_key` ) AS {"field".++$fields } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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() } { $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] } . `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 } WHERE { "alias".$prng->int(1,$tables) } . `col_int` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 2 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `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_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_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 (4, 6) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } < 1 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias2 . `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_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 ( { "alias".$prng->int(1,$tables) } . `col_int_key` IN (6) AND { "alias".$prng->int(1,$tables) } . `pk` <> { "alias".$prng->int(1,$tables) } . `col_int` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING (({ "field".$prng->int(1,$fields) } <= 1 AND { "field".$prng->int(1,$fields) } < 4) AND { "field".$prng->int(1,$fields) } != 1) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias2 . `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")); } 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_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) } . `col_int` IN (4) AND { "alias".$prng->int(1,$tables) } . `pk` <= 2 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT MIN( alias1 . `col_int_key` ) AS {"field".++$fields } , alias2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias4 . `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() } { $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_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_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 ( ( ( { "alias".$prng->int(1,$tables) } . `pk` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 4 ) AND { "alias".$prng->int(1,$tables) } . `col_int` <> 6 ) AND { "alias".$prng->int(1,$tables) } . `col_int_key` IS NULL ) OR { "alias".$prng->int(1,$tables) } . `pk` > 2 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != 4 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 OFFSET 1 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias3 . `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")); } 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 ( { "alias".$prng->int(1,$tables) } . `col_int_key` IS NULL OR { "alias".$prng->int(1,$tables) } . `pk` <> 6 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } >= 4 AND { "field".$prng->int(1,$fields) } >= 6) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 OFFSET 3 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `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_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 ( { "alias".$prng->int(1,$tables) } . `pk` >= { "alias".$prng->int(1,$tables) } . `col_int` OR { "alias".$prng->int(1,$tables) } . `pk` != { "alias".$prng->int(1,$tables) } . `col_int` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } <> 3 AND { "field".$prng->int(1,$fields) } <> 9) { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( alias1 . `col_int_key` ) 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 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_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` < { "alias".$prng->int(1,$tables) } . `pk` HAVING ({ "field".$prng->int(1,$fields) } > 2 AND { "field".$prng->int(1,$fields) } <> 1) { $stack->pop(undef) } | DROP PROCEDURE p2 | { $begin_count = 0 ; $cond_count = 0 ; return undef } CREATE PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } () { $begin_count++ ; return undef } BEGIN SIGNAL SQLSTATE VALUE '42000' ; { $begin_count++ ; return undef } BEGIN SELECT * FROM (SELECT 1 AS f1) A WHERE f1 = 0 ; { $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 1305 ; DECLARE EXIT HANDLER FOR SQLWARNING BEGIN CALL { $procedure_name = 'p1_'.$prng->int(1,$width) } () ; SELECT CAST('ABC' AS CHAR(2)) ; SELECT 1 { 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 CAST('ABC' AS CHAR(2)) { if ( 0 == $prng->int(0,1) && $begin_count > 1 ) { $begin_count-- ; return "; END " } else { return undef } } ; CALL { $procedure_name = 'p1_'.$prng->int(1,$width) } () { $val = '' ; while ($begin_count > 0) { $begin_count-- ; $val = $val.'; END' } ; return $val } | CREATE PROCEDURE p2 ( arg1 VARCHAR(32) , arg2 INTEGER , arg3 INTEGER ) BEGIN DECLARE var1 VARCHAR(32) ; DECLARE cond1 CONDITION FOR 1319 ; DECLARE EXIT HANDLER FOR SQLSTATE '23000' RESIGNAL SQLSTATE VALUE 'HY000' ; SIGNAL SQLSTATE '23000' SET CATALOG_NAME = _english , MYSQL_ERRNO = 9005 ; SET @var1 = CONVERT( _varchar(512) USING LATIN1 ) ; CALL p2 ( @var1 , _varchar(512) , f1 ( _english , 9007 , @var1 ) ) ; SIGNAL SQLSTATE VALUE '42S02' ; RESIGNAL cond1 ; END | CREATE PROCEDURE p1 ( arg1 INTEGER , arg2 INTEGER , arg3 INTEGER ) BEGIN DECLARE var1 INTEGER ; DECLARE cond1 CONDITION FOR SQLSTATE '42000' ; DECLARE EXIT HANDLER FOR SQLSTATE VALUE '42S02' , SQLSTATE VALUE '42000' CALL p3 ( _varchar(512) , CONVERT( _varchar(512) USING UTF8 ) , CONVERT( _varchar(512) USING UTF8 ) ) ; CALL p2 ( @var1 , _varchar(512) , RPAD( _letter , 32 + 1 , 'A123456789' ) ) ; CALL { $procedure_name = 'p1_'.$prng->int(1,$width) } () ; RESIGNAL SQLSTATE '42000' ; IF var1 = RPAD( _letter , 64 + 1 , 'A123456789' ) THEN RESIGNAL ; ELSEIF var1 = _varchar(512) THEN RESIGNAL cond1 ; ELSE SIGNAL SQLSTATE '42000' ; END IF ; CALL p3 ( @var1 , @var1 , @var1 ) ; END | DROP PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } | DROP PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } | DROP PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } | { $begin_count = 1 ; $cond_count = 0 ; return undef } CREATE PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } () BEGIN SELECT CAST('ABC' AS CHAR(2)) ; SELECT 1 { $val = '' ; while ($begin_count > 0) { $begin_count-- ; $val = $val.'; END' } ; return $val } | DROP PROCEDURE { $procedure_name = 'p1_'.$prng->int(1,$width) } | DROP PROCEDURE p2 | CREATE TABLE IF NOT EXISTS w ( `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 | CREATE TABLE IF NOT EXISTS i ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = INNODB /*!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 g | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM b WHERE `col_int_nokey` != _digit | INSERT INTO { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } i 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` ) VALUES ( _digit , _digit ) , ( _digit , _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 } d 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 b TRUNCATE 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 y ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = INNODB /*!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 n WHERE `col_int_nokey` BETWEEN _digit AND _digit | /*!50400 ALTER TABLE i OPTIMIZE PARTITION { my $part_list= ""; for (my $i=0; $i<$nb_parts_var; $i++) { $part_list .= "p".$i."," }; return $part_list."p".$nb_parts_var } */ | EXPLAIN /*!50100 PARTITIONS */ SELECT `col_int_nokey` FROM u | CREATE TABLE IF NOT EXISTS c ( `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 f | UPDATE _table SET _field_no_pk = CONVERT( _varchar(255) , CHAR) WHERE _field BETWEEN CONVERT( _varchar(255) , CHAR) AND REPEAT( _hex , _tinyint_unsigned ) ORDER BY `pk` LIMIT _digit | INSERT INTO _table ( _field , _field , _field ) VALUES ( CONVERT( _varchar(255) , CHAR) , CONVERT( _varchar(255) , CHAR) , REPEAT( _hex , _tinyint_unsigned ) ) | DELETE FROM _table WHERE _field IN ( CONVERT( _varchar(255) , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) , CHAR) ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field BETWEEN CONVERT( _english , CHAR) AND REPEAT( _hex , _tinyint_unsigned ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IS NOT NULL ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IN ( CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _english , CHAR) , CONVERT( _varchar(255) , CHAR) , CONVERT( _english , CHAR) , REPEAT( _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) , CHAR) ) ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | UPDATE _table SET _field_no_pk = REPEAT( _hex , _tinyint_unsigned ) WHERE _field LIKE CONCAT( CONVERT( _varchar(255) , CHAR) , '%' ) ORDER BY `pk` LIMIT _digit | SELECT _field FROM _table | UPDATE _table SET _field_no_pk = CONVERT( _varchar(255) , CHAR) WHERE _field BETWEEN REPEAT( _hex , _tinyint_unsigned ) AND CONVERT( _english , CHAR) ORDER BY `pk` LIMIT _digit | { @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_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` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 4 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } 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 } , SUM( 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 } , SUM( table1 . `col_int_key` ) 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 } , { 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(); 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_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 (2, 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 { 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 } , COUNT( table2 . `col_int_key` ) AS {"field".++$fields } , MAX( table1 . `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 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) } . `pk` >= { "table".$prng->int(1,$tables) } . `col_int` { 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 } , { 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_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 } WHERE ( { "table".$prng->int(1,$tables) } . `col_int_key` IS NULL AND { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 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")); } LEFT JOIN { $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_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 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 } 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` IN (4, 8, 8) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } DESC , { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } DESC , { "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 } , { 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() } { $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_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 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_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 } { $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_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] } . `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) } . `pk` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 6 ) { $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 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 } , MIN( table1 . `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 } 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_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 } { $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] } . `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` > { "table".$prng->int(1,$tables) } . `col_int_key` { 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 } , COUNT( table1 . `col_int_key` ) 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 } , COUNT( 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")); } 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` = { "table".$prng->int(1,$tables) } . `pk` { 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 { 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_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 } { $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) } . `col_int_key` IS NOT NULL ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } /*+javadb:postgres: NULLS FIRST*/ LIMIT 100 { $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 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_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 } { $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` >= { "table".$prng->int(1,$tables) } . `col_int_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | START TRANSACTION ; 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 1) 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 2) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=17 ; 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 31) 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 ; SELECT SLEEP(1); SET @val=3 ; 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 31) 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 2) 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 31) 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 ; SELECT SLEEP(1); SET @val=5 ; 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 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=7 ; 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=17 ; 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 29) 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 ; SELECT SLEEP(1); SET @val=5 ; 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=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 5) 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 17) 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 1) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SELECT SLEEP(1) ; COMMIT | 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 1) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=7 ; 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 2) 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 29) 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 ; 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 11 ; 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` FROM $tbl_cnst WHERE pk=@delpk ; SET @val=@val-1 ; { $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 31) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; DELETE from $tbl_cnst WHERE pk=@delpk ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SELECT @ins_id:=LAST_INSERT_ID() ; DELETE from $tbl WHERE pk=@ins_id ; COMMIT | START TRANSACTION ; SET @val=11 ; { $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=3 ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+@val WHERE pk IN (SELECT pk FROM (SELECT pk FROM $tbl WHERE `col_int_not_null` IN (SELECT MIN(`col_int_not_null`) FROM $tbl WHERE pk<=250)) AS tmp1) ORDER BY rand() LIMIT 1 ; SET @val=-@val ; { $tbl = $prng->arrayElement($executors->[0]->tables()) ; return undef ; } ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+@val WHERE pk IN (SELECT pk FROM (SELECT pk FROM $tbl WHERE `col_int_not_null` IN (SELECT MAX(`col_int_not_null`) FROM $tbl WHERE pk<=250)) AS tmp1) ORDER BY rand() LIMIT 1 ; 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 2 ; 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` FROM $tbl_cnst WHERE pk=@delpk ; SET @val=@val-1 ; { $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 31) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; DELETE from $tbl_cnst WHERE pk=@delpk ; INSERT INTO $tbl(`col_int_not_null`) VALUES (@val) ; SELECT @ins_id:=LAST_INSERT_ID() ; DELETE from $tbl WHERE pk=@ins_id ; COMMIT | START TRANSACTION ; 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 17) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=7 ; 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 31) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=17 ; 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 13) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; COMMIT | START TRANSACTION ; SET @val=29 ; 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 31) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=31 ; 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=29 ; 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 13) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SELECT SLEEP(1); SET @val=13 ; 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 17) 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 3) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=17 ; 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 11) 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 ; SELECT SLEEP(1); SET @val=7 ; 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 23) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SET @val=31 ; 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=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 29) 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 13) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SELECT SLEEP(1); SET @val=31 ; 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 2) 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=7 ; 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 17) 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 11) AS tbl ; UPDATE $tbl SET `col_int_not_null`=`col_int_not_null`+(@val) WHERE pk=@updpk ; SELECT SLEEP(1) ; ROLLBACK | START TRANSACTION ; SET @val=11 ; { $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=11 ; { $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=-@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 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( ( BB AS { "table".++$tables } RIGHT JOIN B AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_nokey` != SOME ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) ) OR ( table1 . `col_varchar_key` = { "table".$prng->int(1,$tables) } . `col_varchar_key` OR table1 . `pk` = _tinyint_unsigned ) AND { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( A AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_nokey` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` != { "table".$prng->int(1,$tables) } . `col_varchar_nokey` AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` >= { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table2 . `col_varchar_key` , table1 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SQL_SMALL_RESULT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_nokey` != ( SELECT MAX( { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_int_key` ) AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM ( CC AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } STRAIGHT_JOIN BB AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `col_varchar_key` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_varchar_nokey` ) ) WHERE { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_varchar_key` >= _char ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN A AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_nokey` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_nokey` ) ) WHERE ( { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_nokey` >= { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` != _char ) ) AS { "table".++$tables } LEFT JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_nokey` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` NOT IN ( SELECT 5 FROM DUMMY UNION SELECT 5 FROM DUMMY ) ) OR table1 . `col_int_key` = { "table".$prng->int(1,$tables) } . `pk` ORDER BY table1 . _field_indexed ASC /*+JavaDB:Postgres: NULLS FIRST */ , { join(', ', map { "field".$_." /*+JavaDB:Postgres: NULLS FIRST */" } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT ( ( table1 . `col_int_key` ) + ( table1 . `pk` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( D AS { "table".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_nokey` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) IS NULL ) OR ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) ORDER BY table1 . _field_indexed DESC /*+JavaDB:Postgres: NULLS LAST */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT STRAIGHT_JOIN table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( ( B AS { "table".++$tables } STRAIGHT_JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `col_int_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_nokey` > ( SELECT _char FROM DUMMY ) ) OR table1 . `pk` = _tinyint_unsigned ORDER BY CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) /*+JavaDB:Postgres: NULLS FIRST*/ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MAX( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_nokey` ) ) ) AS { "table".++$tables } STRAIGHT_JOIN ( ( CC AS { "table".++$tables } LEFT OUTER JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) ) ON ({ "table".$tables } . `col_varchar_key` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_varchar_nokey` != ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN ( B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_nokey` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` != ( SELECT COUNT( { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM CC AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ) ) ) AND table1 . `pk` = _tinyint_unsigned AND ( { "table".$prng->int(1,$tables) } . `col_varchar_nokey` = { "table".$prng->int(1,$tables) } . `col_varchar_key` AND table1 . `col_int_nokey` >= { "table".$prng->int(1,$tables) } . `col_int_nokey` ) ORDER BY { "field".$prng->int(1,$fields) } ASC /*+JavaDB:Postgres: NULLS FIRST */ , { "field".$prng->int(1,$fields) } DESC /*+JavaDB:Postgres: NULLS LAST */ , table1 . _field_indexed /*+JavaDB:Postgres: NULLS FIRST */ , CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_nokey`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) /*+JavaDB:Postgres: NULLS FIRST*/, { join(', ', map { "field".$_." /*+JavaDB:Postgres: NULLS FIRST */" } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( ( C AS { "table".++$tables } LEFT JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `pk` ) ) ) ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_nokey` < ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_nokey` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` <> _tinyint_unsigned ) ) OR ( { "table".$prng->int(1,$tables) } . `col_varchar_key` <> _char AND { "table".$prng->int(1,$tables) } . `col_varchar_key` <> { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) ORDER BY table1 . _field_indexed /*+JavaDB:Postgres: NULLS FIRST*/ , { "table".$prng->int(1,$tables) } .`pk` DESC /*+JavaDB:Postgres: NULLS LAST */ , table1 . _field_indexed /*+JavaDB:Postgres: NULLS FIRST*/ , { "table".$prng->int(1,$tables) } .`pk` DESC /*+JavaDB:Postgres: NULLS LAST */ , table1 . _field_indexed /*+JavaDB:Postgres: NULLS FIRST*/ , { "table".$prng->int(1,$tables) } .`pk` /*+JavaDB:Postgres: NULLS FIRST */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MAX( { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } STRAIGHT_JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_nokey` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_nokey` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} NOT EXISTS ( ( SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_varchar_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_nokey` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) ) ) ) OR ( table1 . `col_varchar_key` = { "table".$prng->int(1,$tables) } . `col_varchar_key` OR table1 . `pk` = _tinyint_unsigned ) ORDER BY { "field".$prng->int(1,$fields) } /*+JavaDB:Postgres: NULLS FIRST */ , CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_nokey`, { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) /*+JavaDB:Postgres: NULLS FIRST*/ , { "field".$prng->int(1,$fields) } ASC /*+JavaDB:Postgres: NULLS FIRST */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT 5 FROM DUMMY ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( A AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN ( A AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_nokey` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_varchar_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_varchar_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` >= { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` ) AS { "table".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } ON ({ "table".$tables } . `col_varchar_nokey` = { "table".($tables - 1) } . `col_varchar_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MAX( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_nokey` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE ( { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_nokey` < { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_key` OR { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` < ( SELECT MAX( { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_varchar_key` ) AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM C AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ) ) ) IS NOT NULL ) OR ( table1 . `col_varchar_nokey` IS NOT NULL AND table1 . `col_varchar_nokey` IS NULL ) ORDER BY table1 . _field_indexed DESC /*+JavaDB:Postgres: NULLS LAST */ , { join(', ', map { "field".$_." /*+JavaDB:Postgres: NULLS FIRST */" } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } INNER JOIN ( ( CC AS { "table".++$tables } LEFT JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_nokey` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` IN ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_nokey` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_varchar_key` >= { "table".$prng->int(1,$tables) } . `col_varchar_key` ) ) AND ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `col_varchar_key` != _char[invariant] ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , ( ( table1 . `col_int_key` ) + ( table1 . `col_int_key` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN ( ( CC AS { "table".++$tables } LEFT JOIN D AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `pk` ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT 8 FROM DUMMY ) IS NULL ) OR ( table1 . `col_varchar_nokey` IS NULL AND table1 . `col_int_key` <> { "table".$prng->int(1,$tables) } . `col_int_key` ) ORDER BY CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) /*+JavaDB:Postgres: NULLS FIRST*/, { join(', ', map { "field".$_." /*+JavaDB:Postgres: NULLS FIRST */" } (1..$fields) ) } | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table WHERE `col_int_nokey` <= 7 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | LOAD INDEX INTO CACHE _table /*!50400 PARTITION ( p3 ) */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table WHERE `col_int_nokey` < 5 | /*!50400 ALTER TABLE _letter ANALYZE PARTITION p3 */ | UPDATE _table SET `col_int_nokey` = 9 WHERE `col_int_nokey` = 5 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | DELETE FROM _letter WHERE `col_int_nokey` = 2 LIMIT 6 | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM _table | CREATE TABLE _letter ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MYISAM /*!50100 { @ranges = sort { $a <=> $b } ($prng->digit(), $prng->fieldType('tinyint_unsigned'), $prng->fieldType('smallint_unsigned')) ; return undef } PARTITION BY RANGE ( `col_int_nokey` ) SUBPARTITION BY HASH ( `col_int_nokey` ) SUBPARTITIONS 5 ( PARTITION p0 VALUES LESS THAN ( { shift @ranges } ), PARTITION p1 VALUES LESS THAN ( { shift @ranges } ), PARTITION p2 VALUES LESS THAN ( { shift @ranges } ), PARTITION p3 VALUES LESS THAN MAXVALUE ) */ 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*/ ; 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 . _field_key FROM _table AS X LIMIT 7 /*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*/ ; 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 `col_int_key` BETWEEN _digit AND 3 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_char_10_key` = _char 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 int_field BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 100 /*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 < _digit LIMIT 6 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table 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*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _tinyint_unsigned AND 6 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` IN (_quid, _char) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 4 AND 5 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 WHERE int_field BETWEEN 1 AND 6 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 100 /*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 4 AND 7 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_bigint_key` = _tinyint_unsigned WHERE `col_char_10` > _quid ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _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 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _tinyint_unsigned , _tinyint_unsigned , _digit , _digit , _digit ) 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_int` IN (_digit) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` IN (_digit) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 25 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 X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _tinyint_unsigned LIMIT 8 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 1 /*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 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _int_unsigned WHERE int_field BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE `col_char_10` = _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_int_key` BETWEEN _digit AND 25 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _tinyint_unsigned WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) 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 LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` BETWEEN 3 AND 8 LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_int_key` BETWEEN 2 AND 4 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 7 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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `col_char_255_not_null_key` >= _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . `col_bigint_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key 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 . _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*/ | 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 `col_bigint_key` IN (_digit, _digit, _digit) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `col_char_10` = _quid ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 50 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_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*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | ALTER TABLE t1 DROP KEY idx | DELETE FROM t1 WHERE { $column_name_int= 'col3' } = { $my_digit= 3 } OR $column_name_int IS NULL ; COMMIT | ALTER TABLE t1 ADD COLUMN extra INT; UPDATE t1 SET extra = { $column_name_int= 'col3' } ; ALTER TABLE t1 DROP COLUMN $column_name_int ; ALTER TABLE t1 CHANGE COLUMN extra $column_name_int INT | DELETE FROM t1 WHERE MATCH(col4) AGAINST (TRIM(' { $my_digit= 3 } ') IN BOOLEAN MODE) OR { $column_name_int= 'col1' } IS NULL ; INSERT INTO t1 (col1,col2,col3,col4) VALUES /* { $my_digit= 2 } */ ($my_digit,$my_digit,$my_digit,REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)) , ($my_digit,$my_digit,$my_digit,REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)) ; COMMIT | ALTER TABLE t1 ADD PRIMARY KEY ( { $column_name_int= 'col3' } ) | CHECK TABLE t1 | CHECK TABLE t1 | DELETE FROM t1 WHERE MATCH(col4) AGAINST (TRIM(' { $my_digit= 4 } ') IN BOOLEAN MODE) OR { $column_name_int= 'col1' } IS NULL ; INSERT INTO t1 (col1,col2,col3,col4) VALUES /* { $my_digit= 1 } */ ($my_digit,$my_digit,$my_digit,REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)) , ($my_digit,$my_digit,$my_digit,REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)) ; COMMIT | INSERT INTO t1 (col1,col2,col3,col4) VALUES ( { $my_digit= 2 } , $my_digit - 1, $my_digit, REPEAT(CAST($my_digit AS CHAR(1)),@fill_amount)); COMMIT | INSERT INTO t1 (col1,col2,col3,col4) VALUES ( { $my_digit= 2 } , $my_digit, $my_digit, REPEAT(CAST($my_digit - 1 AS CHAR(1)),@fill_amount)); ROLLBACK | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_key` ) ) ) AS { "table".++$tables } STRAIGHT_JOIN ( ( AA AS { "table".++$tables } RIGHT OUTER JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_10_key` ) ) ) ON ({ "table".$tables } . `col_char_1024_key` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `pk` NOT IN ( SELECT 1 UNION SELECT 2 ) ) AND table1 . `col_char_1024_key` >= _char[invariant] { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING (({ "field".$prng->int(1,$fields) } != _char(2) AND { "field".$prng->int(1,$fields) } <> _tinyint_unsigned) AND { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_bigint` >= ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null` ) ) )) ORDER BY table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_bigint` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_char_10` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_bigint` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) ) AS { "table".++$tables } INNER JOIN ( ( AA AS { "table".++$tables } INNER JOIN AA AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_key` = { "table".($tables - 1) } . `col_text_not_null_key` ) ) ) ON ({ "table".$tables } . `col_int_not_null_key` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_1024` > ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_not_null` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_not_null` != { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10` ) ) OR ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `col_int_not_null_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) OR table1 . `col_int_not_null_key` IS NULL | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } STRAIGHT_JOIN ( ( BB AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_text` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) ) ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_not_null_key` = ALL ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text` > { "table".$prng->int(1,$tables) } . `col_char_10_key` AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text` >= { "table".$prng->int(1,$tables) } . `col_char_10` ) ) AND ( table1 . `col_char_1024_not_null_key` IN (_char) OR table1 . `col_int_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) AND ( { "table".$prng->int(1,$tables) } . `col_char_1024` = { "table".$prng->int(1,$tables) } . `col_char_10_not_null_key` AND table1 . `col_int_not_null` IS NULL ) { 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 table1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } EXPLAIN EXTENDED SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } LEFT OUTER JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` ) ) ) AS { "table".++$tables } LEFT JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_char_10_not_null` ) ) ) ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_not_null` != SOME ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_1024_not_null` <> { "table".$prng->int(1,$tables) } . `col_text_not_null_key` AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` = 6 ) ) AND ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_bigint` IN ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) ) AND { "table".$prng->int(1,$tables) } . `col_char_1024_not_null_key` = _char ) ORDER BY CONCAT ( { "table".$prng->int(1,$tables) } . `col_char_1024_not_null_key`, { "table".$prng->int(1,$tables) } . `col_text_key` ) , table1 . _field_indexed ASC , CONCAT ( { "table".$prng->int(1,$tables) } . `col_text`, { "table".$prng->int(1,$tables) } . `col_text_not_null` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SUM( table2 . `col_text_key` ) AS { "field".++$fields } FROM ( CC AS { "table".++$tables } RIGHT OUTER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) IS NULL ) AND table1 . `col_char_1024_not_null_key` IN (_char, _char) AND { "table".$prng->int(1,$tables) } . `col_text` <> { "table".$prng->int(1,$tables) } . `col_char_1024_not_null` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } < _char(2) AND { "field".$prng->int(1,$fields) } != _char(2)) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT DISTINCT MIN( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_bigint` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_not_null` IN ( SELECT { "CHILD_SUBQUERY".$child_subquery_idx."_t2" ; } . `col_char_10_key` AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM ( BB AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } STRAIGHT_JOIN AA AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `col_char_1024_key` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_char_10` ) ) ) ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_1024_key` > _char ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null` != { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` ) AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} NOT EXISTS ( ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_not_null` >= _char ) ) ) OR ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_char_1024_not_null` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } STRAIGHT_JOIN ( ( AA AS { "table".++$tables } LEFT JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_not_null` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( _char, _char ) IN ( SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_1024_not_null` AS { "SUBQUERY".$subquery_idx."_field1" } , SUM( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_10_key` ) AS { SUBQUERY.$subquery_idx."_field2" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10` ) ) HAVING ({ "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint` >= _char AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint` <> _char) ) ) OR table1 . `pk` = _tinyint_unsigned AND table1 . `col_bigint_key` = { "table".$prng->int(1,$tables) } . `col_int_not_null_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 DISTINCT table2 . `col_char_10_not_null_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } STRAIGHT_JOIN ( ( AA AS { "table".++$tables } LEFT OUTER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `pk` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_key` != { "table".$prng->int(1,$tables) } . `col_text_not_null` ) ) AND table1 . `col_char_10_key` = _char HAVING ({ "field".$prng->int(1,$fields) } != 7 OR { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_key` IN ( SELECT _char UNION ALL SELECT _char )) ORDER BY table1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT table1 . `col_text_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MAX( table2 . `pk` ) AS { "field".++$fields } , table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MAX( DISTINCT table1 . `col_char_1024` ) AS { "field".++$fields } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } ON ({ "table".$tables } . `col_int` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SQL_SMALL_RESULT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` ) ) ) IS NULL ) AND ( { "table".$prng->int(1,$tables) } . `col_char_1024_not_null` = _char OR { "table".$prng->int(1,$tables) } . `col_char_1024_key` != _char ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT CONCAT ( table1 . `col_char_10_key` , table1 . `col_char_1024_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null` <= _char ) AS { "table".++$tables } LEFT JOIN ( ( B AS { "table".++$tables } RIGHT OUTER JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_bigint` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} AND ( 4, 2 ) IN ( SELECT _tinyint_unsigned , 3 UNION SELECT 2, 1 ) ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_bigint_key` < ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) ) ) AND ( table1 . `col_int_not_null_key` = _tinyint_unsigned OR table1 . `pk` = _tinyint_unsigned ) AND { "table".$prng->int(1,$tables) } . `col_text_not_null` != _char { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != 4 ORDER BY table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` , { "field".$prng->int(1,$fields) } ASC, { join(', ', map { "field".$_ } (1..$fields) ) } | CALL /* RESULTSET_SAME_DATA_IN_EVERY_ROW */ { 'proc_'.$prng->int(1,3) } ( @inout1 ) | SET @inout1 = 0 ; CALL { 'proc_'.$prng->int(1,3) } ( @inout1 ) ; SELECT /* RESULTSET_SINGLE_INTEGER_ONE */ IF(@inout1 IN (0,1), 1, 999) | { $table_name = 'table_'.$prng->int(1,3) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | SET @inout1 = 0 ; CALL { 'proc_'.$prng->int(1,3) } ( @inout1 ) ; SELECT /* RESULTSET_SINGLE_INTEGER_ONE */ IF(@inout1 IN (0,1), 1, 999) | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | { $table_name = $prng->arrayElement($executors->[0]->tables()) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | CALL /* RESULTSET_SAME_DATA_IN_EVERY_ROW */ { 'proc_'.$prng->int(1,3) } ( @inout1 ) | { $table_name = 'table_'.$prng->int(1,3) ; return undef } UPDATE $table_name SET `col_int_key` = _digit | { $table_name = 'table_'.$prng->int(1,3) ; return undef } INSERT INTO $table_name SELECT * FROM $table_name LIMIT 0 | SELECT MIN( l_suppkey ) FROM lineitem WHERE l_linenumber BETWEEN _digit AND _digit + _digit AND l_partkey BETWEEN 200 AND _tinyint_unsigned + _digit OR l_linenumber BETWEEN _digit AND _digit + _digit AND l_linenumber BETWEEN _digit AND _digit + _digit OR l_quantity BETWEEN { $prng->uint16(1,50) } AND { $prng->uint16(1,50) } + _digit 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)) } ) | SELECT MIN( l_quantity ) FROM lineitem WHERE ( l_commitDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_linenumber = _digit AND l_quantity IN ( _digit , { $prng->uint16(1,50) } , _digit , { $prng->uint16(1,50) } ) OR l_partkey NOT IN ( 0 , _tinyint_unsigned , _tinyint_unsigned , 200 ) ) AND ( l_orderkey = { $prng->uint16(1,1500) } OR l_linenumber BETWEEN _digit AND _digit + _digit AND l_linenumber BETWEEN _digit AND _digit + _digit AND l_linenumber = _digit ) | SELECT DISTINCT l_shipdate FROM lineitem WHERE ( 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)) } , { 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 = _tinyint_unsigned OR l_shipdate { 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_linenumber BETWEEN _digit AND _digit + _digit AND 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)) } AND l_partkey IN ( 0 , _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) OR l_linenumber IN ( _digit , _digit ) OR l_linenumber NOT IN ( _digit , _digit , _digit , _digit ) ) | SELECT COUNT( l_suppkey ) FROM lineitem WHERE l_suppkey BETWEEN _digit AND _digit + _digit OR l_quantity BETWEEN _digit AND _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_partkey BETWEEN 200 AND _tinyint_unsigned + _tinyint_unsigned AND l_linenumber BETWEEN _digit AND _digit + _digit AND l_partkey IN ( _tinyint_unsigned , _tinyint_unsigned ) AND l_suppkey = 10 | SELECT l_linenumber FROM lineitem WHERE ( l_linenumber IN ( _digit , _digit ) OR 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_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_linenumber BETWEEN _digit AND _digit + _digit OR l_suppkey = 10 OR l_partkey IN ( _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) ) AND l_commitDATE IN ( '1992-01-08' , { 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_commitDATE >= { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ORDER BY l_linenumber , l_orderkey , l_linenumber | SELECT l_linenumber FROM lineitem FORCE KEY ( PRIMARY , i_l_orderkey_quantity ) WHERE ( l_linenumber IN ( _digit , _digit ) ) AND ( l_commitDATE > { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND l_linenumber = _digit OR l_receiptDATE NOT 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)) } , '1992-01-08' , { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) ) | SELECT MAX( l_partkey ) FROM lineitem WHERE l_receiptDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_suppkey IN ( 10 , _digit ) AND l_shipdate <> { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND l_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit | SELECT MAX( l_receiptdate ) FROM lineitem WHERE ( 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)) } ) ) AND ( l_quantity IN ( { $prng->uint16(1,50) } , { $prng->uint16(1,50) } ) ) AND l_commitDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND l_orderkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit OR l_orderkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit | SELECT MAX( l_receiptdate ) FROM lineitem WHERE l_quantity NOT IN ( { $prng->uint16(1,50) } , _digit , _digit ) OR l_orderkey NOT IN ( _tinyint_unsigned , _tinyint_unsigned ) AND l_commitDATE >= { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND ( l_partkey = _tinyint_unsigned AND l_suppkey = 10 ) AND ( l_orderkey IN ( { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , _tinyint_unsigned ) ) | SELECT * FROM lineitem FORCE KEY ( i_l_suppkey , i_l_shipdate ) WHERE ( l_commitDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND l_suppkey IN ( 10 , _digit , 10 ) AND l_commitDATE = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } OR l_receiptDATE < { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } ) AND ( ( 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_quantity BETWEEN _digit AND { $prng->uint16(1,50) } + _digit ) AND ( l_orderkey <= _tinyint_unsigned AND l_shipdate = { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND l_orderkey = _tinyint_unsigned ) ) | DELETE FROM _table WHERE _field > CONVERT( _varchar(255) USING ASCII ) ORDER BY `pk` LIMIT 1 | INSERT INTO _table ( _field , _field , _field ) VALUES ( REPEAT( _UTF8 _hex , _tinyint_unsigned ) , CONVERT( _varchar(255) USING UCS2 ) , CONVERT( _varchar(255) USING LATIN1 ) ) | INSERT INTO _table ( _field , _field , _field ) VALUES ( REPEAT( _LATIN1 _hex , _tinyint_unsigned ) , REPEAT( _UCS2 _hex , _tinyint_unsigned ) , REPEAT( _UCS2 _hex , _tinyint_unsigned ) ) | INSERT INTO _table ( _field , _field , _field ) VALUES ( CONVERT( _english USING ASCII ) , CONVERT( _varchar(255) USING UTF8 ) , REPEAT( _ASCII _hex , _tinyint_unsigned ) ) | DELETE FROM _table WHERE _field >= CONVERT( _english USING ASCII ) ORDER BY `pk` LIMIT 1 | DELETE FROM _table WHERE _field IS NULL ORDER BY `pk` LIMIT 1 | SELECT _field FROM _table | UPDATE _table SET _field_no_pk = REPEAT( _LATIN1 _hex , _tinyint_unsigned ) WHERE _field IS NOT NULL ORDER BY `pk` LIMIT _digit | SELECT _field FROM _table | SELECT _field FROM _table | INSERT INTO _table ( _field_no_pk ) VALUES ( _english ) | DELETE FROM _table WHERE _field < _timestamp ORDER BY _field LIMIT _digit | DELETE FROM _table WHERE _field <> _timestamp LIMIT _digit | INSERT INTO _table ( _field_no_pk ) VALUES ( _digit ) | DELETE FROM _table WHERE _field <> _digit ORDER BY _field LIMIT _digit | INSERT INTO _table ( _field_no_pk ) VALUES ( _english ) | INSERT INTO _table ( _field_no_pk ) VALUES ( _digit ) | INSERT INTO _table ( _field_no_pk ) VALUES ( _digit ) | INSERT INTO _table ( _field_no_pk ) VALUES ( _english ) | DELETE FROM _table WHERE _field < _digit ORDER BY _field LIMIT _digit | SELECT OUTR . `pk` AS X FROM BB AS OUTR2 LEFT JOIN DD AS OUTR ON ( OUTR2 . `col_int_not_null_key` >= OUTR . `col_int` ) WHERE OUTR . `col_text_not_null_key` IN ( SELECT INNR . `col_char_10` AS Y FROM CC AS INNR WHERE INNR . `col_char_10_not_null` >= _varchar(1) AND NOT INNR . `col_bigint` > INNR . `col_bigint_key` ) AND OUTR . `col_bigint` <> digit AND NOT OUTR . `col_char_10_key` < _varchar(1) ORDER BY OUTR . `col_text` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text` AS X FROM BB AS OUTR WHERE OUTR . `col_int_not_null_key` IN ( SELECT INNR . `col_int_not_null_key` AS Y FROM C AS INNR2 LEFT JOIN A AS INNR ON ( INNR2 . `col_char_10` >= INNR . `col_char_1024_key` ) WHERE OUTR . `col_char_10_not_null` IS NULL ) AND ( OUTR . `col_int_key` >= digit AND OUTR . `col_int` > digit ) HAVING X = _datetime ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` | SELECT MAX( OUTR . `col_char_1024_key` ) AS X FROM AA AS OUTR WHERE ( OUTR . `col_char_1024` , OUTR . `col_text_not_null` ) IN ( SELECT INNR . `col_char_1024` AS X , INNR . `col_char_1024_not_null` AS Y FROM DD AS INNR WHERE OUTR . `col_text` IS NULL ) AND OUTR . `col_char_10` IS NOT NULL HAVING X < _varchar(1) ORDER BY OUTR . `pk` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_bigint_key` AS X FROM BB AS OUTR WHERE OUTR . `col_int_key` IN ( SELECT DISTINCT INNR . `col_int_not_null_key` AS Y FROM DD AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char_10` <= INNR . `col_char_1024_not_null` ) WHERE OUTR . `col_int_not_null` IS NOT NULL ) AND OUTR . `pk` > digit HAVING X <> _datetime ORDER BY OUTR . `col_char_10_not_null_key` , OUTR . `pk` | SELECT DISTINCT OUTR . `pk` AS X FROM DD AS OUTR2 LEFT JOIN DD AS OUTR ON ( OUTR2 . `col_char_1024_not_null_key` >= OUTR . `col_text_not_null` ) WHERE ( OUTR . `pk` , OUTR . `col_int_key` ) IN ( SELECT INNR . `col_int_key` AS X , INNR . `col_int` AS Y FROM BB AS INNR WHERE INNR . `col_char_1024_not_null_key` > INNR . `col_char_10_not_null` OR NOT INNR . `col_int_key` > INNR . `col_bigint_key` ORDER BY INNR . `col_int` ) AND ( OUTR . `col_char_10_key` = _varchar(1) XOR OUTR . `pk` >= digit ) ORDER BY OUTR . `col_text_key` , OUTR . `pk` | SELECT OUTR . `pk` AS X FROM D AS OUTR2 LEFT JOIN AA AS OUTR ON ( OUTR2 . `col_text` <= OUTR . `col_char_1024_not_null_key` ) WHERE ( OUTR . `col_char_1024_key` , OUTR . `col_text_not_null_key` ) IN ( SELECT INNR . `col_char_1024_not_null_key` AS X , INNR . `col_text` AS Y FROM BB AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char_10` <= INNR . `col_char_1024_not_null` ) WHERE INNR . `col_char_1024` <> _varchar(1) ) AND OUTR . `col_bigint_key` <> digit OR NOT OUTR . `col_bigint_key` >= digit ORDER BY OUTR . `col_bigint` , OUTR . `pk` | SELECT OUTR . `col_int_not_null_key` AS X FROM DD AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_int_key` < OUTR . `col_int` ) WHERE OUTR . `col_char_10` IN ( SELECT DISTINCT INNR . `col_char_1024_not_null_key` AS Y FROM A AS INNR2 LEFT JOIN D AS INNR ON ( INNR2 . `col_char_10_not_null_key` = INNR . `col_char_10_key` ) WHERE OUTR . `col_char_10_not_null_key` IS NOT NULL ORDER BY INNR . `col_int` ) AND ( OUTR . `col_char_10_not_null` IS NOT NULL AND NOT OUTR . `col_int` IS NULL ) HAVING X <= _time ORDER BY OUTR . `col_bigint` , OUTR . `pk` | SELECT COUNT(DISTINCT OUTR . `col_char_10_not_null` ) AS X FROM A AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_int` <> OUTR . `pk` ) WHERE OUTR . `col_int_not_null` IN ( SELECT INNR . `col_int` AS Y FROM A AS INNR WHERE INNR . `col_char_1024_key` > _varchar(1) ORDER BY INNR . `col_char_1024_key` ) AND OUTR . `col_text_key` IS NOT NULL ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` | SELECT OUTR . `col_int_not_null_key` AS X FROM AA AS OUTR WHERE ( OUTR . `col_text` , OUTR . `col_text_not_null` ) IN ( SELECT INNR . `col_text_not_null` AS X , INNR . `col_char_10_key` AS Y FROM DD AS INNR2 LEFT JOIN D AS INNR ON ( INNR2 . `col_int_not_null_key` > INNR . `pk` ) WHERE INNR . `col_int_not_null_key` > digit XOR INNR . `col_text_key` = INNR . `col_char_10_not_null_key` ) AND OUTR . `col_text` >= _varchar(1) ORDER BY OUTR . `col_int_not_null` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text_key` AS X FROM A AS OUTR2 LEFT JOIN C AS OUTR ON ( OUTR2 . `col_char_10_not_null_key` >= OUTR . `col_char_1024_not_null` ) WHERE OUTR . `col_text_key` IN ( SELECT DISTINCT INNR . `col_char_10_not_null_key` AS Y FROM DD AS INNR WHERE OUTR . `col_bigint` > digit ORDER BY INNR . `col_char_1024_key` ) AND OUTR . `col_int_not_null_key` <> digit ORDER BY OUTR . `col_text` , OUTR . `pk` | SET GLOBAL innodb_kill_idle_transaction = 1 | DELETE FROM _table | COMMIT | SHOW USER_STATISTICS | UPDATE LOW_PRIORITY _table t1, _table t2 SET t1._field_no_pk = _char WHERE t1._field >= _english | INSERT LOW_PRIORITY INTO _table ( _field ) VALUES ( _timestamp ) ON DUPLICATE KEY UPDATE _field_no_pk = _datetime | DROP PROCEDURE IF EXISTS _letter[invariant] ; CREATE PROCEDURE _letter[invariant] ( IN _letter CHAR( _digit ) ) BEGIN SELECT COUNT( _field ) INTO @a FROM _table ; END ; CALL _letter[invariant](@a); | ALTER TABLE _table MODIFY _field CHAR( _digit ) NULL | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _datetime , _char , 1 ) | UPDATE _table t1, _table t2 SET t1._field_no_pk = _year WHERE t1._field != _time | CALL letter | CREATE TRIGGER letter AFTER INSERT ON t9 FOR EACH ROW BEGIN UPDATE letter SET `pk` = digit WHERE `pk` = digit ; END | DROP TABLE IF EXISTS t4 | CREATE TABLE IF NOT EXISTS t7 ( `pk` INTEGER NOT NULL AUTO_INCREMENT , `col_int` INTEGER , PRIMARY KEY ( `pk` ) ) PARTITION BY HASH ( `pk` ) PARTITIONS digit SELECT `pk` , `col_int_key` FROM D | CALL letter | CALL letter | CALL letter | DROP TRIGGER letter | CREATE PROCEDURE letter () BEGIN SELECT * FROM t10 ; SELECT * FROM t1 ; INSERT INTO t4 ( `col_int` ) VALUES ( digit ) , ( digit ) , ( digit ) ; UPDATE letter SET `pk` = digit WHERE `pk` = digit ; END | CREATE TRIGGER letter AFTER INSERT ON t5 FOR EACH ROW BEGIN UPDATE letter SET `col_int` = digit WHERE `col_int` = digit ; END | 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 `col_int_not_null` >= _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _digit AND _digit 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*/ ; DELETE FROM _table 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*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_1024_not_null_key` IN (_quid) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*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*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_text_not_null_key` = _quid 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 `pk` IN (_digit) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` > _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table 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*/ ; DELETE FROM _table WHERE `col_char_10_key` = _char ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_int_not_null` IN (5) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*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 /*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 `col_bigint_key` IN (5) ORDER BY _field_list LIMIT 5 /*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_10_key` IN (_quid) 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_not_null_key` IN (_quid) 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_not_null` BETWEEN 5 AND _digit 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*/ ; DELETE FROM _table WHERE `col_char_1024_not_null_key` IN (_quid) 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 `pk` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text_key` = _char ORDER BY _field_list LIMIT 1 /*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 /*Generated by THREAD_ID _thread_id*/ | START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` BETWEEN _digit AND 5 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = _tinyint_unsigned ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE `col_int_not_null_key` IN (_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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN 1 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_int` < 1 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*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_10_not_null` IN (_char, _quid) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 5 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_bigint_key` IN (5, 5) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 5 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*/ ; DELETE FROM _table WHERE _field_key > _varchar(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 `col_bigint` BETWEEN _digit AND 1 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _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 _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ | /*!50400 ALTER TABLE a ADD PARTITION (PARTITION p2 VALUES LESS THAN MAXVALUE) */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM e PARTITION (p1) WHERE `col_int_nokey` = _digit | DELETE FROM g PARTITION (p3) WHERE `col_int_nokey` = _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 6 | /*!50400 ALTER TABLE w PARTITION BY HASH ( `col_int_nokey` ) PARTITIONS 3 */ | CREATE TABLE IF NOT EXISTS k ( `col_int_nokey` INTEGER, `col_int_key` INTEGER NOT NULL, KEY (`col_int_key`) ) ENGINE = MYISAM /*!50100 { @digits = @{$prng->shuffleArray([0..9])} ; return undef } PARTITION BY LIST ( `col_int_nokey` ) ( PARTITION p0 VALUES IN ( { shift @digits }, NULL ), PARTITION p1 VALUES IN ( { shift @digits }, { shift @digits }, { shift @digits } ), PARTITION p2 VALUES IN ( { shift @digits }, { shift @digits }, { shift @digits } ), PARTITION p3 VALUES IN ( { shift @digits }, { shift @digits }, { shift @digits } ) ) */ SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM z WHERE `col_int_nokey` > _digit | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM k PARTITION (p3) | /*!50400 SET GLOBAL c1.key_cache_block_size = 4096 */ | /*!50400 ALTER TABLE u OPTIMIZE PARTITION p0,p2 */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM i PARTITION (p0) | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM q PARTITION (p2) WHERE `col_int_nokey` >= _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 `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` ) ) 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 `states` { $table_name = 'states' ; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `state` = { 'a'.$alias_count } . `state_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` = 'ORD' AND { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` IN ( 'AKN' , 'BIS' ) { ((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 ') } AND { $condition_table = 'airports'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` = 'MSP' { ((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'; 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'; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `state` IN ( 'GA' ) { ((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 `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 } . `origin` = 'AKN' { ((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` IN ( 'ORD' , 'AKN' , 'BIS' ) { ((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 = '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 = 'airports'; 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) ) AND ( { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `city` LIKE 'N9Q%') { ((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 ') } ) 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 `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 } . `origin` = 'AKN' AND { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `destination` = 'AKN' { ((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` = 'UT' { ((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 ( 'HA' , 'OO' , 'AQ' ) { ((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 = 'carriers' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` = 'DH' { ((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 = 'carriers' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` = 'DH' { ((exists $tables{$condition_table}) ? '' : '*/ 1 = 1 ') } ) ORDER BY a1 . `id` LIMIT _digit | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT MAX(a1 . id) 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 `aircraft` { $table_name = 'aircraft'; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } INNER JOIN `aircraft_engines` { $table_name = 'aircraft_engines' ; return undef ; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } USING ( `aircraft_engine_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` = '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 = 'carriers' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` IN ( 'FL' ) { ((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` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 2 ) { ((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 ( 'NW' , 'UA' , 'TZ' , 'MQ' , 'TW' , 'UA' , 'AS' ) { ((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` = 'TW' { ((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` = 'AL' { ((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` ) ) 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 } . `carrier` = 'AA' { ((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 ( 'HA' ) { ((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'; 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'; 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 = '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 ') } ) 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 `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 } . `origin` IN ( 'AKN' , 'BIS' , 'MSP' , 'MSP' ) AND { 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_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 = 'carriers' ; return undef; } { ((exists $tables{$condition_table}) ? '' : '/* ') } { my $alias = shift @{$aliases{$condition_table}}; push @{$aliases{$condition_table}} , $alias ; return $alias } . `code` = 'CO' { ((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 } . `name` LIKE 'N9Q%' { ((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 ( 'DH' , 'HA' , 'CO' , 'TZ' ) { ((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` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 1 ) { ((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` = 'ORD' { ((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` ) ) 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 } . `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` IN ( 'GU' ) { ((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` = 'HP' { ((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 = '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 = '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 = '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 ') } ) | { $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 `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) } . `destination` = { '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 . `destination` = { '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' ) { ((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 } . `name` 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 } . `name` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 2 ) { ((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 ') } ) | { $alias_count = 0 ; %tables = () ; %aliases = () ; return undef ; } SELECT MAX(a1 . id) 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 `states` { $table_name = 'states' ; return undef; } AS { $alias_count++ ; $tables{$table_name}++ ; push @{$aliases{$table_name}}, 'a'.$alias_count ; return 'a'.$alias_count } ON ( { 'a'.($alias_count - 1) } . `state` = { 'a'.$alias_count } . `state_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` = 'NW' { ((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` = 'WY' { ((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` = 'EV' { ((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` = 'MQ' { ((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 } . `name` LIKE 'N10%' { ((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` = 'HA' { ((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 } . `name` LIKE 'N9Q%' { ((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 `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 `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 } . `tail_num` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 1 ) { ((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 = '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 ( 'NJ' ) { ((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` = 'IL' { ((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` = 'B6' { ((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 | { $tables = 0 ; $fields = 0 ; "" } ALTER TABLE _table[invariant] ADD INDEX `_quid[invariant]` (`col_char_10` , `col_text_not_null_key` , `col_char_10_not_null`) ; ALTER TABLE _table[invariant] DROP INDEX `_quid[invariant]` | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} FROM ( C AS { "table".++$tables } STRAIGHT_JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_text_not_null` = { "table".($tables - 1) } . `col_char_10_key` ) ) WHERE `col_int_not_null_key` >= _digit | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} , _field AS {"field".++$fields} FROM ( C AS { "table".++$tables } INNER JOIN ( ( BB AS { "table".++$tables } LEFT JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_key` = { "table".($tables - 1) } . `col_text` ) ) ) ON ({ "table".$tables } . `col_char_1024_not_null_key` = { "table".($tables - 1) } . `col_char_1024` ) ) WHERE `col_char_10` >= _char ; SELECT _field AS {"field".++$fields} FROM ( DD AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE `pk` <= _digit AND `col_text_key` >= _char AND `col_bigint_key` > _digit | { $tables = 0 ; $fields = 0 ; "" } SHOW PROCESSLIST | { $tables = 0 ; $fields = 0 ; "" } SHOW PROCESSLIST | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} FROM ( C AS { "table".++$tables } INNER JOIN D AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE `col_text_key` >= _char | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} , _field AS {"field".++$fields} FROM ( CC AS { "table".++$tables } RIGHT OUTER JOIN ( ( CC AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_char_1024_key` ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE `col_text` <= _char AND `pk` = _digit | { $tables = 0 ; $fields = 0 ; "" } SELECT _field AS {"field".++$fields} FROM ( CC AS { "table".++$tables } INNER JOIN ( ( DD AS { "table".++$tables } STRAIGHT_JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_key` = { "table".($tables - 1) } . `col_char_10` ) ) ) ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_text_not_null_key` ) ) WHERE `col_int_key` <= _digit AND `col_char_1024_not_null_key` < _char | { $tables = 0 ; $fields = 0 ; "" } SHOW PROCESSLIST | { $tables = 0 ; $fields = 0 ; "" } SHOW PROCESSLIST | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT DISTINCT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , SUM( table2 . `col_date` ) AS { "field".++$fields } , table1 . _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_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 { $cur_table='table1'; "" } { $cur_table } . `col_int` < { "table".$prng->int(1,$tables) } . `col_int` 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 AND { $int_idx_field } <= ( _digit + 8 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 10 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_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 } IN ( 8 ) 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 } IN (_char) 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 } IS NULL AND { $char_idx_field } >= 'j' 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 } <> 8 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 } >= _char AND { $char_idx_field } <= 'z' { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "table".$prng->int(1,$tables) } . `col_int` < _digit ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT { $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 } , { $cur_table } . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $cur_table='table3'; ""} { $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_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 { $cur_table='table1'; "" } { $cur_table } . `col_int` NOT IN ( 1, _digit ) AND { $cur_table } . `col_int` BETWEEN _digit[invariant] AND ( _digit[invariant] + 20 ) AND { $cur_table='table1'; "" } { $cur_table } . `col_varchar_10_utf8` <= _english OR { $cur_table } . `col_varchar_1024_latin1` 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 } > _digit AND { $int_idx_field } < ( _digit + 5 ) 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] + 10 ) AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 8 ) 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] + 1 ) 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] + _digit ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table3 . _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")); } 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_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_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 } . `pk` IN ( 7, _digit ) AND { $cur_table } . `col_int` NOT IN ( 2 ) 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 } > { "table".$prng->int(1,$tables) } . `col_int` AND { $int_idx_field } IS NULL 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 } NOT BETWEEN _char AND 'z' AND { $cur_table='table1'; "" } { $cur_table } . `col_int_key` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table2 . _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] } . `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'; "" } { $cur_table } . `col_varchar_1024_utf8_key` IN ( _char, _quid ) 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 } BETWEEN _char AND 'z' 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 } > _char AND { $char_idx_field } < 'z' 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] + _digit ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IN ( 10, 1000, 1000 ) 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 + 2 ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 7 ) 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] + _digit ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT SQL_SMALL_RESULT table2 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( table2 . `col_int_key` ) AS { "field".++$fields } , table1 . _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")); } 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 { $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) } . `col_int` 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 } < 'z' 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 } IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table3 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table3 . _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 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 { $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 AND { $int_idx_field } < ( _digit + 20 ) AND { $cur_table='table1'; "" } { $cur_table } . `col_varchar_1024_latin1_key` < { "table".$prng->int(1,$tables) } . `col_varchar_1024_utf8` 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 } IN ( 9, 1, _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 } BETWEEN _char AND 'z' 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 } >= 'b' AND { $char_idx_field } <= 'p' AND { $char_idx_field } IS NOT NULL 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 } NOT LIKE ( '_%' ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IS NULL 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 (_char, _english) OR { $char_idx_field } IN (_english, _char, _quid) 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 ( CONCAT( _char, '%') ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT { $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_indexed 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 } , { $cur_table } . _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_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 { $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 } LIKE ( 'a%' ) AND { $char_idx_field } > _char AND { $char_idx_field } <= 'z' AND { $char_idx_field } < { "table".$prng->int(1,$tables) } . `col_varchar_10_latin1` AND { $char_idx_field } IN (_quid, _quid, _quid, _english, _english, _quid) AND { $cur_table='table1'; "" } { $cur_table } . `col_varchar_10_latin1` < _char AND { $cur_table } . `col_int` != { "table".$prng->int(1,$tables) } . `col_int` OR { $cur_table } . `col_int_key` IN ( 2 ) OR { $cur_table } . `col_varchar_10_latin1_key` BETWEEN _char[invariant] AND CHAR(ASCII( _char[invariant] ) + 3 ) AND { $cur_table } . `col_int` < { "table".$prng->int(1,$tables) } . `col_int_key` OR { $cur_table='table1'; "" } { $cur_table } . `col_int_key` IN ( 5, 8 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "table".$prng->int(1,$tables) } . `col_int_key` >= 8 AND { "table".$prng->int(1,$tables) } . `col_varchar_10_latin1_key` >= _char) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT STRAIGHT_JOIN { $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='table1'; ""} { $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='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] } . `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 } . `pk` >= 100 OR { $cur_table } . `pk` IS NULL 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 } IN (_char) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT MAX( table2 . `col_int_key` ) 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")); } 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 } { $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 { $cur_table='table1'; "" } { $cur_table } . `pk` > { "table".$prng->int(1,$tables) } . `col_int_key` OR { $cur_table } . `col_varchar_1024_utf8_key` > { "table".$prng->int(1,$tables) } . `col_varchar_1024_latin1` 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] + 100 ) 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 } >= _char AND { $char_idx_field } <= 'z' OR { $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[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 } > _english AND { $char_idx_field } <= _quid { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @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")); } 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_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 { $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 ) 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 } IS NULL AND { $char_idx_field } LIKE ( _quid ) 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 AND { $int_idx_field } <= ( _digit + 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 } BETWEEN _digit[invariant] AND ( _digit[invariant] + 1 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = $cur_table." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IN ( _digit, _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 } NOT IN (_char) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "table".$prng->int(1,$tables) } . `col_int` != 2 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _tinyint_unsigned LIMIT 7 /*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 int_field BETWEEN 1 AND 6 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 25 WHERE `col_char_255_not_null_key` IN (_char, _char) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `col_bigint` IN (25, _tinyint_unsigned, _digit, _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*/ | SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key IN ( _tinyint_unsigned , _tinyint_unsigned , _int_unsigned , _varchar(1) , _digit ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_10_not_null_key` IN (_quid) 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*/ ; SELECT X . _field_key FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . _field_key < _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` IN (_digit) ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _digit WHERE `col_char_10_not_null_key` IN (_char) ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 10 WHERE `col_int_not_null` BETWEEN _digit AND _digit 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 ) WHERE X . `col_int_not_null_key` BETWEEN 1 AND 5 LIMIT 7 LOCK IN SHARE MODE /*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 WHERE _field_key >= _tinyint_unsigned ORDER BY _field_list LIMIT 50 /*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*/ ; 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 100 /*Generated by THREAD_ID _thread_id*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*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) , _digit , _digit , _digit ) LIMIT 6 LOCK IN SHARE MODE /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_bigint` = _digit WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 7 /*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_key` = _digit WHERE `col_int_key` BETWEEN 7 AND 5 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO 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` ) 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 _tinyint_unsigned AND _tinyint_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 _field_key = _int_unsigned 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*/ | 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` = _char ORDER BY _field_list LIMIT 25 /*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 . `col_bigint` 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_10_not_null_key` IN (_quid) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 25 WHERE `col_int_not_null` IN (6, _int_unsigned, _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 int_field BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _tinyint_unsigned WHERE `col_bigint` = _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255` = _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_int_not_null_key` BETWEEN 1 AND 5 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 10 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` IN (_digit, 2) 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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 25 /*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_char_10_not_null_key` IN (_char, _char) ORDER BY _field_list LIMIT 10 /*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*/ ; 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_char_10_not_null` IN (_char, _char, _char, _char) ORDER BY _field_list LIMIT 10 /*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 int_field BETWEEN 3 AND 7 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 `col_bigint_key` BETWEEN _digit AND _tinyint_unsigned 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_char_10` = _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 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 25 WHERE `col_int` BETWEEN 1 AND _digit 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_bigint_key` IN (10, _tinyint_unsigned, _digit) 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_not_null_key` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 6 FOR UPDATE /*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 WHERE ( `col_varchar_64_key` IS NULL OR ( `col_varchar_64_key` <= _varchar(2) ) ) AND ( `col_smallint_key` BETWEEN _digit AND _digit + _tinyint_unsigned OR `pk` IN ( _digit , _tinyint_unsigned ) ) OR ( `col_varchar_64_key` IS NULL OR `col_varchar_64_key` LIKE CONCAT (_states , '%' ) ) AND ( `col_bigint_key` IN ( _digit , _digit ) AND ( `col_bigint_key` > _digit ) ) AND ( `col_varchar_64_key` LIKE CONCAT (_varchar(2) , '%' ) OR `col_varchar_10_key` LIKE CONCAT (_states , '%' ) ) ORDER BY `col_varchar_10_key` , `pk` /* */ | SELECT DISTINCT * FROM _table WHERE ( `col_smallint_key` BETWEEN 255 AND _digit + _digit AND `col_smallint_key` IS NOT NULL ) OR ( ( ( `col_smallint_key` >= 1 ) OR `pk` IS NULL ) OR ( `col_varchar_10_key` LIKE CONCAT (_english , '%' ) OR `col_varchar_64_key` NOT LIKE CONCAT (_states , '%' ) ) AND ( `pk` NOT IN ( 255 , 1 ) OR `col_smallint_key` IS NULL ) ) AND ( `col_varchar_10_key` IN ( _english , _english , _varchar(2) , _english ) OR `col_varchar_10_key` IS NULL ) /* */ | SELECT * FROM _table WHERE ( NOT ( `col_varchar_10_key` = _varchar(2) ) OR ( `col_varchar_64_key` > _states ) ) AND ( `col_bigint_key` IS NULL OR NOT ( `pk` = 1 ) ) AND ( `col_smallint_key` IS NULL OR `col_smallint_key` IN ( _digit , _digit ) ) AND ( `pk` BETWEEN _tinyint_unsigned AND 255 + _tinyint OR `col_smallint_key` NOT BETWEEN _digit AND _digit + 255 ) OR ( `col_varchar_10_key` IN ( _english , _english , _varchar(2) ) OR `col_varchar_10_key` LIKE CONCAT (_varchar(10) , '%' ) ) ORDER BY `col_varchar_10_key` , `pk` /* */ | SELECT * FROM _table WHERE ( `pk` IN ( 1 , _digit ) OR NOT ( `col_bigint_key` <= 255 ) ) OR ( `col_varchar_10_key` IS NULL OR `col_varchar_10_key` NOT BETWEEN _varchar(10) AND _varchar(10) ) AND ( `col_varchar_10_key` IN ( _varchar(2) , _states , _varchar(2) ) OR `col_varchar_10_key` NOT BETWEEN _varchar(1) AND _varchar(2) ) AND ( `pk` IS NULL OR `pk` BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint ) /* */ | SELECT * FROM _table WHERE ( `col_smallint_key` IS NOT NULL OR `col_smallint_key` IN ( _tinyint , 1 ) ) AND ( `col_varchar_64_key` LIKE CONCAT (_varchar(2) , '%' ) OR `col_varchar_64_key` IN ( _english , _varchar(2) , _varchar(2) , _varchar(10) ) ) AND ( `col_smallint_key` NOT IN ( _tinyint_unsigned , 255 , _digit , _digit ) AND NOT ( `col_smallint_key` = 1 ) ) AND ( ( `col_varchar_10_key` IN ( _varchar(2) , _varchar(10) ) OR ( `col_varchar_10_key` >= _varchar(2) ) ) AND ( ( `pk` = _tinyint_unsigned ) AND `col_smallint_key` BETWEEN 255 AND _digit + 1 ) AND ( `col_varchar_10_key` LIKE CONCAT (_varchar(1) , '%' ) AND ( `col_varchar_10_key` < _varchar(1) ) ) ) ORDER BY `col_bigint_key` , `pk` /* */ | SELECT DISTINCT * FROM _table WHERE ( `col_varchar_64_key` BETWEEN _varchar(1) AND _states OR `col_varchar_64_key` BETWEEN _varchar(1) AND _varchar(2) ) AND ( ( `col_bigint_key` IN ( _tinyint , 1 ) OR `col_smallint_key` BETWEEN _digit AND _digit + _tinyint ) AND ( `col_varchar_10_key` BETWEEN _varchar(1) AND _english OR `col_varchar_64_key` IN ( _states , _english , _states ) ) ) AND ( `col_smallint_key` BETWEEN _tinyint AND _digit + _tinyint AND `pk` BETWEEN _tinyint AND _tinyint_unsigned + 1 ) AND ( ( `col_varchar_10_key` >= _states ) AND `col_varchar_10_key` BETWEEN _varchar(1) AND _varchar(10) ) ORDER BY `col_varchar_10_key` , `pk` /* LIMIT _digit */ | SELECT * FROM _table WHERE ( `col_smallint_key` IS NULL OR `pk` IS NULL ) AND ( ( `pk` != 1 ) AND ( `pk` >= _tinyint ) ) AND ( ( `col_smallint_key` IS NOT NULL OR `pk` IN ( _tinyint_unsigned , _digit ) ) AND ( ( `col_smallint_key` IS NOT NULL OR ( `col_bigint_key` > 255 ) ) ) ) /* */ | SELECT COUNT( `col_bigint_key` ) FROM _table FORCE KEY ( PRIMARY , `col_smallint_key` , `col_bigint_key` , `col_varchar_10_key` , `col_varchar_64_key` ) WHERE ( ( `col_varchar_64_key` != _states ) OR ( `col_varchar_10_key` <= _states ) ) AND ( `col_varchar_10_key` IS NULL OR `col_varchar_10_key` IN ( _varchar(1) , _english , _english ) ) AND ( `col_varchar_64_key` BETWEEN _varchar(10) AND _varchar(1) OR `col_varchar_10_key` IN ( _varchar(10) , _varchar(1) ) ) AND ( NOT ( `col_varchar_64_key` != _varchar(10) ) OR ( `col_varchar_64_key` = _english ) ) | SELECT `col_smallint_key` , COUNT( `col_smallint_key` ) FROM _table WHERE ( ( `col_varchar_64_key` = _varchar(1) ) OR `col_varchar_10_key` LIKE CONCAT (_english , '%' ) ) AND ( ( ( `pk` <= _tinyint ) OR `col_smallint_key` IS NULL ) OR ( NOT ( `col_bigint_key` = 1 ) OR ( `col_bigint_key` <= 255 ) ) OR ( `col_varchar_64_key` BETWEEN _states AND _english OR ( `col_varchar_64_key` <= _english ) ) ) AND ( `col_varchar_10_key` LIKE CONCAT (_varchar(10) , '%' ) OR `col_varchar_10_key` BETWEEN _english AND _varchar(2) ) AND ( `col_varchar_10_key` LIKE CONCAT (_varchar(10) , '%' ) OR `col_varchar_64_key` IN ( _varchar(1) , _states , _varchar(1) , _varchar(10) , _varchar(10) ) ) AND ( `col_bigint_key` IS NULL OR `col_smallint_key` NOT IN ( 255 , _digit ) ) GROUP BY 1 | SELECT * FROM _table FORCE KEY ( PRIMARY , `col_smallint_key` , `col_bigint_key` , `col_varchar_10_key` , `col_varchar_64_key` ) WHERE ( `pk` IN ( _tinyint_unsigned , _tinyint ) OR ( `col_bigint_key` = _tinyint ) ) AND ( `pk` BETWEEN _digit AND _digit + _tinyint_unsigned OR ( `col_bigint_key` >= _digit ) ) AND ( `col_varchar_64_key` LIKE CONCAT (_english , '%' ) OR `col_varchar_64_key` BETWEEN _varchar(10) AND _english ) OR ( `col_smallint_key` BETWEEN _digit AND _tinyint + _tinyint OR `col_bigint_key` IN ( _tinyint_unsigned , 255 , _tinyint_unsigned , 1 ) ) AND ( `col_varchar_10_key` NOT LIKE CONCAT (_varchar(1) , '%' ) OR `col_varchar_10_key` LIKE CONCAT (_varchar(1) , '%' ) ) /* */ | UPDATE _table SET _field = FROM_UNIXTIME( _integer_unsigned ) WHERE MAKEDATE( DAYOFMONTH( TIMESTAMP( _date , _field ) ) , _tinyint_unsigned ) IS NULL AND _field NOT IN ( _field , _field ) | INSERT INTO _table ( _field ) VALUE ( FROM_DAYS( digit ) ) | INSERT INTO _table ( _field ) VALUE ( DATE( _date ) ) | UPDATE _table SET _field = _field WHERE _field = TIMESTAMP( _field ) | INSERT INTO _table ( _field ) VALUE ( MAKEDATE( _tinyint_unsigned , _tinyint_unsigned ) ) | INSERT INTO _table ( _field ) VALUE ( _field ) | UPDATE _table SET _field = _field WHERE _field IN ( FROM_UNIXTIME( _integer_unsigned ) , CONVERT_TZ( _field , CONCAT( '+' , CONCAT_WS(':', _digit , _digit ) ) , 'MET' ) ) | UPDATE _table SET _field = TIMESTAMPADD( MINUTE , _field , TIMESTAMPADD( DAY , _tinyint_unsigned , _field ) ) WHERE _field IS NULL | UPDATE _table SET _field = FROM_UNIXTIME( _integer_unsigned ) WHERE _field IN ( FROM_UNIXTIME( _integer_unsigned , CONCAT_WS( ':' , '%x' , '%M' , '%b' ) ) , _field ) | INSERT INTO _table ( _field ) VALUE ( _field ) | SELECT _field_key , COUNT( _field_key ) FROM _table WHERE ( _field_indexed BETWEEN _datetime AND '0000-00-00 00:00:00' AND ( _field_indexed = _datetime ) ) AND ( _field_indexed BETWEEN _datetime AND _timestamp AND _field_indexed BETWEEN _timestamp AND _datetime ) AND ( ( _field_indexed = _timestamp ) AND _field_indexed IS NULL ) AND ( _field_indexed IN ( _datetime , _datetime , _datetime , '0000-00-00 00:00:00' , '0000-00-00 00:00:00' ) AND NOT ( _field_indexed >= _datetime ) ) GROUP BY _field_key | SELECT * FROM _table WHERE ( _field_indexed IN ( _datetime , _datetime , _timestamp , _timestamp ) AND _field_indexed IS NULL ) AND ( ( _field_indexed IN ( _datetime , '0000-00-00 00:00:00' , _timestamp , '0000-00-00 00:00:00' ) AND ( _field_indexed < _datetime ) ) AND ( ( _field_indexed BETWEEN '0000-00-00 00:00:00' AND '0000-00-00 00:00:00' OR _field_indexed IS NULL ) ) ) AND ( _field_indexed IN ( _datetime , _datetime , _datetime , _datetime ) AND _field_indexed BETWEEN _datetime AND _timestamp ) AND ( ( _field_indexed IN ( _datetime , _datetime , _timestamp , _timestamp , _datetime , _timestamp ) AND NOT ( _field_indexed < _datetime ) ) ) ORDER BY _field_indexed , `pk` /* */ | SELECT MIN( _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 ( _datetime , '0000-00-00 00:00:00' , _datetime , '0000-00-00 00:00:00' , _timestamp ) ) AND ( _field_indexed IS NULL AND _field_indexed NOT IN ( _datetime , _datetime , _timestamp ) ) AND ( _field_indexed BETWEEN _datetime AND _timestamp AND _field_indexed BETWEEN '0000-00-00 00:00:00' AND _datetime ) AND ( _field_indexed IS NOT NULL AND _field_indexed NOT BETWEEN _datetime AND _timestamp ) AND ( _field_indexed BETWEEN _datetime AND _timestamp AND _field_indexed IN ( _timestamp , _datetime , '0000-00-00 00:00:00' , _timestamp , _timestamp , '0000-00-00 00:00:00' , _datetime ) ) AND ( ( _field_indexed = _timestamp ) OR _field_indexed IS NULL ) | SELECT * FROM _table WHERE ( ( _field_indexed <> _datetime ) OR _field_indexed IS NULL ) AND ( NOT ( _field_indexed < _datetime ) AND ( _field_indexed = _timestamp ) ) AND ( _field_indexed IS NULL AND _field_indexed BETWEEN _datetime AND _timestamp ) AND ( NOT ( _field_indexed != _datetime ) AND _field_indexed IN ( '0000-00-00 00:00:00' , _timestamp , _datetime , '0000-00-00 00:00:00' ) ) AND ( _field_indexed IS NULL AND ( _field_indexed > _datetime ) ) /* LIMIT _digit */ | SELECT DISTINCT * FROM _table WHERE ( _field_indexed IN ( _datetime , _datetime , _timestamp ) AND _field_indexed IS NULL ) AND ( ( _field_indexed = '0000-00-00 00:00:00' ) AND NOT ( _field_indexed != '0000-00-00 00:00:00' ) ) AND ( ( _field_indexed != _timestamp ) OR _field_indexed IS NULL ) AND ( _field_indexed IN ( _datetime , _datetime , '0000-00-00 00:00:00' ) AND _field_indexed IN ( _datetime , _datetime , '0000-00-00 00:00:00' ) ) /* */ | SELECT MIN( _field_key ) FROM _table WHERE ( _field_indexed BETWEEN _timestamp AND _datetime AND _field_indexed IS NULL ) AND ( _field_indexed IS NULL AND _field_indexed BETWEEN _datetime AND _datetime ) AND ( _field_indexed IN ( _timestamp , '0000-00-00 00:00:00' , '0000-00-00 00:00:00' , _datetime ) AND NOT ( _field_indexed = _timestamp ) ) AND ( ( _field_indexed IS NULL AND NOT ( _field_indexed != _datetime ) ) ) | SELECT DISTINCT * FROM _table FORCE KEY ( PRIMARY , _field_indexed , _field_indexed , _field_indexed , _field_indexed ) WHERE ( NOT ( _field_indexed < _datetime ) AND ( _field_indexed = _datetime ) ) AND ( ( _field_indexed != '0000-00-00 00:00:00' ) AND _field_indexed BETWEEN _datetime AND _datetime ) AND ( ( _field_indexed = _datetime ) AND _field_indexed IN ( '0000-00-00 00:00:00' , _datetime , _timestamp ) ) OR ( _field_indexed IS NULL AND _field_indexed IN ( _datetime , _datetime , _datetime ) ) AND ( _field_indexed IS NULL AND ( _field_indexed <> '0000-00-00 00:00:00' ) ) /* */ | SELECT * FROM _table WHERE ( NOT ( _field_indexed = '0000-00-00 00:00:00' ) AND ( _field_indexed = _timestamp ) ) AND ( _field_indexed IS NOT NULL AND _field_indexed BETWEEN _datetime AND _timestamp ) AND ( _field_indexed NOT BETWEEN _datetime AND _timestamp OR _field_indexed IN ( _datetime , _timestamp , '0000-00-00 00:00:00' , _timestamp ) ) AND ( _field_indexed BETWEEN _timestamp AND _datetime AND _field_indexed IS NULL ) AND ( _field_indexed BETWEEN _datetime AND _datetime AND ( _field_indexed = '0000-00-00 00:00:00' ) ) /* */ | SELECT DISTINCT * FROM _table WHERE ( ( _field_indexed = _timestamp ) AND _field_indexed IN ( _timestamp , '0000-00-00 00:00:00' , _datetime ) ) AND ( _field_indexed NOT BETWEEN _datetime AND _timestamp AND _field_indexed IN ( _timestamp , _datetime , _datetime , '0000-00-00 00:00:00' , _datetime ) ) AND ( _field_indexed IN ( '0000-00-00 00:00:00' , _datetime , _datetime ) AND _field_indexed NOT BETWEEN '0000-00-00 00:00:00' AND _timestamp ) ORDER BY _field_indexed , `pk` /* */ | SELECT DISTINCT * FROM _table WHERE ( _field_indexed NOT BETWEEN _datetime AND _timestamp AND _field_indexed IS NULL ) AND ( _field_indexed IS NULL AND ( _field_indexed < _datetime ) ) AND ( _field_indexed BETWEEN '0000-00-00 00:00:00' AND _timestamp AND _field_indexed IS NULL ) OR ( _field_indexed IS NULL AND _field_indexed IN ( '0000-00-00 00:00:00' , '0000-00-00 00:00:00' , _datetime , '0000-00-00 00:00:00' , _timestamp ) ) ORDER BY _field_indexed , `pk` /* */ | 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 2 AND 7 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_key` > _char ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` IN (_digit, 1) ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key != _int_unsigned ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_bigint_key` 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_char_255_not_null_key` >= _quid ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_int_not_null_key` BETWEEN 50 AND _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE `col_char_255_key` IN (_quid) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE `col_char_255_not_null` IN (_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 `col_char_255_not_null_key` IN (_char) ORDER BY _field_list LIMIT 100 /*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 100 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK /*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` = _tinyint_unsigned ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_key` = 1 WHERE `col_int` IN (25, 25) 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` = _char ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null_key` = 5 WHERE `col_bigint_key` BETWEEN 25 AND 25 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE `col_int_key` BETWEEN 1 AND _tinyint_unsigned ORDER BY _field_list 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*/ ; 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 = _varchar(1) 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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE `col_char_10_not_null` IN (_char) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255` IN (_char, _quid, _char) 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` IN (_digit) ORDER BY _field_list LIMIT 50 /*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_bigint_key` IN (10, _int_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_char_10_not_null_key` < _char 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 50 /*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 6 /*Generated by THREAD_ID _thread_id*/ | CREATE FUNCTION f7 () RETURNS INT RETURN (SELECT COUNT(*) FROM t10) | CREATE TABLE IF NOT EXISTS t9 (c6 TEXT NOT NULL, c9 DATE NOT NULL, c6 BLOB NULL) ENGINE = Innodb | CREATE TRIGGER letter BEFORE INSERT ON t9 FOR EACH ROW SET @trg=100 | CREATE EVENT letter ON SCHEDULE EVERY digit SECOND ON COMPLETION PRESERVE DO SET @ev=100 | CREATE VIEW v6 AS SELECT * FROM t7 | CREATE FUNCTION f7 () RETURNS INT RETURN (SELECT COUNT(*) FROM v1) | CREATE EVENT letter ON SCHEDULE EVERY digit SECOND ON COMPLETION PRESERVE DO SET @ev=100 | CREATE TABLE IF NOT EXISTS t2 (c9 BIGINT NULL) ENGINE = Innodb | CREATE VIEW v9 AS SELECT * FROM t4 | CREATE TABLE IF NOT EXISTS t1 (c1 TEXT NOT NULL) ENGINE = Innodb | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _varchar(1) WHERE `col_bigint_key` BETWEEN _digit AND _digit ORDER BY _field_list LIMIT 5 /*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*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint_key` IN (5, 2) 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*/ ; DELETE FROM _table WHERE `col_bigint_key` IN (8) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key IN ( _tinyint_unsigned , _int_unsigned , _varchar(1) , _varchar(1) , _varchar(1) ) LIMIT 7 FOR UPDATE /*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 ) LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) LIMIT 5 /*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_bigint` BETWEEN 3 AND 8 LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 1 AND 7 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) 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 `pk` BETWEEN _tinyint_unsigned AND _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*/ | DELETE FROM _table WHERE `col_bigint_key` IN (_digit, _digit) 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*/ ; DELETE FROM _table WHERE int_field BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 4 /*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*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_255_not_null_key` = _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 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` IN (_digit) ORDER BY _field_list LIMIT 1 /*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 . _field_key IN ( _int_unsigned , _tinyint_unsigned , _int_unsigned , _varchar(1) , _digit ) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X WHERE X . _field_key < _varchar(1) 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 3 AND 5 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE `col_char_10_key` IN (_quid) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` IN (_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*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*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` BETWEEN 3 AND 5 LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_not_null` IN (4, _tinyint_unsigned, _digit) ORDER BY _field_list LIMIT 3 /*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 ( _tinyint_unsigned , _digit , _varchar(1) , _tinyint_unsigned , _digit ) 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*/ ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 7 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_bigint` BETWEEN _tinyint_unsigned AND _int_unsigned LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 25 WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) 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 int_field BETWEEN _tinyint_unsigned AND _int_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*/ | 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 ) WHERE X . _field_key < _tinyint_unsigned LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X WHERE X . _field_key IN ( _digit , _int_unsigned , _tinyint_unsigned , _int_unsigned , _varchar(1) ) LIMIT 8 /*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 2 AND 5 LIMIT 6 /*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 = _tinyint_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*/ ; 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*/ ; DELETE FROM _table ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` IN (7) 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_int_not_null_key` IN (50) 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 IGNORE INTO oqgraph2 ( `origid` , `destid` ) VALUES ( _smallint_unsigned , _digit ) | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` , `weight` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned , _digit ) | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` , `weight` ) VALUES ( _smallint_unsigned , _tinyint_unsigned , _digit ) , ( _smallint_unsigned , _digit , _tinyint_unsigned ) | SELECT * FROM oqgraph2 WHERE latch = 1 AND origid = _digit | INSERT IGNORE INTO oqgraph1 ( `origid` , `destid` , `weight` ) VALUES ( _digit , _tinyint_unsigned , _tinyint_unsigned ) , ( _tinyint_unsigned , _digit , _tinyint_unsigned ) | INSERT IGNORE INTO oqgraph2 ( `origid` , `destid` , `weight` ) VALUES ( _digit , _digit , _tinyint_unsigned ) , ( _digit , _tinyint_unsigned , _tinyint_unsigned ) , ( _smallint_unsigned , _tinyint_unsigned , _digit ) , ( _tinyint_unsigned , _digit , _tinyint_unsigned ) , ( _smallint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) | INSERT IGNORE INTO oqgraph1 ( `origid` , `destid` ) VALUES ( _tinyint_unsigned , _tinyint_unsigned ) , ( _tinyint_unsigned , _tinyint_unsigned ) , ( _tinyint_unsigned , _smallint_unsigned ) , ( _tinyint_unsigned , _tinyint_unsigned ) , ( _digit , _smallint_unsigned ) , ( _tinyint_unsigned , _smallint_unsigned ) | UPDATE oqgraph1 SET `origid` = _smallint_unsigned , `weight` = _digit , `weight` = _tinyint_unsigned | UPDATE oqgraph1 SET `origid` = _smallint_unsigned | INSERT IGNORE INTO oqgraph1 ( `origid` , `destid` ) VALUES ( _digit , _tinyint_unsigned ) | SET GLOBAL QUERY_CACHE_SIZE=1600000 | SET GLOBAL KEY_BUFFER_SIZE=400000 | SET GLOBAL QUERY_CACHE_SIZE=4198490 | FLUSH TABLES | SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED | SET GLOBAL EVENT_SCHEDULER=ON | SET SQL_MODE='TRADITIONAL' | SET GLOBAL BINLOG_FORMAT = ROW | SET GLOBAL BINLOG_FORMAT = MIXED | FLUSH TABLES | { @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 <> { 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 <> _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 | { @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 <= _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 >= _char(2) IS 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 = _digit AND { 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) 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) 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) 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 ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field 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 NOT (NOT ( ( ( { 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)) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field > _digit) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field >= _digit) OR { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field = _char(2)) | { @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 } LEFT JOIN { $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 } 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 { 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 _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 (NOT (NOT (NOT { 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) 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) 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 ) : "" } | { @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 } STRAIGHT_JOIN { $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 } 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 { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field = _datetime { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } 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 } INNER JOIN { $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 } 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 ( ( ( { 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 = _char(2)) 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 = _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) OR { 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 ) : "" } 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 <= { 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) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | SHOW PROCEDURE STATUS | FLUSH TABLE { $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 } | DELETE LOW_PRIORITY 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 } WHERE `pk` > _digit LIMIT 1 | UNLOCK TABLES | LOCK TABLES { $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 } AS _letter WRITE | ROLLBACK WORK | UNLOCK TABLES | FLUSH 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 } | HANDLER handler_a READ `col_int_key` >= ( _digit ) WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 | SELECT { $table_field_list = "`pk` , `col_int_key` , `pk` "} 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 { $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 FOR UPDATE | HANDLER handler_a CLOSE | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_int_signed` = _digit[invariant] WHERE ( _table[invariant] . `col_int_signed` BETWEEN _digit[invariant] AND ( _digit[invariant] + _digit ) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM _table AS { "table".++$tables } WHERE ( table1 . `col_varchar_5_utf8_key` < _char ) | { @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_varchar_256_latin1` NOT IN (_char, _char) ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_int_signed` = _digit[invariant] | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM _table AS { "table".++$tables } INNER JOIN _table AS { "table".++$tables } ON ( { "table".$tables } . `col_varchar_256_latin1_key` = { "table".($tables - 1) } . `col_varchar_256_utf8_key` ) WHERE ( table1 . `col_date` >= _date ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT COUNT( distinct table1 . `col_int_signed` ) AS { "field".++$fields } FROM _table AS { "table".++$tables } WHERE NOT ( ( table1 . `col_varchar_5_latin1_key` >= _char ) AND table1 . `col_varchar_512_cp932` NOT IN (_char, _varchar(512), _char, _char, _char ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @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 ; "" } SELECT SUM( table1 . `col_int_signed_key` ) AS { "field".++$fields } FROM _table AS { "table".++$tables } WHERE ( table1 . `col_varchar_256_latin1_key` != { "table".$prng->int(1,$tables) } . `col_varchar_5_latin1` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM _table AS { "table".++$tables } WHERE ( NOT ( table1 . `col_int_signed` BETWEEN _digit[invariant] AND ( _digit[invariant] + _digit ) ) OR table1 . `col_varchar_512_utf8` >= _char ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM _table AS { "table".++$tables } WHERE ( table1 . `col_varchar_5_cp932_key` != { "table".$prng->int(1,$tables) } . `col_varchar_256_cp932_key` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ( { "table".$prng->int(1,$tables) } . `col_int_signed_key` >= { "table".$prng->int(1,$tables) } . `col_int_signed` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } UPDATE _table[invariant] SET `col_varchar_512_utf8` = _char[invariant] WHERE ( _table[invariant] . `col_int_signed` < _digit ) ; SELECT COUNT(*) FROM _table[invariant] WHERE `col_varchar_512_utf8` = _char[invariant] | SHOW SESSION VARIABLES | SHOW TABLE STATUS | SHOW PROCESSLIST | SELECT TABLES . TABLE_TYPE , TABLES . TABLE_TYPE FROM tables , columns WHERE tables. table_name = columns . table_name | SHOW PROCESSLIST | SHOW VARIABLES | SHOW TABLES | SHOW PROCESSLIST | SELECT * FROM `data_dictionary` . INNODB_CMPMEM | SHOW PROCESSLIST | UPDATE _table SET _field = digit WHERE _field BETWEEN _varchar(255) AND _varchar(255) | DELETE FROM _table WHERE _field >= _varchar(255) LIMIT 1 | DELETE FROM _table WHERE _field BETWEEN _varchar(255) AND _varchar(255) LIMIT 1 | REPLACE INTO _table ( _field , _field ) VALUES ( _english , _varchar(255) ) | INSERT INTO _table ( _field ) SELECT _field FROM _table WHERE _field IN ( _english , _english , _varchar(255) , _varchar(255) , _varchar(255) , _varchar(255) , _varchar(255) , _english , _english , _varchar(255) , _varchar(255) ) LIMIT _digit | DELETE FROM _table WHERE _field > _varchar(255) LIMIT 1 | REPLACE INTO _table ( _field , _field ) VALUES ( _varchar(1) , _english ) | REPLACE INTO _table ( _field ) SELECT _field FROM _table WHERE _field != _english ORDER BY _field , _field LIMIT _digit | INSERT INTO _table ( _field , _field ) VALUES ( _varchar(255) , _varchar(1) ) | UPDATE _table SET _field = digit WHERE _field LIKE CONCAT( LEFT( _varchar(255) , _digit ) , '%' ) ORDER BY _field , _field | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT ( ( table2 . `col_int_key` ) + ( table1 . `pk` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } INNER JOIN ( ( BB AS { "table".++$tables } STRAIGHT_JOIN D AS { "table".++$tables } ON (( { "table".$tables } .`pk` != { "table".($tables - 1) } . `col_int_nokey` ) AND ({ "table".$tables } .`pk` >= { "table".($tables - 1) } . `col_int_nokey` ) ) ) ) ON (( { "table".$tables } .`pk` < { "table".($tables - 1) } . `col_int_key` ) AND ({ "table".$tables } .`pk` <> { "table".($tables - 1) } . `col_int_nokey` ) ) ) WHERE ( table1 . `col_int_key` = _tinyint_unsigned AND table1 . `col_int_key` = { "table".$prng->int(1,$tables) } . `pk` ) AND table1 .`pk` IS NOT NULL ORDER BY table1 . _field_indexed | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } INNER JOIN B AS { "table".++$tables } ON (( { "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_nokey` ) AND ( { "table".$tables } . `pk` = { "table".($tables - 1) } . `pk` ) ) ) WHERE table1 . `pk` = { "table".$prng->int(1,$tables) } . `col_int_key` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table1 . `col_varchar_key` , table2 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN CC AS { "table".++$tables } ON (( { "table".$tables } .`pk` = { "table".($tables - 1) } . `col_int_key` ) AND ({ "table".$tables } .`pk` >= { "table".($tables - 1) } . `pk` ) ) ) WHERE ( table1 . `col_varchar_key` = _char OR ( table1 . `col_int_key` = _tinyint_unsigned OR ( table1 . `col_varchar_key` = _char AND table1 . `col_varchar_key` = _char ) ) ) ORDER BY { "field".$prng->int(1,$fields) } ASC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM C AS { "table".++$tables } WHERE ( ( table1 . `pk` = { "table".$prng->int(1,$tables) } . `col_int_key` OR table1 . `pk` = _tinyint_unsigned ) OR ( table1 . `col_varchar_key` = _char AND table1 .`pk` IS NULL OR { "table".$prng->int(1,$tables) } . `col_int_key` <> { "table".$prng->int(1,$tables) } . `col_int_key` ) AND table1 . `col_varchar_nokey` IS NOT NULL ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( B AS { "table".++$tables } INNER JOIN ( ( CC AS { "table".++$tables } INNER JOIN CC AS { "table".++$tables } ON (( { "table".$tables } .`pk` < { "table".($tables - 1) } . `col_int_nokey` ) AND ({ "table".$tables } .`pk` = { "table".($tables - 1) } . `pk` ) ) ) ) ON (( { "table".$tables } . `col_varchar_key` <= { "table".($tables - 1) } . `col_varchar_nokey` ) OR ( { "table".$tables } . `col_int_key` != { "table".($tables - 1) } . `pk` ) ) ) ORDER BY table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT ( ( table1 . `pk` ) - ( table2 . `col_int_key` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table1 . `col_varchar_nokey` , table1 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } RIGHT JOIN ( ( CC AS { "table".++$tables } STRAIGHT_JOIN A AS { "table".++$tables } ON (( { "table".$tables } .`pk` <= { "table".($tables - 1) } . `col_int_key` ) AND ({ "table".$tables } .`pk` <> { "table".($tables - 1) } . `col_int_nokey` ) ) ) ) ON (( { "table".$tables } .`pk` = { "table".($tables - 1) } . `col_int_key` ) AND ({ "table".$tables } .`pk` > { "table".($tables - 1) } . `col_int_nokey` ) ) ) ORDER BY { "field".$prng->int(1,$fields) } DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT CONCAT( table2 . `col_varchar_nokey` , table1 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "table".++$tables } INNER JOIN ( ( C AS { "table".++$tables } LEFT OUTER JOIN B AS { "table".++$tables } ON (( { "table".$tables } . `col_varchar_nokey` > { "table".($tables - 1) } . `col_varchar_key` ) OR ( { "table".$tables } . `pk` > { "table".($tables - 1) } . `pk` ) ) ) ) ON (( { "table".$tables } . `col_varchar_key` <= { "table".($tables - 1) } . `col_varchar_key` ) OR ( { "table".$tables } . `pk` < { "table".($tables - 1) } . `pk` ) ) ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT SQL_SMALL_RESULT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table2 . `col_varchar_key` , table1 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table1 . `col_varchar_nokey` , table2 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( table1 . `col_varchar_nokey` , table2 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } LEFT OUTER JOIN B AS { "table".++$tables } ON (( { "table".$tables } .`pk` != { "table".($tables - 1) } . `pk` ) AND ({ "table".$tables } .`pk` <> { "table".($tables - 1) } . `col_int_key` ) ) ) WHERE ( table1 . `col_int_key` IN (_tinyint_unsigned) OR ( table1 . `pk` IN (_tinyint_unsigned) OR ( table1 . `col_int_key` NOT IN (_tinyint_unsigned) OR ( table1 . `col_varchar_key` >= _char[invariant] OR table1 . `pk` NOT IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) ) ) ) ) AND ( table1 . `col_varchar_key` <= _char[invariant] AND { "table".$prng->int(1,$tables) } . `col_varchar_nokey` = { "table".$prng->int(1,$tables) } . `col_varchar_nokey` ) ORDER BY { "field".$prng->int(1,$fields) } ASC , CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ), { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , ( ( table1 . `pk` ) - ( table2 . `pk` ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_int_nokey` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE table1 . `pk` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) AND ( ( table1 . `pk` = _tinyint_unsigned OR table1 . `col_varchar_key` = { "table".$prng->int(1,$tables) } . `col_varchar_key` ) OR ( table1 . `pk` = _tinyint_unsigned AND table1 . `col_int_nokey` IS NULL ) OR table1 .`pk` <= { "table".$prng->int(1,$tables) } . `col_int_key` ) ORDER BY CONCAT( { "table".$prng->int(1,$tables) } . `col_varchar_key`, { "table".$prng->int(1,$tables) } . `col_varchar_key` ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM CC AS { "table".++$tables } WHERE table1 .`pk` != { "table".$prng->int(1,$tables) } . `col_int_nokey` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } STRAIGHT_JOIN ( ( CC AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null` = { "table".($tables - 1) } . `pk` ) ) ) ON ({ "table".$tables } . `col_int_not_null` = { "table".($tables - 1) } . `col_int_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} NOT EXISTS ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_text_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( B AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` NOT IN ( SELECT { "CHILD_SUBQUERY".$child_subquery_idx."_t2" ; } . `col_int` AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM ( BB AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } STRAIGHT_JOIN ( ( AA AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } LEFT OUTER JOIN AA AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `pk` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_bigint_key` ) ) ) ON ({ "CHILD_SUBQUERY".$child_subquery_idx."_t".$child_subquery_tables } . `col_char_10_key` = { "CHILD_SUBQUERY".$child_subquery_idx."_t".($child_subquery_tables-1) } . `col_char_1024_key` ) ) WHERE { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_int_key` < { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_int_not_null_key` ) ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` > { "table".$prng->int(1,$tables) } . `col_int_not_null_key` OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint` <= 9 ) ) OR ( { "table".$prng->int(1,$tables) } . `col_char_10_key` >= { "table".$prng->int(1,$tables) } . `col_char_10_key` AND table1 . `col_text_not_null_key` IS NULL ) HAVING { "field".$prng->int(1,$fields) } > 7 ORDER BY table1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT table1 . `col_text_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } STRAIGHT_JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_key` ) ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_1024` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null` = _char ) IS NULL ) AND ( table1 . `col_bigint` >= { "table".$prng->int(1,$tables) } . `col_int_not_null` AND table1 . `col_int_not_null` IS NULL ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN ( ( BB AS { "table".++$tables } INNER JOIN D AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_bigint_key` ) ) ) ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } GROUP BY { SUBQUERY.$subquery_idx."_field1" } ) ) ) AND table1 . `pk` = _tinyint_unsigned { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } = _tinyint_unsigned ORDER BY table1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } STRAIGHT_JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10_not_null_key` = { "table".($tables - 1) } . `col_char_10_not_null` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_key` >= SOME ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_1024_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null_key` ) ) ) ) AND table1 . `col_char_1024_not_null_key` = { "table".$prng->int(1,$tables) } . `col_char_1024_not_null_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed DESC , table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_key` ) ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT ( table1 . `col_char_10_key` , table1 . `col_char_10_not_null` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_10_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_1024_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} EXISTS ( ( SELECT { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_char_10_not_null` AS { "CHILD_SUBQUERY".$child_subquery_idx."_field1" } FROM BB AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } ) ) ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT ( table1 . `col_char_1024_key` , table2 . `col_text` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_key` <> { "table".$prng->int(1,$tables) } . `col_char_1024_not_null` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( DD AS { "table".++$tables } LEFT OUTER JOIN ( ( BB AS { "table".++$tables } STRAIGHT_JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` <> { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` ) AS { "table".++$tables } ON ({ "table".$tables } . `col_char_1024_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_1024_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_not_null` > ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_10_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int` ) ) ) ) OR table1 . `col_bigint_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } > _char(2) ORDER BY table1 . _field_indexed DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN CONCAT ( table1 . `col_char_10` , table2 . `col_char_10` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MAX( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_int_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_text_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null` = { "table".$prng->int(1,$tables) } . `col_int` OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int` < 1 ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( table1 . `pk` ) AS { "field".++$fields } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } LEFT JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT SQL_SMALL_RESULT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT JOIN ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_key` ) ) WHERE { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text` NOT IN ( SELECT SQL_SMALL_RESULT { "CHILD_SUBQUERY".$child_subquery_idx."_t2" ; } . `col_char_1024_key` AS { "CHILD_SUBQUERY".$subquery_idx."_field1" } FROM A AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } WHERE { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_text_key` != { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_key` ) ) AS { "table".++$tables } ON ({ "table".$tables } . `col_int` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( A AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ) IS NULL ) AND table1 . `col_int_key` IN (_tinyint_unsigned) AND table1 . `pk` != { "table".$prng->int(1,$tables) } . `col_int_not_null` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_int_not_null` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_1024_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_1024_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null_key` ) ) ) IS NULL ) OR table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR { "table".$prng->int(1,$tables) } . `col_text_key` > _char { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( DD AS { "table".++$tables } INNER JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_char_10` = { "table".($tables - 1) } . `col_char_1024_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_not_null` IN ( SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_1024_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_1024_not_null_key` < { "table".$prng->int(1,$tables) } . `col_char_10_not_null_key` OR { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` > SOME ( SELECT 7 UNION SELECT 7 ) ) ) OR ( table1 . `col_int_key` = _tinyint_unsigned OR table1 . `col_char_1024_not_null_key` = _char ) OR { "table".$prng->int(1,$tables) } . `col_char_10_not_null` = { "table".$prng->int(1,$tables) } . `col_text_not_null` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } | SHOW PROCESSLIST | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN SUM( table1 . `col_char_1024_key` ) AS { "field".++$fields }, MIN( table1 . `col_char_1024_not_null_key` ) AS { "field".++$fields }, COUNT( table1 . `col_bigint_key` ) AS { "field".++$fields }, MIN( table1 . `col_bigint_key` ) AS { "field".++$fields } FROM ( AA AS { "table".++$tables } INNER JOIN ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT DISTINCT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_key` != { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_not_null_key` ) AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_key` >= ( SELECT DISTINCT MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_1024_not_null` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_text` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_1024_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null` >= { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` ) ) AND ( table1 . `col_int_not_null_key` = _tinyint_unsigned AND table1 . `col_int_key` = _tinyint_unsigned ) HAVING { "field".$prng->int(1,$fields) } > 1 ORDER BY { "field".$prng->int(1,$fields) } DESC , table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` | LOCK TABLES { $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 _letter IN SHARE MODE NOWAIT | SELECT { $table_field_list = "`col_int_key` , `pk` , `col_int` "} 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 NATURAL JOIN { $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 } B WHERE `pk` BETWEEN _digit[invariant] AND _digit[invariant] + 1 PROCEDURE ANALYSE( 10 , 2000 ) INTO OUTFILE _tmpnam | UNLOCK TABLES | $sequence_begin CREATE TABLE IF NOT EXISTS { $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 } ENGINE = MyISAM PARTITION BY KEY (pk) PARTITIONS 2 AS SELECT * FROM { $template_table_item = "test.table10_int_autoinc" } ; COMMIT ; SELECT SLEEP( { $rand_val = $prng->int(0,100) / 100 } * $life_time_unit ) ; DROP TABLE $part_table_item_s $sequence_end | LOCK TABLES { $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 } AS _letter IN EXCLUSIVE MODE NOWAIT | SELECT { $table_field_list = "`col_int` , `col_int_key` , `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 } 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` ) | UNLOCK TABLES | LOCK TABLES { $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 } AS _letter IN SHARE MODE NOWAIT | UNLOCK TABLES | UNLOCK TABLES | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` > 3 ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` = 7 ; SAVEPOINT A | START TRANSACTION ; INSERT INTO _table ( `pk` ) VALUES ( NULL ) ; ROLLBACK ; ROLLBACK | START TRANSACTION ; UPDATE _table SET `col_int_key` = `col_int_key` - 20, `col_int` = `col_int` + 20 ; ROLLBACK TO SAVEPOINT A | START TRANSACTION ; INSERT INTO _table ( `pk` ) VALUES ( NULL ) ; ROLLBACK ; SAVEPOINT A | START TRANSACTION ; INSERT INTO _table ( `pk` , `col_int_key` , `col_int`) VALUES ( NULL , 100 , 100 ) ; ROLLBACK | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `col_int_key` > 6 ; SAVEPOINT A | START TRANSACTION ; SET @var = 7 ; UPDATE _table SET `col_int` = `col_int` + 30, `col_int_key` = `col_int_key` - 30 WHERE `pk` BETWEEN @var AND @var + 1 ; SAVEPOINT A | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + IF(`pk` % 2 = 1 , 30, -30) WHERE `pk` IN ( 8 , 9 ) ; COMMIT | START TRANSACTION ; UPDATE _table SET `col_int` = `col_int` + IF(`pk` % 2 = 1 , 30, -30) WHERE `pk` IN ( 6 , 7 ) ; ROLLBACK TO SAVEPOINT A | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | SELECT _field FROM _table WHERE _field = _digit LIMIT _digit | SELECT _field FROM _table WHERE _field = _digit LIMIT _digit | SELECT _field FROM _table WHERE _field = _digit LIMIT _digit | INSERT INTO _table ( _field ) VALUES ( _digit ) | 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 | SELECT _field FROM _table WHERE _field < digit LIMIT _digit | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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")); } 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] } . `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 } WHERE { "table".$prng->int(1,$tables) } . `pk` <> 6 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | SELECT * FROM `data_dictionary` . INNODB_CMPMEM | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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")); } 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) } . `col_int` = { "table".$prng->int(1,$tables) } . `col_int_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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")); } LEFT JOIN { $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 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_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 } 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` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( DISTINCT table1 . `pk` ) AS {"field".++$fields } , table2 . `pk` 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")); } 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_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_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` IN (6) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | SHOW TABLES | { @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 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 } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` = 7 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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] } . `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` <> 6 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } > 8 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 100 OFFSET 5 { $stack->pop(undef) } | SHOW SCHEMAS | SHOW PROCESSLIST | REPLACE INTO b ( `col_int_nokey`, `col_int_key` ) SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM g PARTITION (p21) WHERE `col_int_nokey` < _digit ORDER BY `col_int_key` , `col_int_nokey` LIMIT 4 | /*!50400 ALTER TABLE t REPAIR 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,p97,p98 */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM k PARTITION (p3) | UPDATE a 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 n PARTITION (p64) WHERE `col_int_nokey` BETWEEN _digit AND _digit | /*!50400 ALTER TABLE a ENABLE KEYS */ | /*!50400 ALTER TABLE b REMOVE PARTITIONING */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM e 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) | /*!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 v 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) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SUM( alias1 . `col_varchar_key` ) AS { "field".++$fields } , alias1 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } , C AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `pk` IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_int_key` AS { "SQ".$subquery_idx."_field1" } FROM BB 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) } . `pk` AND { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` > ( SELECT MAX( { "C_SQ".$child_subquery_idx."_alias1" ; } . `col_varchar_key` ) AS { "C_SQ".$child_subquery_idx."_field1" } FROM D AS { "C_SQ".$child_subquery_idx."_alias".++$child_subquery_tables } ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } != _char(2) ORDER BY alias1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } /* _thread_id */ | { @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 ( BB AS { "alias".++$tables } , CC AS { "alias".++$tables } , view_A AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( ( SELECT 2 FROM DUAL ) ) ) AND alias1 . `pk` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) AND alias1 . `col_int_nokey` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC , alias1 . _field_indexed DESC , alias1 . _field_indexed DESC, { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 OFFSET 3 /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT COUNT( alias1 . `col_int_nokey` ) AS { "field".++$fields } FROM ( CC AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( _tinyint_unsigned, 6 ) NOT IN ( SELECT 4 , 3 UNION SELECT 4, 9 ) ) AND ( alias1 . `col_int_key` BETWEEN _tinyint_unsigned[invariant] AND ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR alias1 . `col_varchar_key` <> _char[invariant] ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY alias1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 OFFSET _tinyint_unsigned /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT COUNT( DISTINCT alias1 . `col_int_key` ) AS { "field".++$fields } FROM ( B AS { "alias".++$tables } , C AS { "alias".++$tables } , C AS { "alias".++$tables } ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_int_nokey` NOT IN ( SELECT 2 UNION SELECT 3 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } /* _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 } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } INNER JOIN CC AS { "alias".++$tables } ON ({ "alias".$tables } . `pk` = { "alias".($tables - 1) } . `col_int_key` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( _char, _char ) IN ( SELECT { "SQ".$subquery_idx."_alias2" ; } . `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 } ) ORDER BY CONCAT ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) , alias1 . _field_indexed ASC /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT DISTINCT COUNT( alias1 . `col_varchar_nokey` ) AS { "field".++$fields } FROM ( CC AS { "alias".++$tables } , C AS { "alias".++$tables } ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( { "alias".$prng->int(1,$tables) } . `col_varchar_key` , { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) IN ( SELECT { "SQ".$subquery_idx."_alias2" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field2" } FROM ( A AS { "SQ".$subquery_idx."_alias".++$subquery_tables } , CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) ORDER BY alias1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 /* _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 } , CONCAT ( alias1 . `col_varchar_nokey` , alias2 . `col_varchar_nokey` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "alias".++$tables } , C AS { "alias".++$tables } ) 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 } INNER JOIN CC AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ON ({ "SQ".$subquery_idx."_alias".$subquery_tables } . `col_int_nokey` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `pk` ) ) WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` != _char HAVING { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_int_nokey` != 1 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } > 'USA' /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias1 . `col_int_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_nokey` = { "alias".($tables - 1) } . `col_varchar_key` ) ) 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."_alias1" ; } . `col_varchar_key` AS { "SQ".$subquery_idx."_field2" } FROM B AS { "SQ".$subquery_idx."_alias".++$subquery_tables } GROUP BY { "SQ".$subquery_idx."_field1" } , { "SQ".$subquery_idx."_field2" } ) ) AND ( alias1 . `pk` NOT IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) OR alias1 . `pk` IN (_tinyint_unsigned) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` NOT IN ( SELECT { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` AS { "SQ".$subquery_idx."_field1" } FROM BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) AND { "field".$prng->int(1,$fields) } = 8) ORDER BY CONCAT ( { "alias".$prng->int(1,$tables) } . `col_varchar_nokey`, { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) , { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } DESC, { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT MIN( alias2 . `col_int_nokey` ) AS { "field".++$fields } , MAX( alias1 . `col_varchar_key` ) AS { "field".++$fields } FROM ( CC AS { "alias".++$tables } STRAIGHT_JOIN B AS { "alias".++$tables } ON ({ "alias".$tables } . `col_int_key` = { "alias".($tables - 1) } . `col_int_key` ) ) WHERE { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT { "SQ".$subquery_idx."_alias2" ; } . `col_int_nokey` AS { "SQ".$subquery_idx."_field1" } FROM BB AS { "SQ".$subquery_idx."_alias".++$subquery_tables } WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `pk` = { "alias".$prng->int(1,$tables) } . `pk` AND { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_key` != { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT alias2 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( A AS { "alias".++$tables } , C AS { "alias".++$tables } , CC AS { "alias".++$tables } ) 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_key` AS { "SQ".$subquery_idx."_field1" } , SUM( { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_nokey` ) 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_nokey` = { "SQ".$subquery_idx."_alias".($subquery_tables-1) } . `col_int_key` ) ) WHERE { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` = { "SQ".$subquery_idx."_alias".$prng->int(1,$subquery_tables) } . `col_varchar_nokey` ) ) AND ( alias1 . `col_int_key` IS NULL AND { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "alias".$prng->int(1,$tables) } . `col_varchar_key` = ( SELECT MAX( { "SQ".$subquery_idx."_alias1" ; } . `col_varchar_key` ) AS { "SQ".$subquery_idx."_field1" } FROM A AS { "SQ".$subquery_idx."_alias".++$subquery_tables } ) ) ORDER BY alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` , CONCAT ( { "alias".$prng->int(1,$tables) } . `col_varchar_key`, { "alias".$prng->int(1,$tables) } . `col_varchar_key` ) , alias1 . _field_indexed DESC , alias1 . _field_indexed , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` ASC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC /* _thread_id */ | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias2 . `col_varchar_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } , ( CC AS { "alias".++$tables } , BB AS { "alias".++$tables } ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY alias1 . _field_indexed ASC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } STRAIGHT_JOIN CC AS { "alias".++$tables } ON (( { "alias".$tables } .`pk` = { "alias".($tables - 1) } . `col_int_nokey` ) AND ({ "alias".$tables } .`pk` >= { "alias".($tables - 1) } . `col_int_nokey` ) ) ) WHERE alias1 . `pk` = _tinyint_unsigned OR ( ( ( alias1 . `col_varchar_key` IN ('USA' , 'USA') OR alias1 . `col_int_key` > _tinyint_unsigned[invariant] AND alias1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) AND alias1 . _field_indexed != _char(2) AND ( alias1 . `col_varchar_nokey` LIKE '%a%' OR alias1.`col_varchar_nokey` LIKE '%b%') AND { "alias".$prng->int(1,$tables) } . `col_varchar_key` > { "alias".$prng->int(1,$tables) } . `col_varchar_nokey` ) AND alias1 . _field_indexed != 3 AND ( alias1 . `col_varchar_nokey` LIKE '%a%' OR alias1.`col_varchar_nokey` LIKE '%b%') ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } < _char(2) AND { "field".$prng->int(1,$fields) } <> _char(2)) ORDER BY alias1 . _field_indexed DESC | { @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 } FROM ( BB AS { "alias".++$tables } , CC AS { "alias".++$tables } ) HAVING ({ "field".$prng->int(1,$fields) } >= 7 AND { "field".$prng->int(1,$fields) } <> _char(2)) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } , alias1 . _field_indexed | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( alias1 . `col_varchar_nokey` , alias1 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( D AS { "alias".++$tables } , CC AS { "alias".++$tables } ) WHERE alias1 . `pk` = { "alias".$prng->int(1,$tables) } . `col_int_key` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } < 8 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } STRAIGHT_JOIN A AS { "alias".++$tables } ON (( { "alias".$tables } .`pk` >= { "alias".($tables - 1) } . `col_varchar_key` ) AND ({ "alias".$tables } .`pk` <> { "alias".($tables - 1) } . `col_varchar_key` ) ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) }, alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC , { "field".$prng->int(1,$fields) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT MIN( _field_indexed[invariant] ) AS { "field".++$fields }, MAX( _field_indexed[invariant] ) AS { "field".++$fields }, `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , `col_int_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM CC AS { "alias".++$tables } WHERE { "alias".$prng->int(1,$tables) } . `col_varchar_key` <= _char(2) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT SQL_SMALL_RESULT alias1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , CONCAT( alias2 . `col_varchar_key` , alias2 . `col_varchar_key` ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( C AS { "alias".++$tables } LEFT JOIN CC AS { "alias".++$tables } ON (( { "alias".$tables } .`pk` = { "alias".($tables - 1) } . `col_int_nokey` ) AND ({ "alias".$tables } .`pk` <> { "alias".($tables - 1) } . `col_varchar_key` ) ) ) WHERE ( alias1 . `pk` > _tinyint_unsigned[invariant] AND alias1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR ( alias1 . `col_int_key` NOT IN (_tinyint_unsigned, _tinyint_unsigned, _tinyint_unsigned) OR ( alias1 . `col_varchar_key` IN (_char , 'USA' , _char , _char) OR 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 ; "" } SELECT SUM( alias1 . `col_varchar_nokey` ) AS { "field".++$fields } FROM ( C AS { "alias".++$tables } STRAIGHT_JOIN ( ( C AS { "alias".++$tables } STRAIGHT_JOIN C AS { "alias".++$tables } ON (( { "alias".$tables } .`pk` <> { "alias".($tables - 1) } . `col_varchar_key` ) AND ({ "alias".$tables } .`pk` != { "alias".($tables - 1) } . `col_varchar_key` ) ) ) ) ON (( { "alias".$tables } . `col_varchar_key` > { "alias".($tables - 1) } . `col_varchar_key` ) OR ( { "alias".$tables } . `col_varchar_nokey` > { "alias".($tables - 1) } . `col_varchar_key` ) ) ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } ASC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . `pk` 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 ( CC AS { "alias".++$tables } , ( C AS { "alias".++$tables } , C AS { "alias".++$tables } ) ) WHERE alias1 . `col_varchar_key` LIKE CONCAT( _char , '%' ) AND { "alias".$prng->int(1,$tables) } . `col_int_key` != { "alias".$prng->int(1,$tables) } . `col_varchar_key` ORDER BY alias1 . _field_indexed DESC , { "field".$prng->int(1,$fields) } ASC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` ASC , { "field".$prng->int(1,$fields) } DESC , alias1 . _field_indexed , { "alias".$prng->int(1,$tables) } .`pk` DESC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } SELECT alias1 . `col_int_nokey` 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 . `col_varchar_nokey` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , alias1 . `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 ( C AS { "alias".++$tables } , ( C AS { "alias".++$tables } , CC AS { "alias".++$tables } ) ) WHERE alias1 .`pk` IS NOT NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING ({ "field".$prng->int(1,$fields) } > 2 OR { "field".$prng->int(1,$fields) } >= _char(2)) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id LEFT OUTER JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( sequel_flag = 0 ) AND ( ( LENGTH( fbase_role_code ) != 3 AND sequel_flag = 0 OR related_film_id >= _english ) ) AND ( genre_tag LIKE 'A%' AND ( related_film_id BETWEEN _quid AND _english ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( related_film_id < table3 . fbase_film_detail_id ) AND ( LENGTH( fbase_role_code ) <= 25 AND related_film_id > _quid ) AND ( genre_tag > _quid ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id LEFT JOIN `fbase_film_genre` AS table3 ON table2 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( sequel_flag < FALSE AND sequel_flag = 1 ) AND ( fbase_role_code LIKE 'Y%' ) AND ( ( genre_tag BETWEEN _english AND _char ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT DISTINCT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 LEFT JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id RIGHT JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( related_film_id >= table1 . fbase_film_detail_id ) AND ( LENGTH( fbase_role_code ) > 75 ) AND ( ( fbase_film_genere_where_item ) AND sequel_flag >= FALSE ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 5000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 RIGHT JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( ( related_film_id BETWEEN _char AND _english ) AND related_film_id <> _quid ) AND ( ( LENGTH( fbase_role_code ) != 50 AND ( related_film_id BETWEEN _english AND _english ) ) ) AND ( genre_tag <> _english AND sequel_flag != TRUE ) HAVING genre_tag LIKE 'A%' OR related_film_id > table1 . fbase_film_detail_id AND related_film_id <> _english ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( sequel_flag = 1 AND sequel_flag != FALSE ) AND ( ( fbase_role_code BETWEEN _char AND _quid ) ) OR ( ( genre_tag BETWEEN _english AND _quid ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 5000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT DISTINCT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 LEFT JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( sequel_flag < TRUE ) AND ( fbase_role_code <= _char AND sequel_flag <= TRUE ) AND ( ( ( genre_tag BETWEEN _english AND _char ) OR sequel_flag <= TRUE AND sequel_flag >= TRUE OR sequel_flag < TRUE ) ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 5000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( sequel_flag = 1 OR related_film_id < table3 . fbase_film_detail_id ) AND ( fbase_role_code IN ( 'editor' ) AND ( related_film_id BETWEEN _english AND _quid ) AND related_film_id <> _quid ) AND ( genre_tag LIKE 'C%' ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 LEFT JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table1 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( related_film_id >= table2 . fbase_film_detail_id AND ( related_film_id BETWEEN _quid AND _char ) AND ( related_film_id BETWEEN _char AND _english ) OR sequel_flag = 0 AND ( related_film_id BETWEEN _quid AND _char ) ) OR ( ( fbase_role_code LIKE 'A%' AND related_film_id >= _quid AND sequel_flag = 1 AND sequel_flag != TRUE ) ) AND ( ( genre_tag BETWEEN _char AND _char ) ) HAVING related_film_id < table1 . fbase_film_detail_id OR related_film_id <> table3 . fbase_film_detail_id OR ( related_film_id BETWEEN _char AND _char ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 10000 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} SELECT table1 . fbase_film_detail_id AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , fbase_role_code AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , genre_tag AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM `fbase_film_series` AS table1 RIGHT JOIN `fbase_film_crew` AS table2 ON table1 . fbase_film_detail_id = table2 . fbase_film_detail_id JOIN `fbase_film_genre` AS table3 ON table2 . fbase_film_detail_id = table3 . fbase_film_detail_id WHERE ( related_film_id >= _quid ) OR ( ( fbase_role_code BETWEEN _english AND _char ) OR sequel_flag <> FALSE AND related_film_id >= _quid AND sequel_flag = 0 OR sequel_flag = 1 AND sequel_flag = 0 AND sequel_flag = 1 OR sequel_flag = 0 ) AND ( ( fbase_film_genere_where_item ) AND ( related_film_id BETWEEN _english AND _english ) AND related_film_id > table1 . fbase_film_detail_id ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 10000 | INSERT INTO _table ( `col_varchar_nokey` ) VALUES ( _charset ' letter ' ) | INSERT INTO _table ( `col_varchar_key` ) VALUES ( _charset ' letter ' ) | 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_nokey` ) VALUES ( _charset ' letter ' ) | INSERT INTO _table ( `col_varchar_nokey` ) VALUES ( _charset ' letter ' ) | UPDATE _table SET `col_varchar_nokey` = _charset ' letter ' WHERE `col_varchar_nokey` <> _charset ' letter ' | INSERT INTO _table ( `col_varchar_nokey` ) VALUES ( _charset ' letter ' ) | UPDATE _table SET `col_varchar_nokey` = _charset ' letter ' WHERE `col_varchar_key` <= _charset ' letter ' | UPDATE X SET f2 = _digit WHERE v2 < _digit | REPLACE INTO X ( f1 , f2 , f3 , f4 ) SELECT f3 , v1 , v1 , v1 FROM X WHERE v3 <> _digit AND v2 < _digit ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | DELETE FROM X WHERE v4 = f3 OR f3 <=> f2 ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | SELECT v3 , MAX(v2) FROM X /*executor1 FORCE KEY (v3, v4) */ WHERE f4 = _digit GROUP BY v3 ORDER BY f2 | REPLACE INTO X ( f1 , f2 , f3 , f4 ) VALUES ( f3 , _digit , f2 , f1 ) | UPDATE X SET f1 = f3 WHERE f2 <=> f4 | UPDATE X SET f2 = f1 WHERE f3 < f2 | REPLACE INTO X ( f3 , f1 ) VALUES ( f3 , f2 ) | DELETE FROM X WHERE f3 <=> _digit AND f2 != f3 ORDER BY f1,f2,f3,f4,v1,v2,v3,v4 LIMIT _digit | SELECT v4 , COUNT(f1) FROM X /*executor1 FORCE KEY (v3, v4) */ WHERE v3 <> f4 OR f1 < _digit GROUP BY v4 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( 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")); } LEFT JOIN { $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] } . `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")); } 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` { 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 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 } WHERE { "table".$prng->int(1,$tables) } . `pk` < 3 HAVING { "field".$prng->int(1,$fields) } <= 8 ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT STRAIGHT_JOIN table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , COUNT( DISTINCT table1 . `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(); 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) } . `col_int_key` = 5 OR { "table".$prng->int(1,$tables) } . `pk` BETWEEN _digit[invariant] AND ( _digit[invariant] + 3 ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } > _tinyint_unsigned { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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_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) } . `pk` != 1 AND { "table".$prng->int(1,$tables) } . `pk` > { "table".$prng->int(1,$tables) } . `col_int_key` ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } <= 2 ORDER BY { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( table2 . `col_int_key` ) AS {"field".++$fields } , SUM( table1 . `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 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 ( { "table".$prng->int(1,$tables) } . `col_int` != { "table".$prng->int(1,$tables) } . `col_int_key` OR { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 8 ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 OFFSET 1 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table2 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , MIN( table2 . `col_int` ) AS {"field".++$fields } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `pk` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `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")); } 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_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` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT STRAIGHT_JOIN table1 . `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] } . `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 } WHERE { "table".$prng->int(1,$tables) } . `col_int_key` BETWEEN _digit[invariant] AND ( _digit[invariant] + 5 ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } <= 3 { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT MAX( table1 . `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] } . `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) } . `pk` >= 4 OR { "table".$prng->int(1,$tables) } . `col_int` IN (8, 7, 5, 9, 8) ) ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT DISTINCT STRAIGHT_JOIN table2 . `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_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` { 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] } . `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` BETWEEN _digit[invariant] AND ( _digit[invariant] + 5 ) AND { "table".$prng->int(1,$tables) } . `col_int_key` IS NULL ) AND { "table".$prng->int(1,$tables) } . `pk` <> 4 ) OR { "table".$prng->int(1,$tables) } . `pk` NOT BETWEEN _digit[invariant] AND ( _digit[invariant] + 8 ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } { $stack->pop(undef) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; "" } { $stack->push() } SELECT table1 . `pk` 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_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 } { $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 { "table".$prng->int(1,$tables) } . `pk` >= 3 { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "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 } , table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , 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] } . `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` BETWEEN _digit[invariant] AND ( _digit[invariant] + 6 ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } { $stack->pop(undef) } | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; UPDATE _table SET _field = _english WHERE _field = _english ORDER BY _field LIMIT digit ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; UPDATE _table SET _field = _digit WHERE _field = NULL ORDER BY _field ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; INSERT INTO _table ( _field ) VALUES ( NULL ) ; SET BINLOG_FORMAT = @binlog_format_saved | RELEASE SAVEPOINT A | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; INSERT INTO _table ( _field ) VALUES ( _digit ) ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; INSERT INTO _table ( _field ) VALUES ( NULL ) ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'STATEMENT' ; INSERT INTO _table ( _field ) VALUES ( _digit ) ; UPDATE _table SET _field = _english WHERE _field < _digit ORDER BY _field ; INSERT INTO _table ( _field ) VALUES ( NULL ) ; INSERT INTO _table ( _field ) VALUES ( _digit ) ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'STATEMENT' ; UPDATE _table SET _field = _english WHERE _field > _english ; UPDATE _table SET _field = _digit WHERE _field > _digit ORDER BY _field ; INSERT INTO _table ( _field ) VALUES ( NULL ) ; INSERT INTO _table ( _field ) VALUES ( _english ) ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'STATEMENT' ; DELETE FROM _table WHERE _field = NULL LIMIT 1 ; INSERT INTO _table ( _field ) VALUES ( _english ) ; INSERT INTO _table ( _field ) VALUES ( _digit ) ; UPDATE _table SET _field = NULL WHERE _field < _digit ORDER BY _field LIMIT digit ; SET BINLOG_FORMAT = @binlog_format_saved | SET @binlog_format_saved = @@binlog_format ; SET BINLOG_FORMAT = 'ROW' ; INSERT INTO _table ( _field ) VALUES ( _english ) ; SET BINLOG_FORMAT = @binlog_format_saved | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | 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 | UPDATE _table SET _field = digit WHERE _field = _digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field = _digit LIMIT _digit | DELETE FROM _table WHERE _field < digit LIMIT 1 | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field = _digit LIMIT _digit | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 ; DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias4 READ _field_key LAST WHERE _field < ? " ; SET @val = _varchar(1) ; EXECUTE h_rp2 USING @val ; HANDLER alias1 READ NEXT WHERE _field < _varchar(1) | HANDLER alias4 CLOSE ; HANDLER _table OPEN AS alias4 | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 | DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias1 READ `PRIMARY` FIRST WHERE _field > ? " ; SET @val = _tinyint_unsigned ; EXECUTE h_rp2 USING @val | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 ; HANDLER alias1 READ `PRIMARY` LAST WHERE _field >= _varchar(1) ; HANDLER alias3 READ NEXT ; DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias2 READ `PRIMARY` NEXT WHERE _field = ? " ; SET @val = _varchar(1) ; EXECUTE h_rp2 USING @val | DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias4 READ `PRIMARY` NEXT WHERE _field > ? " ; SET @val = _tinyint_unsigned ; EXECUTE h_rp2 USING @val | HANDLER alias1 CLOSE ; HANDLER _table OPEN AS alias1 ; HANDLER alias1 READ _field_key > ( _digit ) WHERE _field <= _tinyint_unsigned ; HANDLER alias4 READ `PRIMARY` NEXT WHERE _field < _varchar(1) LIMIT _digit ; HANDLER alias2 READ FIRST WHERE _field <= _varchar(1) | HANDLER alias1 CLOSE ; HANDLER _table OPEN AS alias1 ; DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias4 READ _field_key PREV WHERE _field >= ? " ; SET @val = _varchar(1) ; EXECUTE h_rp2 USING @val ; DEALLOCATE PREPARE h_rp2 ; PREPARE h_rp2 FROM " HANDLER alias4 READ `PRIMARY` NEXT WHERE _field = ? " ; SET @val = _varchar(1) ; EXECUTE h_rp2 USING @val | HANDLER alias2 CLOSE ; HANDLER _table OPEN AS alias2 ; DEALLOCATE PREPARE h_r ; PREPARE h_r FROM " HANDLER alias3 READ `PRIMARY` = ( _tinyint_unsigned ) " ; EXECUTE h_r ; HANDLER alias1 READ FIRST | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _timestamp(6) , _date(6) , NULL ) | ALTER TABLE _table MODIFY _field TIMESTAMP(6) NOT NULL DEFAULT '2000-01-01 00:00:00' ON UPDATE CURRENT_TIMESTAMP(6) AFTER _field | FLUSH TABLES | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _english , 0 , _letter ) | ALTER TABLE _table MODIFY _field DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) FIRST | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _date(6) , _year , _year ) | 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 ( _data ) | INSERT IGNORE INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _timestamp(6) , _letter , _varchar(8) ) | DROP TABLE IF EXISTS _letter[invariant] ; DROP VIEW IF EXISTS _letter[invariant] ; CREATE TEMPORARY TABLE _letter[invariant] LIKE _table[invariant] ; INSERT INTO _letter[invariant] SELECT * FROM _table[invariant] | DROP TABLE IF EXISTS _letter[invariant] ; DROP VIEW IF EXISTS _letter[invariant] ; CREATE TABLE _letter[invariant] SELECT * FROM _table | { $change_db= undef; if ($trx == "BEGIN") { $change_db= "USE test"; if (rand() > 0.2) { $change_db .= "_" . int(rand($db) + 1)}; }; $change_db } | $trx ; { $trx =~ s/BEGIN/tempCOMMIT/g; $trx =~ s/^COMMIT/BEGIN/g; $trx =~ s/^ROLLBACK/BEGIN/g; $trx =~ s/temp//g; if ($trx == "COMMIT" && rand() > 0.8) { $trx =~ s/^COMMIT/ROLLBACK/g } ; if ($trx == "BEGIN") { $savepoint= "ROLLBACK TO SP1"}; undef } | INSERT INTO _table ( _field ) VALUES ( _digit ) | UPDATE _table SET _field = _digit, _field = _datetime WHERE _field BETWEEN _datetime AND _data AND (_field >= REPEAT(_tinyint_unsigned, _english)) LIMIT _tinyint_unsigned,_tinyint_unsigned | INSERT IGNORE INTO _table ( _field ) VALUES ( (_field + _field[invariant]) ) | SELECT * INTO OUTFILE _tmpnam FROM _table WHERE _field > (SELECT _field FROM _table WHERE _field <= _char(255) LIMIT 0,1) OR _field <= _data | INSERT IGNORE INTO _table ( _field ) VALUES ( REPEAT(_tinyint_unsigned, _english) ) | INSERT IGNORE INTO _table ( _field ) VALUES ( _english ), ( REPEAT(_tinyint_unsigned, _english) ) , ( _english ) , ( _english ) , ( REPEAT(_tinyint_unsigned, _english) ) | INSERT INTO _table ( _field ) VALUES ( _data ) | INSERT INTO _table SELECT * FROM _table WHERE _field IS NOT NULL OR ((LOG(_tinyint_unsigned) > _field) AND (_field <= REPEAT(_tinyint_unsigned, _english))) LIMIT _tinyint_unsigned,_tinyint_unsigned | { $col = 1 ; return "" } SELECT TIMESTAMPADD( MINUTE , _tinyint_unsigned , '0000-00-00 00:00:00' ) AS { 'c'.$col++ } FROM _table WHERE _field > _field ORDER BY _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , TIMEDIFF( '0000-00-00 00:00:00' , CURRENT_DATE() ) AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field IS NULL | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } FROM _table WHERE _field NOT IN ( _field , _field ) | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field >= _field AND _field BETWEEN ADDDATE( CURRENT_DATE() , _tinyint_unsigned ) AND DATE ( '0000-00-00 00:00:00' ) OR GREATEST( SUBTIME( FROM_UNIXTIME( _integer_unsigned ) , _field ) , '0000-00-00 00:00:00' , _field ) IS NOT NULL AND _field IN ( _field , CONVERT_TZ( _field , 'MET' , 'Japan' ) ) ORDER BY _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field NOT BETWEEN _field AND _field AND _field NOT IN ( EXTRACT( HOUR_MICROSECOND FROM _field ) , date_add_sub , SEC_TO_TIME( _digit ) , _field ) AND _field BETWEEN _field AND SUBTIME( _field , TIMESTAMPADD( WEEK , _field , COALESCE( LOCALTIME() , TIME( _field ) , ADDTIME( FROM_UNIXTIME( _integer_unsigned , CONCAT_WS( '-' , '%V' , '%h' , '%s' , '%w' , '%u' ) ) , _time ) , TIME( _date ) ) ) ) OR _field NOT BETWEEN _field AND CAST( _field AS DATETIME( 3 ) ) | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field < _field ORDER BY _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } FROM _table WHERE _field <> _field AND _field NOT BETWEEN _field AND FROM_UNIXTIME( _integer_unsigned , CONCAT_WS( '-' , '%p' , '%y' ) ) AND _field NOT IN ( GREATEST( '0000-00-00' , '0000-00-00' , LEAST( _field , _date ) , TIMEDIFF( _field , _date ) , '0000-00-00 00:00:00' ) , _field ) OR _field NOT IN ( TIMEDIFF( _field , SUBTIME( CURDATE() , _time ) ) , _field ) AND STR_TO_DATE( DATE_FORMAT( _date , CONCAT_WS( ':' , '%H' , '%f' , '%M' , '%l' , '%Y' ) ) , CONCAT_WS( ':' , '%H' , '%U' , '%c' , '%w' ) ) IS NULL AND _field NOT BETWEEN GREATEST( date_add_sub , TIMESTAMP( LOCALTIME() ) ) AND LOCALTIME() ORDER BY _field , _field , _field | { $col = 1 ; return "" } SELECT date_add_sub AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field > LEAST( FROM_UNIXTIME( _integer_unsigned ) , _field ) ORDER BY 1 | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE _field IS NULL ORDER BY _field , _field , _field , _field , _field , _field , _field | { $col = 1 ; return "" } SELECT _field AS { 'c'.$col++ } , _field AS { 'c'.$col++ } FROM _table WHERE DATE ( _date ) IS NULL AND _field IN ( CURRENT_DATE() , _field ) ORDER BY 1 | START TRANSACTION ; INSERT INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + (_digit * 10) , (CONNECTION_ID() * _thread_count) + (_digit * 10) ) ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; INSERT INTO _table ( _field , _field ) VALUES ( CONNECTION_ID() , (CONNECTION_ID() * _thread_count) + (_digit * 10) ) ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = CONNECTION_ID() WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; COMMIT | START TRANSACTION ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + (_digit * 10) ; DELETE FROM _table WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + _digit WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + _digit WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; COMMIT | START TRANSACTION ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; INSERT INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + _digit , CONNECTION_ID() ) ; DELETE FROM _table WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; REPLACE INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + _digit , CONNECTION_ID() ) ; COMMIT | START TRANSACTION ; DELETE FROM _table WHERE _field_indexed = CONNECTION_ID() LIMIT 1 ; INSERT 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 , (CONNECTION_ID() * _thread_count) + _digit ) ; DELETE FROM _table WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + (_digit * 10) LIMIT 1 ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + (_digit * 10) ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = CONNECTION_ID() WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + _digit LIMIT 1 ; REPLACE INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + _digit , CONNECTION_ID() ) ; COMMIT | START TRANSACTION ; UPDATE _table SET _field = (CONNECTION_ID() * _thread_count) + _digit WHERE _field_indexed = (CONNECTION_ID() * _thread_count) + _digit LIMIT 1 ; INSERT INTO _table ( _field , _field ) VALUES ( (CONNECTION_ID() * _thread_count) + (_digit * 10) , (CONNECTION_ID() * _thread_count) + _digit ) ; ROLLBACK | START TRANSACTION ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + (_digit * 10) ; DELETE FROM _table WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; ROLLBACK | START TRANSACTION ; UPDATE _table SET _field = CONNECTION_ID() WHERE `pk` = (CONNECTION_ID() * _thread_count) + _digit ; COMMIT | SELECT CAST( ST_NUMPOINTS( /*executor1 LINESTRINGFROMTEXT(' */ /*executor2 ST_LINEFROMTEXT(' */ LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') ) AS INTEGER ) | SELECT ST_CONTAINS( /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( 0 0 , _digit _digit , _digit _digit , 0 0 ) ) ') , /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( 7 7 , _digit 7 , _digit _digit , 7 _digit , 7 7 ) ) ') ) | SELECT CAST( ST_Y( /*executor1 ENDPOINT( */ /*executor2 ST_ENDPOINT( */ /*executor1 LINESTRINGFROMTEXT(' */ /*executor2 ST_LINEFROMTEXT(' */ LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') ) ) AS INTEGER ) | SELECT ST_WITHIN( /*executor1 MULTILINESTRINGFROMTEXT(' */ /*executor2 ST_MLINEFROMTEXT(' */ MULTILINESTRING( ( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , ( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ') , /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( 0 0 , _digit _digit , _digit _digit , 0 0 ) ) ') ) | SELECT GeometryType( ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION( POLYGON( (0 5, 1 5, 1 3, 2 3, 2 5, 3 5, 3 0, 2 0 , 2 2 , 0 2, 0 5) ) , MULTIPOLYGON( ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) , ( ( 2 2 , _digit 2 , _digit _digit , 2 _digit , 2 2 ) ) ) ) ') ) | SELECT ST_CONTAINS( /*executor1 MULTIPOLYGONFROMTEXT(' */ /*executor2 ST_MPOLYFROMTEXT(' */ MULTIPOLYGON( ( ( 9 9 , _digit _digit , _digit _digit , 9 9 ) ) , ( (3 5, 2 4, 2 5, 3 5) ) ) ') , /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( 0 0 , _digit _digit , _digit _digit , 0 0 ) ) ') ) | SELECT CAST( ST_AREA( /*executor1 MULTIPOLYGONFROMTEXT(' */ /*executor2 ST_MPOLYFROMTEXT(' */ MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ') ) AS INTEGER ) | SELECT SRID( /*executor1 GEOMETRYN( */ /*executor2 ST_GEOMETRYN( */ ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION( POLYGON( (3 5, 2 4, 2 5, 3 5) ) , MULTIPOINT( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , MULTILINESTRING( ( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , ( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ) ) ') , CAST( ST_LENGTH( /*executor1 MULTILINESTRINGFROMTEXT(' */ /*executor2 ST_MLINEFROMTEXT(' */ MULTILINESTRING( ( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) , ( _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ) ') ) AS INTEGER ) ) ) | SELECT ST_CONTAINS( /*executor1 LINESTRINGFROMTEXT(' */ /*executor2 ST_LINEFROMTEXT(' */ LINESTRING( _digit _digit , _digit _digit , _digit _digit , _digit _digit ) ') , ST_BUFFER( ST_ENVELOPE( /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( 2 2 , _digit 2 , _digit _digit , 2 _digit , 2 2 ) ) ') ) , ST_NUMINTERIORRINGS( ST_ENVELOPE( /*executor1 POLYGONFROMTEXT(' */ /*executor2 ST_POLYGONFROMTEXT(' */ POLYGON( ( { $start_x = $prng->digit() ; $start_y = $prng->digit() ; "$start_x $start_y"; } , _digit _digit , _digit _digit , _digit _digit , _digit _digit , _digit _digit , { "$start_x $start_y" } ) ) ') ) ) ) ) | SELECT CAST( ST_LENGTH( /*executor1 MULTILINESTRINGFROMTEXT(' */ /*executor2 ST_MLINEFROMTEXT(' */ MULTILINESTRING( ( 2 2 , _digit 2 , _digit _digit , 2 _digit , 2 2 ) ) ') ) AS INTEGER ) | { $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 COMMENT 'no PRIMARY KEY or INDEX' | { $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_binary_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 ) | { $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_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_tinytext_default_null (25), 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 PRIMARY KEY ( col_varchar_25_binary_not_null , col_varchar_25_binary_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 UNIQUE INDEX idx1 ( col_tinyint_default_null , col_tinytext_binary_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 PRIMARY KEY ( col_varchar_25_binary_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_tinytext_binary_not_null (25), col_tinytext_binary_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 INDEX idx1 ( col_double_default_null ), ADD UNIQUE INDEX idx2 ( col_char_25_default_null ) | DELETE FROM _table WHERE `col_char_10_key` < _char | DELETE FROM _table WHERE `col_char_1024_not_null_key` < _char | DELETE FROM _table WHERE `col_char_1024_key` <> _char | DELETE FROM _table WHERE `col_char_10_not_null_key` = _char | DELETE FROM _table WHERE `col_char_10` >= _char | DELETE FROM _table WHERE `col_char_1024_key` >= _char | DELETE FROM _table WHERE `col_char_10_not_null` > _char | DELETE FROM _table WHERE `col_char_1024` >= _char | DELETE FROM _table WHERE `col_char_1024_not_null` > _char | DELETE FROM _table WHERE `col_char_1024_not_null_key` < _char | /*!50400 ALTER TABLE b TRUNCATE 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 f REPAIR 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 } i 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 } ) WHERE `col_int_nokey` BETWEEN _digit AND _digit | /*!50400 ALTER TABLE b ORDER BY `col_int_nokey` */ | 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 b WHERE `col_int_nokey` BETWEEN _digit AND _digit | REPLACE INTO { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } z 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 } l 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 b ORDER BY `col_int_nokey` */ | SELECT `col_int_nokey` % 10 AS `col_int_nokey` , `col_int_key` % 10 AS `col_int_key` FROM a WHERE `col_int_nokey` < _digit | /*!50400 ALTER TABLE a DISABLE KEYS */ | UPDATE _table SET `col_bigint` = 25 WHERE `col_char_10_not_null_key` >= _char ORDER BY _field_list LIMIT 6 /*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 _tinyint_unsigned AND _int_unsigned 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 WHERE int_field BETWEEN 1 AND 8 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 4 AND 7 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` IN (3) ORDER BY _field_list LIMIT 2 /*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*/ ; UPDATE _table SET `col_bigint` = _int_unsigned WHERE `col_int_not_null_key` BETWEEN _tinyint_unsigned AND _digit ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` != _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*/ | 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 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 5 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned 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 3 AND 8 ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X WHERE X . _field_key < _tinyint_unsigned 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_int_not_null_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_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*/ ; COMMIT /*Generated by THREAD_ID _thread_id*/ ; SET AUTOCOMMIT=ON /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_bigint` = 8 WHERE `col_char_255_not_null_key` IN (_char) ORDER BY _field_list LIMIT 7 /*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 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` = _digit ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_10_not_null_key` IN (_quid) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE int_field BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 50 WHERE `col_int_key` IN (6) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO 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*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _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 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` = _tinyint_unsigned WHERE `col_char_10` = _quid ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 2 WHERE `col_int_key` IN (2) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE int_field BETWEEN 4 AND 8 ORDER BY _field_list LIMIT 8 /*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 int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; ROLLBACK TO SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 1 WHERE `col_int_not_null_key` IN (_digit) 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` = 8 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_int` IN (_digit) ORDER BY _field_list LIMIT 50 /*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*/ ; UPDATE _table SET `col_int` = 25 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 ) LIMIT 8 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = _tinyint_unsigned WHERE `col_int_not_null_key` IN (1) 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 `pk` BETWEEN 7 AND _varchar(1) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 10 WHERE `col_int_not_null_key` = 10 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` = 2 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X 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*/ ; 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 `pk` IN (25, 3) ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = 7 WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) 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 . _field_key < _varchar(1) LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_255_not_null_key` IN (_quid) 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*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE int_field BETWEEN 4 AND 6 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 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_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` BETWEEN 2 AND _tinyint_unsigned ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 25 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key 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*/ ; 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` < 5 ORDER BY _field_list LIMIT 100 /*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 ORDER BY _field_list LIMIT 10 /*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 ( _tinyint_unsigned , _int_unsigned , _int_unsigned , _tinyint_unsigned , _varchar(1) ) 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 `col_int` > 5 ORDER BY _field_list LIMIT 25 /*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 ( _digit , _digit , _digit , _int_unsigned , _tinyint_unsigned ) 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 ) 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 8 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 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*/ ; 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` < _quid ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LIMIT 7 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_int_not_null` BETWEEN 4 AND _digit ORDER BY _field_list LIMIT 25 /*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 int_field BETWEEN 2 AND 5 ORDER BY _field_list LIMIT 100 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = 1 WHERE `col_char_10_not_null_key` IN (_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_char_10_key` = _quid 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_int_not_null_key` = 7 WHERE `col_int_not_null_key` = _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint` = 1 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_not_null` BETWEEN _digit AND 2 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE `col_bigint_key` = 5 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 X . `pk` 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 6 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_key` > 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*/ ; 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` ) 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 _digit AND _digit ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` >= _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 < _varchar(1) LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key > _digit ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_key` = 1 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*/ | SET AUTOCOMMIT=OFF /*Generated by THREAD_ID _thread_id*/ ; START TRANSACTION /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key <= _tinyint_unsigned ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` = _digit 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 . _field_key < _int_unsigned LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` = _tinyint_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 _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _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*/ | SELECT GRANDPARENT1 . `col_char_1024_key` AS G1 FROM BB AS GRANDPARENT1 LEFT JOIN BB AS GRANDPARENT2 USING ( `col_char_1024_not_null_key` ) WHERE ( GRANDPARENT1 . `col_bigint_key` , GRANDPARENT1 . `col_bigint_key` ) IN ( SELECT PARENT1 . `col_int_not_null` AS P1 , PARENT1 . `col_bigint_key` AS P2 FROM B AS PARENT1 LEFT JOIN BB AS PARENT2 ON ( PARENT1 . `col_int_not_null` <> PARENT2 . `col_int_not_null_key` ) ) AND ( ( ( GRANDPARENT1 . `col_int_not_null` = digit OR GRANDPARENT1 . `col_int_not_null_key` IS NOT NULL ) OR GRANDPARENT1 . `col_char_10_key` IS NOT NULL ) AND GRANDPARENT1 . `col_text_not_null_key` IS NULL ) GROUP BY GRANDPARENT1 . `col_text_key` HAVING G1 <> _date ORDER BY GRANDPARENT1 . `col_int` LIMIT digit | SELECT GRANDPARENT1 . `col_int_key` AS G1 FROM D AS GRANDPARENT1 LEFT JOIN DD AS GRANDPARENT2 USING ( `col_char_1024_key` ) WHERE GRANDPARENT1 . `col_bigint` IN ( SELECT DISTINCT PARENT1 . `col_bigint_key` AS P1 FROM AA AS PARENT1 LEFT JOIN BB AS PARENT2 USING ( `col_int_not_null` ) WHERE GRANDPARENT1 . `col_int_not_null` IN ( SELECT DISTINCT CHILD1 . `col_int_key` AS C1 FROM CC AS CHILD1 LEFT JOIN BB AS CHILD2 USING ( `col_char_10_key` ) WHERE ( ( CHILD1 . `col_char_10_not_null` <> _varchar(1) ) OR NOT ( ( PARENT1 . `col_char_1024_not_null_key` <> GRANDPARENT1 . `col_char_1024_not_null` ) AND ( ( PARENT1 . `col_char_1024_not_null_key` > PARENT1 . `col_char_1024_not_null` ) OR NOT ( ( PARENT1 . `pk` <= GRANDPARENT1 . `col_bigint_key` ) AND ( ( PARENT1 . `col_bigint_key` = GRANDPARENT1 . `col_int` ) OR ( ( GRANDPARENT1 . `col_int` > digit AND GRANDPARENT1 . `col_char_1024_not_null` = _varchar(1) ) OR GRANDPARENT1 . `col_char_1024_not_null` <> _varchar(1) ) ) ) ) ) ) ORDER BY CHILD1 . `col_bigint` ) AND ( GRANDPARENT1 . `col_char_10_key` >= _varchar(1) ) ORDER BY PARENT1 . `col_text_key` ) AND ( ( GRANDPARENT1 . `col_bigint_key` IS UNKNOWN OR NOT GRANDPARENT1 . `col_int_key` >= digit ) OR NOT GRANDPARENT1 . `col_char_10_key` = _varchar(1) ) | SELECT GRANDPARENT1 . `col_bigint` AS G1 FROM AA AS GRANDPARENT1 WHERE ( GRANDPARENT1 . `col_int` , GRANDPARENT1 . `col_bigint` ) IN ( SELECT PARENT1 . `col_bigint_key` AS P1 , PARENT1 . `col_int` AS P2 FROM C AS PARENT1 LEFT JOIN AA AS PARENT2 ON ( PARENT1 . `col_text_key` <= PARENT2 . `col_char_10_key` ) ) AND ( GRANDPARENT1 . `col_char_1024` IS UNKNOWN AND GRANDPARENT1 . `col_char_10` >= _varchar(1) ) GROUP BY GRANDPARENT1 . `col_text_key` HAVING G1 > _date ORDER BY GRANDPARENT1 . `col_bigint_key` | SELECT DISTINCT GRANDPARENT1 . `col_bigint_key` AS G1 FROM BB AS GRANDPARENT1 LEFT JOIN D AS GRANDPARENT2 USING ( `pk` ) WHERE GRANDPARENT1 . `col_text` IN ( SELECT DISTINCT PARENT1 . `col_char_1024_not_null_key` AS P1 FROM A AS PARENT1 LEFT JOIN BB AS PARENT2 ON ( PARENT1 . `col_text_not_null` > PARENT2 . `col_char_1024_key` ) ) AND GRANDPARENT1 . `col_bigint` = digit | SELECT GRANDPARENT1 . `col_char_1024` AS G1 FROM B AS GRANDPARENT1 WHERE ( GRANDPARENT1 . `col_char_10_not_null` , GRANDPARENT1 . `col_char_10_not_null_key` ) IN ( SELECT DISTINCT PARENT1 . `col_char_1024_not_null_key` AS P1 , PARENT1 . `col_char_1024_not_null` AS P2 FROM C AS PARENT1 LEFT JOIN BB AS PARENT2 USING ( `col_char_10_not_null` ) ORDER BY PARENT1 . `pk` ) AND GRANDPARENT1 . `col_int_not_null_key` IS NULL GROUP BY GRANDPARENT1 . `col_char_10_not_null` HAVING G1 <= NULL ORDER BY GRANDPARENT1 . `col_int` | SELECT GRANDPARENT1 . `col_text_not_null` AS G1 FROM C AS GRANDPARENT1 LEFT JOIN CC AS GRANDPARENT2 ON ( GRANDPARENT2 . `pk` <> GRANDPARENT1 . `pk` ) WHERE ( GRANDPARENT1 . `col_int_key` , GRANDPARENT1 . `col_int_not_null` ) IN ( SELECT DISTINCT PARENT1 . `col_int_key` AS P1 , PARENT1 . `col_int` AS P2 FROM A AS PARENT1 LEFT JOIN BB AS PARENT2 USING ( `col_char_10_key` ) WHERE ( PARENT1 . `col_bigint_key` = digit ) ) AND GRANDPARENT1 . `pk` IS NOT NULL GROUP BY GRANDPARENT1 . `col_int_not_null` HAVING G1 < _date ORDER BY GRANDPARENT1 . `col_bigint_key` LIMIT digit | SELECT DISTINCT GRANDPARENT1 . `pk` AS G1 FROM CC AS GRANDPARENT1 LEFT JOIN AA AS GRANDPARENT2 ON ( GRANDPARENT2 . `col_char_10_key` <> GRANDPARENT1 . `col_char_10_key` ) WHERE ( GRANDPARENT1 . `col_char_1024` , GRANDPARENT1 . `col_char_10_not_null_key` ) IN ( SELECT DISTINCT PARENT1 . `col_char_10_key` AS P1 , PARENT1 . `col_text_not_null_key` AS P2 FROM C AS PARENT1 LEFT JOIN A AS PARENT2 USING ( `col_char_1024_not_null` ) ) AND GRANDPARENT1 . `col_char_10_key` IS NOT NULL ORDER BY GRANDPARENT1 . `col_char_10_not_null` LIMIT digit | SELECT GRANDPARENT1 . `pk` AS G1 FROM D AS GRANDPARENT1 LEFT JOIN D AS GRANDPARENT2 USING ( `col_bigint` ) WHERE ( GRANDPARENT1 . `col_char_10` , GRANDPARENT1 . `col_text_not_null` ) IN ( SELECT PARENT1 . `col_text_not_null` AS P1 , PARENT1 . `col_char_1024_not_null_key` AS P2 FROM AA AS PARENT1 LEFT JOIN B AS PARENT2 ON ( PARENT1 . `col_char_10` < PARENT2 . `col_text_key` ) WHERE PARENT1 . `col_text_not_null_key` IN ( SELECT DISTINCT CHILD1 . `col_text_key` AS C1 FROM C AS CHILD1 LEFT JOIN DD AS CHILD2 ON ( CHILD1 . `col_char_1024_key` <> CHILD2 . `col_char_1024_not_null_key` ) ) AND ( PARENT1 . `pk` < digit ) ) AND ( GRANDPARENT1 . `col_text_not_null` IS UNKNOWN OR GRANDPARENT1 . `col_text_not_null` <= _varchar(1) ) HAVING G1 <> _varchar(1) ORDER BY GRANDPARENT1 . `col_int_not_null_key` | SELECT GRANDPARENT1 . `col_char_10_key` AS G1 FROM C AS GRANDPARENT1 LEFT JOIN DD AS GRANDPARENT2 ON ( GRANDPARENT2 . `col_bigint_key` < GRANDPARENT1 . `col_int` ) WHERE ( GRANDPARENT1 . `col_bigint` , GRANDPARENT1 . `col_int_key` ) IN ( SELECT DISTINCT PARENT1 . `col_int` AS P1 , PARENT1 . `col_int` AS P2 FROM C AS PARENT1 LEFT JOIN B AS PARENT2 ON ( PARENT1 . `col_char_1024_not_null` = PARENT2 . `col_char_1024_not_null_key` ) WHERE ( ( PARENT1 . `col_char_1024_not_null_key` <> PARENT1 . `col_text` ) OR ( ( ( ( GRANDPARENT1 . `col_int_key` <> digit AND GRANDPARENT1 . `col_bigint_key` IS NOT NULL ) OR GRANDPARENT1 . `col_bigint` IS UNKNOWN ) AND GRANDPARENT1 . `col_int_not_null` IS NOT NULL ) OR GRANDPARENT1 . `col_int` >= digit ) ) ) AND ( ( GRANDPARENT1 . `col_int` IS NULL AND GRANDPARENT1 . `pk` < digit ) OR GRANDPARENT1 . `pk` >= digit ) HAVING G1 > _varchar(1) | SELECT DISTINCT GRANDPARENT1 . `col_char_1024_not_null` AS G1 FROM CC AS GRANDPARENT1 WHERE GRANDPARENT1 . `col_int_key` IN ( SELECT PARENT1 . `col_int_not_null_key` AS P1 FROM BB AS PARENT1 ORDER BY PARENT1 . `col_char_10` ) AND ( ( ( GRANDPARENT1 . `col_char_1024_key` > _varchar(1) AND GRANDPARENT1 . `col_text_not_null_key` IS NOT NULL ) OR NOT GRANDPARENT1 . `col_int_key` > digit ) OR NOT GRANDPARENT1 . `col_int` <= digit ) HAVING G1 = _varchar(1) ORDER BY GRANDPARENT1 . `col_int_key` | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . `col_bigint` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } RIGHT OUTER JOIN ( ( BB AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_char_255_key` = { "table".($tables - 1) } . `col_char_255_not_null_key` ) ) ) ON ({ "table".$tables } . `col_int` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_char_10_key` < ( SELECT MAX( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_255` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null` >= { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10` ) ) OR table1 . `pk` NOT IN (_tinyint_unsigned) OR ( table1 . `col_bigint_key` >= { "table".$prng->int(1,$tables) } . `col_int` OR { "table".$prng->int(1,$tables) } . `col_text_not_null` <> _char ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } = _tinyint_unsigned | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT STRAIGHT_JOIN SUM( table1 . `col_bigint_key` ) AS { "field".++$fields } , table1 . `col_bigint_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( D AS { "table".++$tables } INNER JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM C AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } INNER JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_key` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} AND ( { "table".$prng->int(1,$tables) } . `col_text` , { "table".$prng->int(1,$tables) } . `col_char_255_not_null_key` ) NOT IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_10_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } , { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_10_key` AS { SUBQUERY.$subquery_idx."_field2" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null_key` ) ) HAVING { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int` <= _char ) ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `col_int_not_null` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( D AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT OUTER JOIN ( BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } RIGHT JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_255_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` <> 8 ) IS NOT NULL ) AND ( table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) OR table1 . `pk` > _tinyint_unsigned[invariant] AND table1 . `pk` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int` > ALL ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int` AS { "SUBQUERY".$subquery_idx."_field1" } FROM BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int` > 3 ) ORDER BY table1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 2 OFFSET 3 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } INNER JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { "table".++$tables } LEFT JOIN AA AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null` = { "table".($tables - 1) } . `col_int_key` ) ) ) ON ({ "table".$tables } . `col_char_10_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` ) ) WHERE ( { $child_subquery_idx += 1 ; $child_subquery_tables=0 ; ""} { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` <> ALL ( SELECT { "CHILD_SUBQUERY".$child_subquery_idx."_t1" ; } . `col_bigint_key` AS { "CHILD_SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "CHILD_SUBQUERY".$child_subquery_idx."_t".++$child_subquery_tables } WHERE { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_text_not_null_key` <> { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null` AND { "CHILD_SUBQUERY".$child_subquery_idx."_t".$prng->int(1,$child_subquery_tables) } . `col_text_not_null_key` > { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_char_10_not_null` ) OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` > 6 ) ) IS NOT NULL ) AND table1 . `col_int_not_null_key` IN (_tinyint_unsigned) AND ( { "table".$prng->int(1,$tables) } . `col_char_10_key` < _char AND { "table".$prng->int(1,$tables) } . `col_char_255_not_null_key` <= _char ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed ASC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 OFFSET 2 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } EXPLAIN EXTENDED SELECT SQL_SMALL_RESULT table1 . `col_text_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_text_not_null_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } LEFT JOIN ( ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT { "SUBQUERY".$subquery_idx."_t2" ; } . * FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_char_10_not_null_key` ) ) ) AS { "table".++$tables } STRAIGHT_JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_int_not_null_key` = { "table".($tables - 1) } . `col_int_not_null` ) ) ) ON ({ "table".$tables } . `col_char_255_key` = { "table".($tables - 1) } . `col_char_10_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_bigint_key` < SOME ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` != { "table".$prng->int(1,$tables) } . `pk` ) ) AND ( table1 . `pk` = _tinyint_unsigned AND table1 . `col_bigint_key` = { "table".$prng->int(1,$tables) } . `col_int_not_null_key` ) OR ( table1 . `col_int_not_null` >= { "table".$prng->int(1,$tables) } . `col_int_key` AND { "table".$prng->int(1,$tables) } . `col_char_10_not_null` <= _char ) HAVING { "field".$prng->int(1,$fields) } >= _tinyint_unsigned ORDER BY table1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SQL_SMALL_RESULT table1 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_int` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_bigint` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } STRAIGHT_JOIN ( ( CC AS { "table".++$tables } STRAIGHT_JOIN CC AS { "table".++$tables } ON ({ "table".$tables } . `col_bigint_key` = { "table".($tables - 1) } . `col_int_key` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} OR { "table".$prng->int(1,$tables) } . `col_int_not_null_key` = ( SELECT COUNT( { "SUBQUERY".$subquery_idx."_t1" ; } . `pk` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_text_not_null` ) ) ) ) ) ) ON ({ "table".$tables } . `pk` = { "table".($tables - 1) } . `pk` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( 4, 1 ) IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` AS { "SUBQUERY".$subquery_idx."_field1" } , MIN( { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null` ) AS { SUBQUERY.$subquery_idx."_field2" } FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } LEFT OUTER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_not_null` ) ) ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) ) ) AND table1 . `col_int_key` > _tinyint_unsigned[invariant] AND table1 . `col_int_key` < ( _tinyint_unsigned[invariant] + _tinyint_unsigned ) AND ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) ) AND table1 . `col_int_not_null_key` IS NULL ) | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . `col_char_10_not_null_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( BB AS { "table".++$tables } INNER JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_char_255_not_null_key` = { "table".($tables - 1) } . `col_text_not_null` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_not_null_key` NOT IN ( SELECT 8 UNION SELECT 6 ) ) OR table1 . `col_text_key` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } HAVING { "field".$prng->int(1,$fields) } = _char(2) ORDER BY table1 . _field_indexed DESC , { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 OFFSET 4 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT SUM( table1 . `col_char_255_key` ) AS { "field".++$fields } , table1 . `col_int_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( CC AS { "table".++$tables } LEFT OUTER JOIN ( ( BB AS { "table".++$tables } STRAIGHT_JOIN BB AS { "table".++$tables } ON ({ "table".$tables } . `col_char_255_not_null_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` ) ) ) ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_bigint_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( 2, 5 ) IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } , { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null_key` AS { SUBQUERY.$subquery_idx."_field2" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_int_not_null` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint_key` ) ) ) ) AND table1 . `col_char_255_key` IN (_char, _char) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed DESC, { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT { $subquery_idx += 1 ; $subquery_tables=0 ; ""} ( SELECT SUM( { "SUBQUERY".$subquery_idx."_t2" ; } . `col_char_10_not_null_key` ) AS { "SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ) AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , table2 . `col_char_255_key` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} SELECT SQL_SMALL_RESULT { "SUBQUERY".$subquery_idx."_t1" ; } . * FROM ( DD AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } STRAIGHT_JOIN BB AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_char_10_not_null_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_text_not_null_key` ) ) ) AS { "table".++$tables } INNER JOIN C AS { "table".++$tables } ON ({ "table".$tables } . `col_int_key` = { "table".($tables - 1) } . `col_int_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_int_not_null` >= ALL ( SELECT SQL_SMALL_RESULT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_bigint` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `pk` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_bigint` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` <> { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_bigint_key` GROUP BY { SUBQUERY.$subquery_idx."_field1" } HAVING ({ "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` <> _char OR { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null` >= _char) ) ) OR table1 . `col_bigint_key` <> { "table".$prng->int(1,$tables) } . `col_int` { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed , { join(', ', map { "field".$_ } (1..$fields) ) } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table1 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM ( AA AS { "table".++$tables } INNER JOIN DD AS { "table".++$tables } ON ({ "table".$tables } . `col_text_not_null_key` = { "table".($tables - 1) } . `col_char_10_not_null_key` { $subquery_idx += 1 ; $subquery_tables=0 ; ""} AND { "table".$prng->int(1,$tables) } . `col_bigint_key` >= SOME ( SELECT 5 UNION ALL SELECT 3 ) ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} { "table".$prng->int(1,$tables) } . `col_bigint_key` NOT IN ( SELECT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_int_not_null` AS { "SUBQUERY".$subquery_idx."_field1" } FROM AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` = { "table".$prng->int(1,$tables) } . `col_int_not_null_key` ) ) AND ( table1 . `col_char_255_not_null_key` < _char[invariant] OR table1 . `col_char_255_not_null_key` IN (_char, _char) ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { "field".$prng->int(1,$fields) } DESC , table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` ASC | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; $subquery_idx=0 ; $child_subquery_idx=0 ; "" } SELECT table2 . _field_indexed AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , SUM( table1 . `col_char_10_not_null_key` ) AS { "field".++$fields } , SUM( table1 . `col_char_10_not_null_key` ) AS { "field".++$fields } FROM ( AA AS { "table".++$tables } STRAIGHT_JOIN AA AS { "table".++$tables } ON ({ "table".$tables } . `col_char_255_key` = { "table".($tables - 1) } . `col_text_not_null_key` ) ) WHERE ( { $subquery_idx += 1 ; $subquery_tables=0 ; ""} EXISTS ( SELECT DISTINCT SQL_SMALL_RESULT { "SUBQUERY".$subquery_idx."_t1" ; } . `col_char_255_not_null_key` AS { "SUBQUERY".$subquery_idx."_field1" } FROM ( CC AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } INNER JOIN AA AS { "SUBQUERY".$subquery_idx."_t".++$subquery_tables } ON ({ "SUBQUERY".$subquery_idx."_t".$subquery_tables } . `col_bigint_key` = { "SUBQUERY".$subquery_idx."_t".($subquery_tables-1) } . `col_int_key` ) ) WHERE { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_text_not_null_key` >= { "table".$prng->int(1,$tables) } . `col_char_255` AND { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `pk` > { "SUBQUERY".$subquery_idx."_t".$prng->int(1,$subquery_tables) } . `col_int_not_null_key` ) ) AND table1 . `col_text` IS NULL { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY table1 . _field_indexed , { "table".$prng->int(1,$tables) } .`pk` ASC | UPDATE _table SET `col_bigint_key` = _digit WHERE `pk` != _digit ORDER BY _field_list 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_key` BETWEEN 2 AND 8 LIMIT 8 /*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*/; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_bigint` > _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `pk` BETWEEN 2 AND 6 ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) FROM _table AS X WHERE X . `col_char_10` <= 'z' LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` < 8 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text_not_null` < 'x' ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` >= 3 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = _digit WHERE `col_char_10_not_null_key` >= 'b' 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_text_not_null_key` <= 'x' 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_text_not_null_key` > 'b' ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = _tinyint_unsigned WHERE `col_int_not_null` != _digit 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_bigint` BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_text_not_null_key` < 'y' ORDER BY _field_list LIMIT 1 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_int` < 7 LIMIT 6 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` <= 5 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_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_key` >= _char 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_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` > 2 ORDER BY _field_list LIMIT 10 /*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*/; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X WHERE X . `col_text_key` >= 'c' LIMIT 6 /*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_10_not_null` >= _quid LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field_key FROM _table AS X LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; SELECT * FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_char_1024_key` >= _char 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_bigint_key` = 4 WHERE `col_int_not_null` = _digit ORDER BY _field_list LIMIT 7 /*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` = 25 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 WHERE `col_text_not_null` >= 'c' ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_1024` < 'z' ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . _field FROM _table AS X LIMIT 7 /*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*/; DELETE FROM _table WHERE `col_int_not_null_key` <= 7 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE _field_key > _tinyint_unsigned ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_1024_not_null_key` = _char 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_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` >= 'b' ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _tinyint_unsigned ) ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` < 8 ORDER BY _field_list LIMIT 3 /*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 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_bigint_key` <= 5 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_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_key` > 'a' ORDER BY _field_list LIMIT 25 /*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*/ | 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 <= _digit ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_1024_not_null_key` >= 'b' ORDER BY _field_list LIMIT 1 /*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` > 3 LIMIT 8 LOCK IN SHARE MODE /*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*/ | 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_not_null` != _quid ORDER BY _field_list LIMIT 25 /*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 WHERE X . `col_text` <= 'x' LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null` <= 'y' 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` , `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*/ ; SELECT X . _field_key FROM _table AS X WHERE X . `col_text_not_null_key` <= 'z' LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _tinyint_unsigned WHERE `col_bigint` < 8 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_char_255_not_null_key` >= _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 ) WHERE X . `col_char_10_key` > _char LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X LEFT JOIN _table AS Y USING ( _field_key ) WHERE X . `col_bigint` < 5 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` , `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` <= _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` , `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_char_10_not_null_key` >= 'b' 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*/ | 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_char_10_key` >= 'c' ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ | SAVEPOINT A /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_bigint` = _digit ORDER BY _field_list 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*/; DELETE FROM _table WHERE `col_text_key` > 'c' ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null_key` BETWEEN 4 AND 7 ORDER BY _field_list LIMIT 4 /*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_10_not_null` < 'y' LIMIT 8 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` , `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 50 /*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*/ | DELETE FROM _table WHERE `col_text_key` > 'b' ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_int_not_null_key` > 3 ORDER BY _field_list LIMIT 2 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_255` > 'b' 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*/; DELETE FROM _table WHERE `col_text_not_null_key` >= _char ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 1 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*/ ; UPDATE _table SET `col_bigint_key` = _tinyint_unsigned WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 6 /*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` >= 2 LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_text_not_null_key` < _char ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null_key` = 5 WHERE `col_int` < 5 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 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` , `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` >= 1 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = _digit WHERE `pk` BETWEEN 3 AND 7 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int` <= 6 ORDER BY _field_list LIMIT 4 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_char_10_not_null_key` > 'c' 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_bigint_key` BETWEEN 3 AND 6 LIMIT 5 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_int_not_null` >= 4 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; SELECT ( SELECT _field_key FROM _table WHERE `pk` = _digit ) FROM _table AS X WHERE X . `col_char_10_key` >= 'c' LIMIT 5 FOR UPDATE /*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*/ | 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_key` != _tinyint_unsigned ORDER BY _field_list LIMIT 50 /*Generated by THREAD_ID _thread_id*/ | /* QUERY_IS_REPLICATION_SAFE */ UPDATE _table SET _field_nokey = CONNECTION_ID() , _field_next = { $$ } , _field_next = { $$ } , _field_nokey = { $$ } WHERE _field_key = { $$ } | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) ; /* QUERY_IS_REPLICATION_SAFE */ INSERT IGNORE INTO _table ( _field_no_pk ) VALUES ( { time() } ) ; COMMIT | /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = { $$ } , _field_nokey = { time() } ORDER BY _field | /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_nokey = { $$ } WHERE _field_key IN ( REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , CONNECTION_ID() ) | /* 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() , { $$ } ) | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE _table SET _field_nokey = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_nokey = { $$ } WHERE `pk` = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ORDER BY _field_list ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = { $$ } , _field_nokey = CONNECTION_ID() WHERE _field_key = _varchar(64) ORDER BY _field_list ; ROLLBACK | /* QUERY_IS_REPLICATION_SAFE */ UPDATE _table SET _field_nokey = CONNECTION_ID() , _field_next = CONNECTION_ID() , _field_next = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) WHERE _field_key = CONNECTION_ID() | /* QUERY_IS_REPLICATION_SAFE */ UPDATE IGNORE _table SET _field_nokey = REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) , _field_nokey = CONNECTION_ID() WHERE `pk` = { $$ } | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ UPDATE _table SET _field_nokey = _varchar(64) , _field_nokey = _tinyint_unsigned WHERE _field_key IN ( CONNECTION_ID() , _digit , { time() } ) ; /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE `pk` = { time() } ; COMMIT | SET AUTOCOMMIT=OFF ; START TRANSACTION ; /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE _field_key IN ( { $$ } , REPEAT(LPAD(CONNECTION_ID(), 2, ' '), _digit ) ) ORDER BY _field_list ; /* QUERY_IS_REPLICATION_SAFE */ DELETE FROM _table WHERE `pk` = CONNECTION_ID() ORDER BY _field ; COMMIT | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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 { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' AND { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' OR { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' ORDER BY { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field 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] } . `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 { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$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 ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 10 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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(); 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } < _digit ORDER BY { "field".$prng->int(1,$fields) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field 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")); } 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 } 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IN (_digit) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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")); } 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 } 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 { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit + 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 HASH (`col_varchar_10_utf8`( 10 ) , `col_varchar_1024_utf8`( 50 ) {@idx_fields = ("`col_varchar_10_utf8`", "`col_varchar_1024_utf8`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } < 'z' AND { $char_idx_field } >= _char AND { $char_idx_field } <= 'zzzz' ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' AND { $char_idx_field } IN (_char, _char, _char, _char) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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] } . `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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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] } . `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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT LIKE ( CONCAT( _char, '%') ) AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' OR { $char_idx_field } IS NOT NULL AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char, _char, _char) AND { $char_idx_field } LIKE ( _quid ) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _english AND { $char_idx_field } < 'zzzz' OR { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _english AND { $char_idx_field } <= 'zzzz' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _english AND { $char_idx_field } <= 'zzzz' OR { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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` { 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IS NULL AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IN (_char, _char) OR { $char_idx_field } >= _char AND { $char_idx_field } < 'z' OR { $char_idx_field } >= _char AND { $char_idx_field } < 'z' OR { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' AND { $char_idx_field } LIKE ( 'a%' ) OR { $char_idx_field } >= _char AND { $char_idx_field } < 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; DROP INDEX `test_idx` ON { $idx_table } | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field 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` { 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } >= _english AND { $char_idx_field } < _char ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $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")); } 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 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_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] } . `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")); } 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_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 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_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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IN (_char, _char) AND { $char_idx_field } IN (_char) AND { $char_idx_field } IN (_char, _char, _char, _char, _char, _char, _char) OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IN (_digit, _digit, _digit) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'zzzz' OR { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit + 2 ) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IN (_char) AND { $char_idx_field } >= _char AND { $char_idx_field } <= _char ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field 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(); 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 { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 6 ) OR { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= 'z' OR { $char_idx_field } NOT IN (_char) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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_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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IS NULL OR { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' ORDER BY { "field".$prng->int(1,$fields) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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_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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } LIKE ( '_' ) AND { $char_idx_field } > _char AND { $char_idx_field } < 'z' ORDER BY { join(', ', map { "field".$_ } (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 BTREE (`pk`, `col_int_key` { @idx_fields =("`pk`", "`col_int_key`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 30 ) OR { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) AND { $int_idx_field } != _digit OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@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] + 2 ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } = 25 OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) AND { $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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + _digit ) AND { $int_idx_field } IS NOT NULL OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { $int_idx_field } IS NULL OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + 75 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } < _digit AND { $int_idx_field } IN (digit, _digit, _digit) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { "table".$prng->int(1,$tables) } . `col_varchar_1024_utf8` > _char ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS table".++$tables; my @s=($x); $stack->pop(\@s); $x } { $stack->set("left",$stack->get("result")); } RIGHT 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")); } 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 } 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 } WHERE { $int_idx_field = ("table".$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 table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (_digit) AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 10 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL ORDER BY { "field".$prng->int(1,$fields) } DESC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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` { 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 6 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 ; DROP INDEX `test_idx` ON { $idx_table } | { $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 (`col_int_key` , `pk` , `col_int` { @idx_fields =("`col_int_key`", "`pk`", "`col_int`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != _digit OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) OR { $int_idx_field } IS NULL OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit + 10 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (_tinyint_unsigned, _digit, _digit) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) AND { "table".$prng->int(1,$tables) } . `col_int` <> { "table".$prng->int(1,$tables) } . `pk` ORDER BY { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 = ("table".$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) ) } DESC ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS table".++$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 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_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] } . `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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit AND { $int_idx_field = ("table".$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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } = _digit OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _tinyint_unsigned ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) OR { $int_idx_field } NOT IN (20) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." AS table".++$tables; my @s=($x); $stack->pop(\@s); $x } { $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")); } 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 } 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <= _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT IN (_digit) OR { $int_idx_field } IS NULL OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 10 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != 100 OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char, _char, _char, _char, _char, _char, _char) OR { $char_idx_field } NOT IN (_char) AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } BETWEEN _char AND 'z' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'zzzz' AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IS NULL AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } NOT IN (_char, _char, _char, _char, _char) AND { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } < 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 ; DROP INDEX `test_idx` ON { $idx_table } | { $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 table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) ORDER BY { "field".$prng->int(1,$fields) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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` { 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != 50 ORDER BY { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit + digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) AND { $int_idx_field } != digit AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <> _digit OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != _digit OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } != digit OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 10 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + 20 ) AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 6 ) AND { $int_idx_field } NOT IN (_digit, 75) OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + 25 ) AND { $int_idx_field } >= digit AND { $int_idx_field = ("table".$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) ) } LIMIT 2 ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } ASC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $char_idx_field } IS NULL OR { $char_idx_field } >= _english AND { $char_idx_field } < _char ; DROP INDEX `test_idx` ON { $idx_table } | { $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` , `pk` , `col_int` { @idx_fields =("`col_int_key`", "`pk`", "`col_int`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 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_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 } 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit[invariant] + digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (75) AND { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + 20 ) OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } IS NULL AND { $int_idx_field } = 50 AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) AND { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + 30 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 1 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 10 ) ORDER BY { "field".$prng->int(1,$fields) } , { "field".$prng->int(1,$fields) } DESC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 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_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 } 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 10 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } DESC LIMIT 100 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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] } . `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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + _digit ) ORDER BY { "field".$prng->int(1,$fields) } ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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] } . `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 = ("table".$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[invariant] + 65 ) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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")); } LEFT OUTER JOIN { $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 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(); 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 } 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_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 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 } 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 JOIN { $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] } . `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(); 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_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` = { 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] } . `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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) OR { $int_idx_field } IN (digit, _digit) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field } IS NOT NULL ; DROP INDEX `test_idx` ON { $idx_table } | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $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_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 } { $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_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 } { $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_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] } . `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 } { $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_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_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_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 { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } <> _digit OR { $int_idx_field } NOT IN (_digit, _digit) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IS NULL ORDER BY { "field".$prng->int(1,$fields) } ASC , { "field".$prng->int(1,$fields) } DESC ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field 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")); } 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_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 } 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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } >= _english AND { $char_idx_field } < 'zzzz' AND { "table".$prng->int(1,$tables) } . `col_int` >= digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field 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] } . `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 @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } > _digit AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 10 ) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IS NULL AND { $char_idx_field } IN (_char, _char, _char, _char) OR { "table".$prng->int(1,$tables) } . _field IS NULL ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field 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_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 @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } NOT BETWEEN _char AND 'z' ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 1000 OFFSET 50 ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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] } . `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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } IN (_char, _char) AND { $char_idx_field } LIKE ( _char ) | { $idx_table = '' ; @idx_fields = () ; "" } { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field 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() } { $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_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 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_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] } . `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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 1 ) AND { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } < ( _digit + _digit ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IS NOT NULL OR { $int_idx_field } IS NULL AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) OR { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { $int_idx_field } NOT IN (_digit) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _char AND { $char_idx_field } <= _english AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } NOT LIKE ( CONCAT( _char, '%') ) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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")); } 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 } 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_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_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } > _english AND { $char_idx_field } < 'zzzz' ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $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")); } 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` { 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_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` { 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_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 = ("table".$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 100 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field 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] } . `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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field } BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) AND { my @char_idx_fields = ("`col_varchar_10_utf8_key`", "`col_varchar_1024_utf8_key`") ; $char_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@char_idx_fields) ; "" } { $char_idx_field } >= _char AND { $char_idx_field } <= 'z' AND ( ( { "table".$prng->int(1,$tables) } . `col_varchar_10_utf8` < _char AND { "table".$prng->int(1,$tables) } . `col_varchar_1024_utf8` != { "table".$prng->int(1,$tables) } . `col_varchar_10_utf8_key` ) AND { "table".$prng->int(1,$tables) } . _field IS NULL ) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } IN (_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 HASH (`col_int_key` , `pk` { @idx_fields =("`col_int_key`", "`pk`") ; "" }) ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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` { 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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + _digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (_digit) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 2 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 6 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } <= 100 AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) OR { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit + 5 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 1 ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL ORDER BY { "field".$prng->int(1,$fields) } DESC ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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_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 = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } < ( _digit + 5 ) AND { "table".$prng->int(1,$tables) } . `pk` IS NULL ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NOT NULL AND { $int_idx_field } <= digit OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field } > _digit AND { $int_idx_field } < ( _digit[invariant] + 25 ) OR { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit + _digit ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } = _digit OR { $int_idx_field } NOT BETWEEN _digit[invariant] AND (_digit[invariant] + 30 ) OR { $int_idx_field } <> _digit ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IN (digit) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 2 ) AND { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 6 ) OR { $int_idx_field } NOT IN (_digit, _digit) ; { $tables=0 ; $fields = 0 ; "" } SELECT table1 . _field AS { my $f = "field".++$fields ; $f } , table1 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } < _digit AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } <= ( _digit[invariant] + 5 ) OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit AND { $int_idx_field } <= ( _digit + 1 ) AND { my @int_idx_fields = ("`pk`" , "`col_int_key`") ; $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@int_idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 2 ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1 OFFSET _digit ; { $tables=0 ; $fields = 0 ; "" } SELECT table2 . _field AS { my $f = "field".++$fields ; $f } , table2 . _field AS { my $f = "field".++$fields ; $f } FROM { $stack->push() } { $stack->push() ; my $x = $idx_table." 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 { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } >= _digit AND { $int_idx_field } <= ( _digit[invariant] + _digit ) AND { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } IS NULL OR { $int_idx_field = ("table".$prng->int(1,$tables))." . ".$prng->arrayElement(\@idx_fields) ; "" } { $int_idx_field } > _digit[invariant] AND { $int_idx_field } < ( _digit[invariant] + 5 ) ; DROP INDEX `test_idx` ON { $idx_table } | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT DISTINCT { $mlens_movie_alias } . `alternate_title` 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 } . `alternate_title` IS NULL AND { $mlens_movie_alias } . `year` <= 1960 OR { $mlens_movie_alias } . `alternate_title` IS NOT NULL ) AND ( { $mlens_tag_alias } . `tag` IS NULL ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } 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 { $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 } . `year` != 1960 ) AND ( { $mlens_tag_alias } . `tag` IS NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 100 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mmg_t1'; $mlens_genre_alias='mmg_t2'; $mlens_rating_alias='mmg_t3'; "" } SELECT SQL_SMALL_RESULT { $mlens_movie_alias } . `year` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , COUNT( `genre` ) FROM mlens_movie AS mmg_t1 LEFT JOIN mlens_genre AS mmg_t2 ON { $mlens_movie_alias } . `id` = { $mlens_genre_alias} . `mlens_movie_id` WHERE { $mlens_genre_alias } . `genre` IN ( 'Animation' ) AND ( { $mlens_movie_alias } . `title` > _english AND { $mlens_movie_alias } . `alternate_title` != _quid ) AND ( { $mlens_genre_alias } . `genre` < _english AND { $mlens_genre_alias } . `genre` BETWEEN _quid AND _char ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10000 | { @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 RIGHT 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 ) AND ( { $mlens_tag_alias } . `timestamp` > _timestamp OR { $mlens_tag_alias } . `tag` IS NOT NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 500 | { @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 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 ) AND ( { $mlens_tag_alias } . `timestamp` > _timestamp ) { scalar(@nonaggregates) > 0 ? " GROUP BY ".join (', ' , @nonaggregates ) : "" } ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT DISTINCT { $mlens_movie_alias } . `title` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $mlens_tag_alias } . `user_id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, { $mlens_tag_alias } . `user_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` IS NULL ) AND ( { $mlens_tag_alias } . `user_id` >= _smallint_unsigned AND { $mlens_tag_alias } . `tag` <= _english ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 10 | { @nonaggregates = () ; $tables = 0 ; $fields = 0 ; ""} { $mlens_movie_alias='mwt_t1'; $mlens_tag_alias='mwt_t2'; "" } SELECT DISTINCT { $mlens_movie_alias } . `title` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, { $mlens_movie_alias } . `year` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, { $mlens_movie_alias } . `id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f }, { $mlens_movie_alias } . `id` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } , { $mlens_tag_alias } . `user_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 } . `year` >= 1910 ) AND ( LENGTH( { $mlens_tag_alias } . `tag` ) != ( SELECT MIN( LENGTH( `tag` ) ) FROM mlens_tag ) AND { $mlens_tag_alias } . `tag` != _quid OR { $mlens_tag_alias } . `tag` IS NOT NULL ) 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 } . `alternate_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 } . `title` >= _english OR { $mlens_movie_alias } . `alternate_title` IS NULL ) AND ( { $mlens_tag_alias } . `user_id` != _smallint_unsigned ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | { @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 } , { $mlens_tag_alias } . `tag` AS { my $f = "field".++$fields ; push @nonaggregates , $f ; $f } FROM mlens_movie AS mwt_t1 LEFT 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` LIKE 'D%' AND { $mlens_movie_alias } . `year` <= _year ) AND ( { $mlens_tag_alias } . `tag` <= _english OR { $mlens_tag_alias } . `user_id` != _smallint_unsigned OR { $mlens_tag_alias } . `timestamp` >= _timestamp OR { $mlens_tag_alias } . `tag` IS NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } ASC LIMIT 1000 | { @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 } , { $mlens_tag_alias } . `mlens_movie_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 } . `alternate_title` IS NULL ) AND ( { $mlens_tag_alias } . `tag` IS NULL ) ORDER BY { join(', ', map { "field".$_ } (1..$fields) ) } LIMIT 1000 | UPDATE _table SET `col_int` = _digit WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list 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*/ ; UPDATE _table SET `col_int_key` = 2 WHERE `col_char_10_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_char_10_not_null_key` <= _char ORDER BY _field_list LIMIT 10 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _digit WHERE int_field BETWEEN 4 AND 6 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 int_field BETWEEN 3 AND 6 ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_bigint_key` = 10 WHERE int_field BETWEEN _tinyint_unsigned AND _int_unsigned ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table 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*/ | UPDATE _table SET `col_int_key` = _digit WHERE `pk` IN (4) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | DELETE FROM _table WHERE `col_char_255_not_null` IN (_char) 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_key` IN (_quid, _quid) ORDER BY _field_list LIMIT 25 /*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 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_char_255_not_null_key` IN (_char) ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _digit WHERE `col_int_key` BETWEEN 1 AND _digit 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 `pk` BETWEEN _digit AND 4 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 _field_key != _int_unsigned ORDER BY _field_list LIMIT 25 /*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*/ ; 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 _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _int_unsigned ) 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_char_255_key` = _char ORDER BY _field_list LIMIT 25 /*Generated by THREAD_ID _thread_id*/ ; SELECT X . `pk` FROM _table AS X WHERE X . _field_key < _int_unsigned LIMIT 7 FOR UPDATE /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE `col_bigint` = 5 ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_key` = 1 ORDER BY _field_list LIMIT 5 /*Generated by THREAD_ID _thread_id*/ ; SELECT * 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*/ ; DELETE FROM _table WHERE `col_char_255` IN (_char) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; DELETE FROM _table WHERE _field_key = ( SELECT _field_key FROM _table WHERE `pk` = _digit ) ORDER BY _field_list LIMIT 3 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int` = _tinyint_unsigned ORDER BY _field_list LIMIT 7 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _varchar(1) WHERE _field_key IN ( SELECT _field_key FROM _table WHERE `pk` = _varchar(1) ) ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ ; UPDATE _table SET `col_int_not_null` = _tinyint_unsigned WHERE `col_char_255_not_null` >= _char 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_int` <= _digit 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*/ | UPDATE _table SET `col_bigint_key` = 10 ORDER BY _field_list LIMIT 6 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET `col_int` = _digit WHERE `col_int_not_null` BETWEEN 3 AND 8 ORDER BY _field_list LIMIT 8 /*Generated by THREAD_ID _thread_id*/ | UPDATE _table SET _field = digit 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 | 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 | UPDATE _table SET _field = digit WHERE _field < digit LIMIT _digit | UPDATE _table SET _field = digit WHERE _field = _digit LIMIT _digit | SELECT OUTR . `col_char_1024_not_null` AS X FROM A AS OUTR WHERE OUTR . `col_int` IN ( SELECT INNR . `col_int_key` AS Y FROM C AS INNR2 LEFT JOIN CC AS INNR ON ( INNR2 . `col_char_1024_not_null` > INNR . `col_text_key` ) WHERE OUTR . `col_char_1024_not_null_key` > _varchar(1) ) OR ( OUTR . `col_char_1024_key` IS NOT NULL OR NOT OUTR . `pk` > digit ) HAVING X > _date ORDER BY OUTR . `col_bigint` , OUTR . `pk` | SELECT VAR_SAMP( OUTR . `col_bigint` ) AS X FROM D AS OUTR WHERE OUTR . `col_char_10_key` IN ( SELECT DISTINCT INNR . `col_char_1024` AS Y FROM CC AS INNR WHERE INNR . `col_bigint` <> INNR . `col_int_key` OR NOT OUTR . `col_text_not_null` <= _varchar(1) ORDER BY INNR . `col_int_key` ) AND OUTR . `col_text_not_null_key` <= _varchar(1) XOR OUTR . `col_char_10_not_null` >= _varchar(1) ORDER BY OUTR . `col_text` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_bigint_key` AS X FROM C AS OUTR WHERE OUTR . `col_int_not_null_key` IN ( SELECT DISTINCT INNR . `col_bigint_key` AS Y FROM CC AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char_1024` = INNR . `col_char_10_key` ) WHERE OUTR . `col_char_10_key` IS NOT NULL ) OR OUTR . `pk` > digit AND OUTR . `col_text_key` <> _varchar(1) ORDER BY OUTR . `col_char_1024` , OUTR . `pk` | SELECT OUTR . `col_bigint` AS X FROM C AS OUTR WHERE OUTR . `col_bigint` IN ( SELECT INNR . `col_bigint` AS Y FROM BB AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_int` <= INNR . `col_int_key` ) WHERE INNR . `col_int` >= INNR . `pk` AND OUTR . `col_int_not_null` >= digit ORDER BY INNR . `col_int_not_null_key` ) XOR OUTR . `col_int` IS NULL ORDER BY OUTR . `col_char_1024` , OUTR . `pk` | SELECT OUTR . `col_text` AS X FROM BB AS OUTR WHERE OUTR . `col_char_1024` IN ( SELECT DISTINCT INNR . `col_text_key` AS Y FROM BB AS INNR WHERE OUTR . `col_char_10_not_null` <> _varchar(1) ) AND ( OUTR . `col_text` > _varchar(1) AND NOT OUTR . `col_char_1024_not_null` < _varchar(1) ) HAVING X <> _datetime ORDER BY OUTR . `col_char_10_not_null_key` , OUTR . `pk` | SELECT OUTR . `col_int_not_null` AS X FROM AA AS OUTR WHERE ( OUTR . `col_text_not_null` , OUTR . `col_char_1024_not_null` ) IN ( SELECT DISTINCT INNR . `col_char_1024_not_null` AS X , INNR . `col_text` AS Y FROM DD AS INNR WHERE INNR . `col_char_1024` <= INNR . `col_char_10_key` XOR INNR . `col_int` < INNR . `pk` ) XOR OUTR . `col_char_10_key` = _varchar(1) XOR OUTR . `col_bigint` IS NULL HAVING X < _date ORDER BY OUTR . `col_char_10_not_null` , OUTR . `pk` | SELECT OUTR . `col_text_not_null_key` AS X FROM BB AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_char_1024_key` >= OUTR . `col_char_1024_not_null` ) WHERE ( OUTR . `col_bigint_key` , OUTR . `col_int` ) IN ( SELECT DISTINCT INNR . `pk` AS X , INNR . `col_int_not_null` AS Y FROM C AS INNR2 LEFT JOIN C AS INNR ON ( INNR2 . `col_text` = INNR . `col_char_1024_not_null` ) WHERE OUTR . `col_int_not_null` <> digit ORDER BY INNR . `col_text_key` ) XOR OUTR . `col_bigint_key` IS NOT NULL HAVING X = _datetime ORDER BY OUTR . `col_char_10` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_text` AS X FROM C AS OUTR2 LEFT JOIN BB AS OUTR ON ( OUTR2 . `col_char_10_not_null` >= OUTR . `col_char_1024_not_null` ) WHERE ( OUTR . `col_char_10_not_null_key` , OUTR . `col_text_not_null` ) IN ( SELECT INNR . `col_text_not_null` AS X , INNR . `col_char_1024_not_null_key` AS Y FROM DD AS INNR2 LEFT JOIN CC AS INNR ON ( INNR2 . `pk` < INNR . `col_int_not_null` ) WHERE INNR . `col_text_not_null` <> _varchar(1) AND INNR . `col_char_1024` < INNR . `col_char_1024_key` ) XOR OUTR . `col_int_key` <> digit XOR OUTR . `col_char_1024` IS NULL ORDER BY OUTR . `col_text_not_null_key` , OUTR . `pk` | SELECT OUTR . `col_int_key` AS X FROM DD AS OUTR WHERE OUTR . `col_char_10_key` IN ( SELECT INNR . `col_char_10` AS Y FROM D AS INNR WHERE INNR . `col_int_not_null_key` IS NULL XOR INNR . `col_text_key` = _varchar(1) ) OR OUTR . `col_char_1024_not_null` < _varchar(1) AND OUTR . `col_char_10_not_null` <> _varchar(1) ORDER BY OUTR . `col_bigint` , OUTR . `pk` | SELECT DISTINCT OUTR . `col_char_10_not_null` AS X FROM BB AS OUTR WHERE OUTR . `col_char_1024_not_null` IN ( SELECT INNR . `col_char_10` AS Y FROM DD AS INNR2 LEFT JOIN DD AS INNR ON ( INNR2 . `col_int_key` <= INNR . `col_bigint` ) WHERE INNR . `col_char_10` IS NOT NULL ORDER BY INNR . `col_bigint_key` ) AND OUTR . `col_text_not_null` IS NOT NULL HAVING X = _time 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 } 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_char_128_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; 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`. 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 ; 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_bigint` ; 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`. BB AS t1 , `test`. BB 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 ; 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` . D LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_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`. BB 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) } ; 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` . CC LIMIT 1 ; 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_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_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 } 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` . CC 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_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; 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` . 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` . CC 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 ; 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_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; 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 ; 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 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128` ; 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` . AA 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 ; 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 ; 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` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; 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_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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`. CC AS t1 , `test`. AA AS t2 ; 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_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; 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`. 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) } ; 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 } ( `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`. CC AS t2 ; 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` . 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 ; 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` . CC 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 ; 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` . 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` . DD LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_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) } ; 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_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_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`. CC 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`. C AS t1 , `test`. B AS t2 ; 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` . AA LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; 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_bigint_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`. AA AS t1 , `test`. C 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`. B 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) } ; 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_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_enum_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` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_key` ; 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_text` ; CREATE TABLE { "dump_table".++$tables } LIKE `test` . B ; 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 ; 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_char_10_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_key` ; 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 ; 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_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_key` ; 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` . CC 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 ; 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_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_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`. AA 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) } ; 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` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_text` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_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_text_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_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`. CC AS t1 , `test`. AA AS t2 ; 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) } ; 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` . 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 ; 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 ; 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_enum_not_null` ; 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_bigint` ; 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`. BB 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` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_not_null_key` ; 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` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_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`. C AS t1 , `test`. C 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` . CC LIMIT 1 ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_text_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_int_not_null_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint_not_null` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_10_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`. CC AS t2 ; 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` . 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_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_bigint` ; ALTER TABLE { "dump_table".$tables } DROP `col_enum_key` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_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`. AA 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) } ; SELECT 1 | { $tables = 0 ; "" } DROP DATABASE IF EXISTS drizzledump_db ; CREATE DATABASE drizzledump_db ; USE drizzledump_db ; 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 ; 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` ; ALTER TABLE { "dump_table".$tables } DROP `col_char_128_key` ; 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`. 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) } ; 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`. AA AS t1 , `test`. BB AS t2 ; ALTER TABLE { "dump_table".$tables } DROP { "field".$prng->int(0,47) } ; SELECT 1 | SELECT n_nationkey , c_custkey , s_nationkey , n_nationkey FROM region LEFT JOIN nation ON ( r_regionkey = n_regionkey ) RIGHT JOIN supplier ON ( s_nationkey = n_nationkey ) JOIN partsupp ON ( s_suppkey = ps_suppkey ) JOIN lineitem ON ( ps_partkey = l_partkey AND ps_suppkey = l_suppkey ) LEFT JOIN orders ON ( l_orderkey = o_orderkey ) JOIN customer ON ( o_custkey = c_custkey ) WHERE c_comment IS NOT NULL AND s_acctbal BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _tinyint_unsigned AND r_comment IS NOT NULL | SELECT ps_partkey, ps_supplycost AS currency1 , SUM( c_acctbal ) AS currency2 FROM part JOIN partsupp ON ( p_partkey = ps_partkey ) LEFT JOIN supplier ON (s_suppkey = ps_suppkey) RIGHT JOIN lineitem ON ( ps_partkey = l_partkey ) JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) WHERE c_custkey IN ( { $prng->uint16(1,150) } , { $prng->uint16(1,150) } , { $prng->uint16(1,150) } , _tinyint_unsigned ) OR ps_partkey BETWEEN _tinyint_unsigned AND _tinyint_unsigned + _digit AND l_receiptDATE < { sprintf("'%04d-%02d-%02d'", $prng->uint16(1992,1998), $prng->uint16(1,12), $prng->uint16(1,28)) } AND o_orderkey IN ( { $prng->uint16(1,1500) } , { $prng->uint16(1,1500) } , _tinyint_unsigned , { $prng->uint16(1,1500) } ) OR s_comment NOT LIKE CONCAT( _varchar(1) , '%' ) GROUP BY 1 , 2 HAVING currency2 < _digit OR currency1 BETWEEN _mediumint_unsigned AND _tinyint_unsigned + _tinyint_unsigned ORDER BY 1 | SELECT c_custkey , ps_partkey 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 ) JOIN customer ON ( o_custkey = c_custkey ) JOIN nation ON ( c_nationkey = n_nationkey ) RIGHT JOIN supplier ON ( s_nationkey = n_nationkey ) JOIN region ON ( n_regionkey = r_regionkey ) WHERE l_suppkey IN ( 10 , 10 , 10 ) AND r_comment <> _varchar(1) AND n_nationkey IN ( _digit , _digit , { $prng->uint16(0,24) } ) AND o_orderkey IN ( _tinyint_unsigned , { $prng->uint16(1,1500) } ) ORDER BY 1 | SELECT MAX( n_nationkey ) FROM part JOIN partsupp ON ( p_partkey = ps_partkey ) RIGHT JOIN supplier ON ( ps_suppkey = s_suppkey ) LEFT JOIN nation ON ( s_nationkey = n_nationkey ) JOIN region ON ( n_regionkey = r_regionkey ) WHERE n_comment NOT LIKE CONCAT( _varchar(1) , '%' ) OR p_comment IS NOT NULL AND s_suppkey BETWEEN _digit AND 10 + _digit AND n_comment < _varchar(1) AND p_partkey IN ( _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) AND s_acctbal <> _tinyint_unsigned AND ps_supplycost < _mediumint_unsigned AND p_partkey >= _tinyint_unsigned AND ps_suppkey >= _digit | SELECT n_nationkey , l_suppkey , MIN( o_orderkey ) FROM region LEFT JOIN nation ON ( r_regionkey = n_regionkey ) JOIN supplier ON ( s_nationkey = n_nationkey ) RIGHT JOIN partsupp ON ( s_suppkey = ps_suppkey ) JOIN lineitem ON ( ps_partkey = l_partkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) WHERE r_regionkey NOT IN ( 1 , 4 , 2 , 1 ) AND o_custkey IN ( { $prng->uint16(1,150) } , { $prng->uint16(1,150) } ) AND r_comment IS NOT NULL GROUP BY 1 , 2 ORDER BY 2 | SELECT r_regionkey , l_orderkey , SUM( DISTINCT c_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 ) JOIN lineitem ON ( ps_partkey = l_partkey AND ps_suppkey = l_suppkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) JOIN customer ON ( o_custkey = c_custkey ) WHERE o_comment BETWEEN _varchar(1) AND _varchar(1) AND ps_supplycost = l_extendedprice OR c_custkey IN ( { $prng->uint16(1,150) } , _tinyint_unsigned , _tinyint_unsigned ) OR n_nationkey <> _digit GROUP BY 1 ASC , 2 | SELECT l_suppkey , l_linenumber , MIN( o_custkey ) FROM region JOIN nation ON ( r_regionkey = n_regionkey ) JOIN supplier ON ( s_nationkey = n_nationkey ) RIGHT JOIN partsupp ON ( s_suppkey = ps_suppkey ) JOIN lineitem ON ( ps_partkey = l_partkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) LEFT JOIN customer ON ( o_custkey = c_custkey ) WHERE c_nationkey = s_nationkey AND ps_availqty = l_quantity OR n_nationkey BETWEEN _digit AND { $prng->uint16(0,24) } + _tinyint_unsigned GROUP BY 1 , 2 ORDER BY 1 | SELECT l_shipDATE , o_orderkey , SUM( ps_suppkey ) 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 ) 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 n_comment NOT LIKE CONCAT( _varchar(1) , '%' ) AND c_nationkey = s_nationkey AND r_comment = _varchar(1) AND c_comment IS NOT NULL AND l_shipDATE > o_orderdate OR s_acctbal != _tinyint_unsigned AND 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 n_comment NOT LIKE CONCAT( _varchar(1) , '%' ) AND r_comment BETWEEN _varchar(1) AND _varchar(1) AND l_commitDATE = o_orderdate OR l_comment IS NOT NULL GROUP BY 1 , 2 | SELECT o_custkey , o_custkey , r_regionkey FROM part JOIN partsupp ON ( p_partkey = ps_partkey ) JOIN lineitem ON ( ps_partkey = l_partkey AND ps_suppkey = l_suppkey ) JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) LEFT JOIN nation ON ( c_nationkey = n_nationkey ) JOIN supplier ON ( s_nationkey = n_nationkey ) RIGHT JOIN region ON ( n_regionkey = r_regionkey ) WHERE n_comment NOT LIKE CONCAT( _varchar(1) , '%' ) AND l_partkey IN ( _tinyint_unsigned , _tinyint_unsigned ) AND p_comment <> _varchar(1) AND r_comment = _varchar(1) AND n_nationkey IN ( { $prng->uint16(0,24) } , _digit ) | SELECT c_acctbal AS currency1 , l_extendedprice AS currency2 FROM part RIGHT JOIN partsupp ON ( p_partkey = ps_partkey ) JOIN supplier ON (s_suppkey = ps_suppkey) RIGHT JOIN lineitem ON ( ps_partkey = l_partkey ) RIGHT JOIN orders ON ( l_orderkey = o_orderkey ) RIGHT JOIN customer ON ( o_custkey = c_custkey ) WHERE o_custkey BETWEEN { $prng->uint16(1,150) } AND { $prng->uint16(1,150) } + _digit AND l_suppkey IN ( 10 , _digit , _digit , _digit , 10 , 10 ) AND p_partkey < _tinyint_unsigned AND o_custkey IN ( _tinyint_unsigned , _tinyint_unsigned , _tinyint_unsigned ) AND ps_comment IS NOT NULL HAVING currency2 = _tinyint_unsigned AND currency2 = _mediumint_unsigned | EXPLAIN /*!50100 PARTITIONS */ SELECT `col_int_nokey` FROM t | 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 } ) | /*!50400 ALTER TABLE p ORDER BY `col_int_nokey` */ | 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 } ) | DELETE FROM { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } s 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 6 | UPDATE { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } l 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 } d 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 } 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 } ) 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 } 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 } ) | INSERT INTO { our $nb_parts_var= $prng->int($nb_parts-9,$nb_parts); return undef } m 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 } m 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 2 | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | UPDATE _table SET _field = _char(2) WHERE _field >= _digit | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | { @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 } WHERE ( { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field LIKE '%mysys%' 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 >= _char(2) IS NULL LIMIT _tinyint_unsigned | TRUNCATE TABLE performance_schema . events_waits_history | { @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 ) : "" } ORDER BY { my $i = $prng->int(1,$tables) ; $last_database = $database_names[$i]; $last_table = $table_names[$i] ; "table".$i } . _field LIMIT _tinyint_unsigned | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | SHOW ENGINE PERFORMANCE_SCHEMA STATUS | UPDATE performance_schema . setup_consumers SET enabled = 'YES' WHERE name LIKE 'events%' | UPDATE performance_schema . setup_consumers SET enabled = 'YES' WHERE name IN ( 'events_waits_current' , 'events_waits_summary_by_instance' , 'events_waits_summary_by_instance' , 'file_summary_by_instance' ) | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _english , NULL , _datetime ) | DROP FUNCTION IF EXISTS _letter[invariant] ; CREATE FUNCTION _letter[invariant] ( _letter TIMESTAMP ) RETURNS TIMESTAMP DETERMINISTIC READS SQL DATA BEGIN DECLARE out1 DATE ; SELECT _table._field INTO out1 FROM _table ; RETURN out1 | REPLACE INTO _table ( _field_no_pk ) VALUES ( _english ) | REPLACE INTO _table ( _field_no_pk ) VALUES ( _varchar(8) ) | INSERT IGNORE INTO _table ( _field , _field , _field ) VALUES ( _char(64) , _digit , _datetime ) | INSERT DELAYED INTO _table ( _field_no_pk , _field_no_pk , _field_no_pk ) VALUES ( _mediumint , -1 , _mediumint ) | UPDATE _table t1, _table t2 SET t1._field_no_pk = _date WHERE t1._field >= _datetime | REPLACE INTO _table ( _field_no_pk ) VALUES ( _datetime ) | INSERT DELAYED INTO _table ( _field , _field , _field ) VALUES ( NULL , _bigint , _date ) | DROP TABLE IF EXISTS _letter[invariant] ; DROP VIEW IF EXISTS _letter[invariant] ; CREATE TABLE _letter[invariant] LIKE _table[invariant] ; INSERT INTO _letter[invariant] SELECT * FROM _table[invariant] | ;