Merge lp:~stewart/drizzle/remove-ddl-implicit-commit into lp:drizzle/7.0

Proposed by Stewart Smith
Status: Superseded
Proposed branch: lp:~stewart/drizzle/remove-ddl-implicit-commit
Merge into: lp:drizzle/7.0
Diff against target: 1288 lines (+275/-70)
80 files modified
docs/transactional.rst (+8/-2)
drizzled/error.cc (+2/-0)
drizzled/error_t.h (+2/-2)
drizzled/statement/alter_schema.cc (+1/-3)
drizzled/statement/alter_table.cc (+4/-2)
drizzled/statement/create_index.cc (+2/-1)
drizzled/statement/create_schema.cc (+2/-1)
drizzled/statement/create_table.cc (+2/-3)
drizzled/statement/drop_index.cc (+2/-1)
drizzled/statement/drop_schema.cc (+4/-9)
drizzled/statement/drop_table.cc (+2/-1)
drizzled/statement/rename_table.cc (+8/-1)
drizzled/statement/truncate.cc (+3/-11)
drizzled/sys_var.cc (+15/-6)
plugin/haildb/tests/r/trx_isolation_read_uncommitted.result (+1/-0)
plugin/haildb/tests/r/trx_isolation_repeatable_read.result (+1/-0)
plugin/haildb/tests/r/trx_isolation_serializable.result (+1/-0)
plugin/haildb/tests/t/trx_isolation_read_uncommitted.test (+1/-0)
plugin/haildb/tests/t/trx_isolation_repeatable_read.test (+1/-0)
plugin/haildb/tests/t/trx_isolation_serializable.test (+1/-0)
plugin/innobase/tests/r/innodb-semi-consistent.result (+1/-0)
plugin/innobase/tests/r/innodb.result (+6/-1)
plugin/innobase/tests/r/innodb_bug51920.result (+1/-0)
plugin/innobase/tests/r/innodb_bug53674.result (+1/-0)
plugin/innobase/tests/r/innodb_mysql.result (+1/-0)
plugin/innobase/tests/r/unsafe_binlog_innodb.result (+1/-0)
plugin/innobase/tests/t/innodb-semi-consistent.test (+1/-0)
plugin/innobase/tests/t/innodb.test (+6/-1)
plugin/innobase/tests/t/innodb_bug51920.test (+1/-0)
plugin/innobase/tests/t/innodb_bug53674.test (+1/-0)
plugin/myisam/tests/r/mix2_myisam.result (+1/-0)
plugin/storage_engine_api_tester/tests/r/transaction.result (+1/-0)
plugin/storage_engine_api_tester/tests/t/transaction.test (+1/-0)
plugin/transaction_log/tests/r/auto_commit.result (+1/-0)
plugin/transaction_log/tests/r/transaction_log_transaction.result (+1/-0)
plugin/transaction_log/tests/t/auto_commit.inc (+1/-0)
plugin/transaction_log/tests/t/transaction_log_transaction.test (+1/-1)
plugin/utility_functions/tests/r/execute_wait.result (+23/-7)
plugin/utility_functions/tests/t/execute_wait.test (+10/-3)
tests/include.am (+1/-1)
tests/include/mix1.inc (+1/-0)
tests/include/mix2.inc (+1/-0)
tests/include/unsafe_binlog.inc (+1/-0)
tests/r/flush_block_commit.result (+1/-0)
tests/r/insert.result (+1/-0)
tests/r/randgen_queries.result (+1/-0)
tests/r/savepoints.result (+3/-0)
tests/r/select_in_null.result (+0/-2)
tests/r/statement_boundaries.result (+3/-1)
tests/r/transaction.result (+1/-0)
tests/r/trx_isolation_read_committed.result (+1/-0)
tests/suite/ddl_transactions/r/alter_schema.result (+6/-0)
tests/suite/ddl_transactions/r/alter_table.result (+8/-0)
tests/suite/ddl_transactions/r/create_index.result (+6/-0)
tests/suite/ddl_transactions/r/create_schema.result (+6/-0)
tests/suite/ddl_transactions/r/create_table.result (+4/-0)
tests/suite/ddl_transactions/r/drop_index.result (+6/-0)
tests/suite/ddl_transactions/r/drop_schema.result (+6/-0)
tests/suite/ddl_transactions/r/drop_table.result (+6/-0)
tests/suite/ddl_transactions/r/rename_table.result (+8/-0)
tests/suite/ddl_transactions/r/truncate_table.result (+7/-0)
tests/suite/ddl_transactions/t/alter_schema.test (+6/-0)
tests/suite/ddl_transactions/t/alter_table.test (+8/-0)
tests/suite/ddl_transactions/t/create_index.test (+6/-0)
tests/suite/ddl_transactions/t/create_schema.test (+6/-0)
tests/suite/ddl_transactions/t/create_table.test (+4/-0)
tests/suite/ddl_transactions/t/drop_index.test (+6/-0)
tests/suite/ddl_transactions/t/drop_schema.test (+6/-0)
tests/suite/ddl_transactions/t/drop_table.test (+6/-0)
tests/suite/ddl_transactions/t/rename_table.test (+6/-0)
tests/suite/ddl_transactions/t/truncate_table.test (+7/-0)
tests/t/flush_block_commit.test (+1/-1)
tests/t/insert.test (+1/-1)
tests/t/randgen_queries.test (+1/-1)
tests/t/savepoints.test (+3/-1)
tests/t/select_in_null.test (+0/-2)
tests/t/statement_boundaries.test (+4/-3)
tests/t/transaction.test (+1/-0)
tests/t/trx_isolation_read_committed.test (+1/-0)
tests/test-run.pl (+1/-1)
To merge this branch: bzr merge lp:~stewart/drizzle/remove-ddl-implicit-commit
Reviewer Review Type Date Requested Status
Brian Aker Needs Fixing
Review via email: mp+45189@code.launchpad.net

This proposal has been superseded by a proposal from 2011-01-07.

Description of the change

makes DDL operations error out if attempted to be performed within a ongoing transaction

http://hudson.drizzle.org/view/Drizzle-param/job/drizzle-param/696/

To post a comment you must log in.
Revision history for this message
Brian Aker (brianaker) wrote :

Hi!

=====
- byte.resize(sizeof("START TRANSACTION")); // +1 for the COM_QUERY, provided by null count from sizeof()
71 + byte.resize(sizeof("SET AUTOCOMMIT=0")); // +1 for the COM_QUERY, provided by null count from sizeof()
=====

You need to fix this so that the transaction works.

Cheers,
   -Brian

review: Needs Fixing
Revision history for this message
Stewart Smith (stewart) wrote :

I can only change this back so that DDL is impossible to do with EXECUTE (it will fail *SILENTLY*). Important to note when documenting EXECUTE.

1940. By Stewart Smith

merge trunk

1941. By Stewart Smith

revert patch that changed EXECUTE to use AUTOCOMMIT=0 instead of START TRANSACTION. Of course, this means that you cannot do DDL inside EXECUTE, so change the test and result for execute_wait test which did that.

1942. By Stewart Smith

add test for EXECUTE WAIT doing DDL that will actually do the DDL - run a COMMIT first.

1943. By Stewart Smith

merge trunk

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/transactional.rst'
--- docs/transactional.rst 2010-12-19 22:50:00 +0000
+++ docs/transactional.rst 2011-01-06 13:49:38 +0000
@@ -6,19 +6,25 @@
66
7 start_transaction7 start_transaction
8 commit8 commit
9 rollback 9 rollback
10 savepoints10 savepoints
1111
12The essence of a transaction is that it groups multiple steps into a single, all-or-nothing operation. Drizzle is a transactional database by default and by design, meaning that changes and queries to the database appear to be Atomic, Consistent, Isolated, and Durable (ACID). This means that Drizzle implements `serializable <http://en.wikipedia.org/wiki/Serializability>`_, ACID transactions, even if the transaction is interrupted.12The essence of a transaction is that it groups multiple steps into a single, all-or-nothing operation. Drizzle is a transactional database by default and by design, meaning that changes and queries to the database appear to be Atomic, Consistent, Isolated, and Durable (ACID). This means that Drizzle implements `serializable <http://en.wikipedia.org/wiki/Serializability>`_, ACID transactions, even if the transaction is interrupted.
1313
14NOTE: Drizzle still supports non-transactional storage engines, and if these are used then you will not get transactional behaviour with them. The default engine is transactional.
15
14It collects operations that form tasks and stores them as a single operation, or if that operation is not possible it removes all changes attempted. Transactions are controlled via START TRANSACTION, ROLLBACK, and COMMIT. Savepoints are implemented to allow for a low leverl of granulairty.16It collects operations that form tasks and stores them as a single operation, or if that operation is not possible it removes all changes attempted. Transactions are controlled via START TRANSACTION, ROLLBACK, and COMMIT. Savepoints are implemented to allow for a low leverl of granulairty.
1517
16A COMMIT statement ends a transaction within Drizzle and makes all changes visible to other users. The order of events is typically to issue a START TRANSACTION statement, execute one or more SQL statements, and then issue a COMMIT statement. Alternatively, a ROLLBACK statement can be issued, which undoes all the work performed since START TRANSACTION was issued. A COMMIT statement will also release any existing savepoints that may be in use.18A COMMIT statement ends a transaction within Drizzle and makes all changes visible to other users. The order of events is typically to issue a START TRANSACTION statement, execute one or more SQL statements, and then issue a COMMIT statement. Alternatively, a ROLLBACK statement can be issued, which undoes all the work performed since START TRANSACTION was issued. A COMMIT statement will also release any existing savepoints that may be in use.
1719
18Drizzle can operate in an autocommit mode, where each statement is committed, via: ::20Drizzle can operate in an autocommit mode, where each statement is committed at the end of statement, via: ::
1921
20 SET AUTOCOMMIT= 122 SET AUTOCOMMIT= 1
2123
24If you set AUTOCOMMIT=1 during a transaction, that transaction will be committed as part of the SET AUTOCOMMIT=1 statement.
25
26Transactional DDL is currently not supported, although it may be in the future. This means that although currently you will get a ER_TRANSACTION_DDL_NOT_SUPPORTED error message if you try and execute DDL statements within a transaction, in future versions of Drizzle they may succeed.
27
22Currently DDL operations are performed as a single transaction, this limitation will be lifted in the future.28Currently DDL operations are performed as a single transaction, this limitation will be lifted in the future.
2329
2430
2531
=== modified file 'drizzled/error.cc'
--- drizzled/error.cc 2011-01-04 23:23:25 +0000
+++ drizzled/error.cc 2011-01-06 13:49:38 +0000
@@ -529,6 +529,8 @@
529 ADD_ERROR_MESSAGE(ER_INVALID_BOOLEAN_VALUE, N_("Received an invalid BOOLEAN value '%s'."));529 ADD_ERROR_MESSAGE(ER_INVALID_BOOLEAN_VALUE, N_("Received an invalid BOOLEAN value '%s'."));
530 ADD_ERROR_MESSAGE(ER_INVALID_CAST_TO_BOOLEAN, N_("Invalid cast to BOOLEAN: '%s'."));530 ADD_ERROR_MESSAGE(ER_INVALID_CAST_TO_BOOLEAN, N_("Invalid cast to BOOLEAN: '%s'."));
531531
532 // Transactional DDL
533 ADD_ERROR_MESSAGE(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, N_("Transactional DDL not supported"));
532 // ASSERT Message534 // ASSERT Message
533 ADD_ERROR_MESSAGE(ER_ASSERT, N_("Assertion '%s' failed."));535 ADD_ERROR_MESSAGE(ER_ASSERT, N_("Assertion '%s' failed."));
534 ADD_ERROR_MESSAGE(ER_ASSERT_NULL, N_("Assertion '%s' failed, the result was NULL."));536 ADD_ERROR_MESSAGE(ER_ASSERT_NULL, N_("Assertion '%s' failed, the result was NULL."));
535537
=== modified file 'drizzled/error_t.h'
--- drizzled/error_t.h 2011-01-04 23:23:25 +0000
+++ drizzled/error_t.h 2011-01-06 13:49:38 +0000
@@ -784,10 +784,10 @@
784 ER_ASSERT_NULL,784 ER_ASSERT_NULL,
785 ER_TABLE_DROP,785 ER_TABLE_DROP,
786 ER_INVALID_CAST_TO_BOOLEAN,786 ER_INVALID_CAST_TO_BOOLEAN,
787787 ER_TRANSACTIONAL_DDL_NOT_SUPPORTED,
788 // Leave ER_INVALID_BOOLEAN_VALUE as LAST, and force people to use tags788 // Leave ER_INVALID_BOOLEAN_VALUE as LAST, and force people to use tags
789 // instead of numbers in error messages in test.789 // instead of numbers in error messages in test.
790 ER_ERROR_LAST= ER_INVALID_CAST_TO_BOOLEAN790 ER_ERROR_LAST= ER_TRANSACTIONAL_DDL_NOT_SUPPORTED
791};791};
792792
793793
794794
=== modified file 'drizzled/statement/alter_schema.cc'
--- drizzled/statement/alter_schema.cc 2011-01-04 18:14:33 +0000
+++ drizzled/statement/alter_schema.cc 2011-01-06 13:49:38 +0000
@@ -59,9 +59,7 @@
5959
60 if (session->inTransaction())60 if (session->inTransaction())
61 {61 {
62 my_message(ER_LOCK_OR_ACTIVE_TRANSACTION, 62 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
63 ER(ER_LOCK_OR_ACTIVE_TRANSACTION),
64 MYF(0));
65 return true;63 return true;
66 }64 }
67 /*65 /*
6866
=== modified file 'drizzled/statement/alter_table.cc'
--- drizzled/statement/alter_table.cc 2010-12-24 07:15:43 +0000
+++ drizzled/statement/alter_table.cc 2011-01-06 13:49:38 +0000
@@ -136,9 +136,11 @@
136 if (not validateCreateTableOption())136 if (not validateCreateTableOption())
137 return true;137 return true;
138138
139 /* ALTER TABLE ends previous transaction */139 if (session->inTransaction())
140 if (not session->endActiveTransaction())140 {
141 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
141 return true;142 return true;
143 }
142144
143 if (not (need_start_waiting= not session->wait_if_global_read_lock(0, 1)))145 if (not (need_start_waiting= not session->wait_if_global_read_lock(0, 1)))
144 return true;146 return true;
145147
=== modified file 'drizzled/statement/create_index.cc'
--- drizzled/statement/create_index.cc 2010-12-18 04:43:40 +0000
+++ drizzled/statement/create_index.cc 2011-01-06 13:49:38 +0000
@@ -56,8 +56,9 @@
56 */56 */
5757
58 assert(first_table == all_tables && first_table != 0);58 assert(first_table == all_tables && first_table != 0);
59 if (! session->endActiveTransaction())59 if (session->inTransaction())
60 {60 {
61 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
61 return true;62 return true;
62 }63 }
6364
6465
=== modified file 'drizzled/statement/create_schema.cc'
--- drizzled/statement/create_schema.cc 2010-12-24 07:15:43 +0000
+++ drizzled/statement/create_schema.cc 2011-01-06 13:49:38 +0000
@@ -38,8 +38,9 @@
38 if (not validateSchemaOptions())38 if (not validateSchemaOptions())
39 return true;39 return true;
4040
41 if (not session->endActiveTransaction())41 if (session->inTransaction())
42 {42 {
43 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
43 return true;44 return true;
44 }45 }
4546
4647
=== modified file 'drizzled/statement/create_table.cc'
--- drizzled/statement/create_table.cc 2010-12-24 07:15:43 +0000
+++ drizzled/statement/create_table.cc 2011-01-06 13:49:38 +0000
@@ -67,12 +67,11 @@
67 return true;67 return true;
68 }68 }
6969
70
71 /* If CREATE TABLE of non-temporary table, do implicit commit */
72 if (not lex_identified_temp_table)70 if (not lex_identified_temp_table)
73 {71 {
74 if (not session->endActiveTransaction())72 if (session->inTransaction())
75 {73 {
74 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
76 return true;75 return true;
77 }76 }
78 }77 }
7978
=== modified file 'drizzled/statement/drop_index.cc'
--- drizzled/statement/drop_index.cc 2010-12-18 04:43:40 +0000
+++ drizzled/statement/drop_index.cc 2011-01-06 13:49:38 +0000
@@ -58,8 +58,9 @@
58 HA_CREATE_INFO create_info;58 HA_CREATE_INFO create_info;
5959
60 assert(first_table == all_tables && first_table != 0);60 assert(first_table == all_tables && first_table != 0);
61 if (! session->endActiveTransaction())61 if (session->inTransaction())
62 {62 {
63 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
63 return true;64 return true;
64 }65 }
6566
6667
=== modified file 'drizzled/statement/drop_schema.cc'
--- drizzled/statement/drop_schema.cc 2011-01-04 18:14:33 +0000
+++ drizzled/statement/drop_schema.cc 2011-01-06 13:49:38 +0000
@@ -34,10 +34,12 @@
3434
35bool statement::DropSchema::execute()35bool statement::DropSchema::execute()
36{36{
37 if (! session->endActiveTransaction())37 if (session->inTransaction())
38 {38 {
39 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
39 return true;40 return true;
40 }41 }
42
41 SchemaIdentifier schema_identifier(string(session->lex->name.str, session->lex->name.length));43 SchemaIdentifier schema_identifier(string(session->lex->name.str, session->lex->name.length));
42 if (not check_db_name(session, schema_identifier))44 if (not check_db_name(session, schema_identifier))
43 {45 {
@@ -45,14 +47,7 @@
4547
46 return false;48 return false;
47 }49 }
48 if (session->inTransaction())50
49 {
50 my_message(ER_LOCK_OR_ACTIVE_TRANSACTION,
51 ER(ER_LOCK_OR_ACTIVE_TRANSACTION),
52 MYF(0));
53 return true;
54 }
55
56 bool res = true;51 bool res = true;
57 std::string path;52 std::string path;
58 schema_identifier.getSQLPath(path);53 schema_identifier.getSQLPath(path);
5954
=== modified file 'drizzled/statement/drop_table.cc'
--- drizzled/statement/drop_table.cc 2010-12-31 02:23:39 +0000
+++ drizzled/statement/drop_table.cc 2011-01-06 13:49:38 +0000
@@ -93,8 +93,9 @@
9393
94 if (not drop_temporary)94 if (not drop_temporary)
95 {95 {
96 if (not session->endActiveTransaction())96 if (session->inTransaction())
97 {97 {
98 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
98 return true;99 return true;
99 }100 }
100 }101 }
101102
=== modified file 'drizzled/statement/rename_table.cc'
--- drizzled/statement/rename_table.cc 2010-12-24 07:15:43 +0000
+++ drizzled/statement/rename_table.cc 2011-01-06 13:49:38 +0000
@@ -35,6 +35,13 @@
35 TableList *all_tables= session->lex->query_tables;35 TableList *all_tables= session->lex->query_tables;
36 assert(first_table == all_tables && first_table != 0);36 assert(first_table == all_tables && first_table != 0);
37 TableList *table;37 TableList *table;
38
39 if (session->inTransaction())
40 {
41 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
42 return true;
43 }
44
38 for (table= first_table; table; table= table->next_local->next_local)45 for (table= first_table; table; table= table->next_local->next_local)
39 {46 {
40 TableList old_list, new_list;47 TableList old_list, new_list;
@@ -46,7 +53,7 @@
46 new_list= table->next_local[0];53 new_list= table->next_local[0];
47 }54 }
4855
49 if (! session->endActiveTransaction() || renameTables(first_table))56 if (renameTables(first_table))
50 {57 {
51 return true;58 return true;
52 }59 }
5360
=== modified file 'drizzled/statement/truncate.cc'
--- drizzled/statement/truncate.cc 2010-12-24 07:15:43 +0000
+++ drizzled/statement/truncate.cc 2011-01-06 13:49:38 +0000
@@ -29,22 +29,14 @@
29bool statement::Truncate::execute()29bool statement::Truncate::execute()
30{30{
31 TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;31 TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
32 if (! session->endActiveTransaction())32
33 {
34 return true;
35 }
36 /*
37 * Don't allow this within a transaction because we want to use
38 * re-generate table
39 */
40 if (session->inTransaction())33 if (session->inTransaction())
41 {34 {
42 my_message(ER_LOCK_OR_ACTIVE_TRANSACTION, 35 my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
43 ER(ER_LOCK_OR_ACTIVE_TRANSACTION),
44 MYF(0));
45 return true;36 return true;
46 }37 }
4738
39
48 return truncate(*session, first_table);40 return truncate(*session, first_table);
49}41}
5042
5143
=== modified file 'drizzled/sys_var.cc'
--- drizzled/sys_var.cc 2011-01-02 18:08:34 +0000
+++ drizzled/sys_var.cc 2011-01-06 13:49:38 +0000
@@ -1395,31 +1395,40 @@
13951395
1396static bool set_option_autocommit(Session *session, set_var *var)1396static bool set_option_autocommit(Session *session, set_var *var)
1397{1397{
1398 bool success= true;
1398 /* The test is negative as the flag we use is NOT autocommit */1399 /* The test is negative as the flag we use is NOT autocommit */
13991400
1400 uint64_t org_options= session->options;1401 uint64_t org_options= session->options;
1402 uint64_t new_options= session->options;
14011403
1402 if (var->save_result.uint32_t_value != 0)1404 if (var->save_result.uint32_t_value != 0)
1403 session->options&= ~((sys_var_session_bit*) var->var)->bit_flag;1405 new_options&= ~((sys_var_session_bit*) var->var)->bit_flag;
1404 else1406 else
1405 session->options|= ((sys_var_session_bit*) var->var)->bit_flag;1407 new_options|= ((sys_var_session_bit*) var->var)->bit_flag;
14061408
1407 if ((org_options ^ session->options) & OPTION_NOT_AUTOCOMMIT)1409 if ((org_options ^ new_options) & OPTION_NOT_AUTOCOMMIT)
1408 {1410 {
1409 if ((org_options & OPTION_NOT_AUTOCOMMIT))1411 if ((org_options & OPTION_NOT_AUTOCOMMIT))
1410 {1412 {
1413 success= session->endActiveTransaction();
1411 /* We changed to auto_commit mode */1414 /* We changed to auto_commit mode */
1412 session->options&= ~(uint64_t) (OPTION_BEGIN);1415 session->options&= ~(uint64_t) (OPTION_BEGIN);
1413 session->server_status|= SERVER_STATUS_AUTOCOMMIT;1416 session->server_status|= SERVER_STATUS_AUTOCOMMIT;
1414 TransactionServices &transaction_services= TransactionServices::singleton();
1415 if (transaction_services.commitTransaction(session, true))
1416 return 1;
1417 }1417 }
1418 else1418 else
1419 {1419 {
1420 session->server_status&= ~SERVER_STATUS_AUTOCOMMIT;1420 session->server_status&= ~SERVER_STATUS_AUTOCOMMIT;
1421 }1421 }
1422 }1422 }
1423
1424 if (var->save_result.uint32_t_value != 0)
1425 session->options&= ~((sys_var_session_bit*) var->var)->bit_flag;
1426 else
1427 session->options|= ((sys_var_session_bit*) var->var)->bit_flag;
1428
1429 if (not success)
1430 return true;
1431
1423 return 0;1432 return 0;
1424}1433}
14251434
14261435
=== modified file 'plugin/haildb/tests/r/trx_isolation_read_uncommitted.result'
--- plugin/haildb/tests/r/trx_isolation_read_uncommitted.result 2010-05-31 06:30:16 +0000
+++ plugin/haildb/tests/r/trx_isolation_read_uncommitted.result 2011-01-06 13:49:38 +0000
@@ -29,4 +29,5 @@
29a29a
301301
312312
32COMMIT;
32DROP TABLE t1;33DROP TABLE t1;
3334
=== modified file 'plugin/haildb/tests/r/trx_isolation_repeatable_read.result'
--- plugin/haildb/tests/r/trx_isolation_repeatable_read.result 2010-05-31 06:30:16 +0000
+++ plugin/haildb/tests/r/trx_isolation_repeatable_read.result 2011-01-06 13:49:38 +0000
@@ -22,4 +22,5 @@
22a22a
231231
242242
25COMMIT;
25DROP TABLE t1;26DROP TABLE t1;
2627
=== modified file 'plugin/haildb/tests/r/trx_isolation_serializable.result'
--- plugin/haildb/tests/r/trx_isolation_serializable.result 2010-05-31 09:08:00 +0000
+++ plugin/haildb/tests/r/trx_isolation_serializable.result 2011-01-06 13:49:38 +0000
@@ -22,4 +22,5 @@
22a22a
231231
242242
25COMMIT;
25DROP TABLE t1;26DROP TABLE t1;
2627
=== modified file 'plugin/haildb/tests/t/trx_isolation_read_uncommitted.test'
--- plugin/haildb/tests/t/trx_isolation_read_uncommitted.test 2010-05-31 06:30:16 +0000
+++ plugin/haildb/tests/t/trx_isolation_read_uncommitted.test 2011-01-06 13:49:38 +0000
@@ -30,6 +30,7 @@
30BEGIN;30BEGIN;
31SELECT * from t1 order by a;31SELECT * from t1 order by a;
3232
33COMMIT;
33DROP TABLE t1;34DROP TABLE t1;
3435
35disconnect a;36disconnect a;
3637
=== modified file 'plugin/haildb/tests/t/trx_isolation_repeatable_read.test'
--- plugin/haildb/tests/t/trx_isolation_repeatable_read.test 2010-05-31 06:30:16 +0000
+++ plugin/haildb/tests/t/trx_isolation_repeatable_read.test 2011-01-06 13:49:38 +0000
@@ -30,6 +30,7 @@
30BEGIN;30BEGIN;
31SELECT * from t1 order by a;31SELECT * from t1 order by a;
3232
33COMMIT;
33DROP TABLE t1;34DROP TABLE t1;
3435
35disconnect a;36disconnect a;
3637
=== modified file 'plugin/haildb/tests/t/trx_isolation_serializable.test'
--- plugin/haildb/tests/t/trx_isolation_serializable.test 2010-05-31 09:08:00 +0000
+++ plugin/haildb/tests/t/trx_isolation_serializable.test 2011-01-06 13:49:38 +0000
@@ -30,6 +30,7 @@
30BEGIN;30BEGIN;
31SELECT * from t1 order by a;31SELECT * from t1 order by a;
3232
33COMMIT;
33DROP TABLE t1;34DROP TABLE t1;
3435
35disconnect a;36disconnect a;
3637
=== modified file 'plugin/innobase/tests/r/innodb-semi-consistent.result'
--- plugin/innobase/tests/r/innodb-semi-consistent.result 2010-09-12 14:34:27 +0000
+++ plugin/innobase/tests/r/innodb-semi-consistent.result 2011-01-06 13:49:38 +0000
@@ -34,5 +34,6 @@
34103410
35113511
367367
37commit;
37drop table t1;38drop table t1;
38SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;39SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;
3940
=== modified file 'plugin/innobase/tests/r/innodb.result'
--- plugin/innobase/tests/r/innodb.result 2010-12-08 21:50:36 +0000
+++ plugin/innobase/tests/r/innodb.result 2011-01-06 13:49:38 +0000
@@ -331,11 +331,12 @@
331commit;331commit;
332select * from t1;332select * from t1;
333id val333id val
334commit;
334drop table t1;335drop table t1;
335create table t1 (a integer) engine=innodb;336create table t1 (a integer) engine=innodb;
336start transaction;
337rename table t1 to t2;337rename table t1 to t2;
338create table t1 (b integer) engine=innodb;338create table t1 (b integer) engine=innodb;
339start transaction;
339insert into t1 values (1);340insert into t1 values (1);
340rollback;341rollback;
341drop table t1;342drop table t1;
@@ -358,6 +359,7 @@
358SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';359SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';
359_userid360_userid
360marc@anyware.co.uk361marc@anyware.co.uk
362COMMIT;
361drop table t1;363drop table t1;
362set autocommit=1;364set autocommit=1;
363CREATE TABLE t1 (365CREATE TABLE t1 (
@@ -829,6 +831,7 @@
829set autocommit=0;831set autocommit=0;
830create table t1 (a int not null) engine= innodb;832create table t1 (a int not null) engine= innodb;
831insert into t1 values(1),(2);833insert into t1 values(1),(2);
834commit;
832truncate table t1;835truncate table t1;
833commit;836commit;
834truncate table t1;837truncate table t1;
@@ -2536,6 +2539,7 @@
2536SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;2539SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
2537insert into t1 select * from t2;2540insert into t1 select * from t2;
2538update t1 set b = (select e from t2 where a = d);2541update t1 set b = (select e from t2 where a = d);
2542commit;
2539create table t3(d int not null, e int, primary key(d)) engine=innodb2543create table t3(d int not null, e int, primary key(d)) engine=innodb
2540select * from t2;2544select * from t2;
2541commit;2545commit;
@@ -2640,6 +2644,7 @@
2640CREATE TABLE t1 ( a int ) ENGINE=innodb;2644CREATE TABLE t1 ( a int ) ENGINE=innodb;
2641BEGIN;2645BEGIN;
2642INSERT INTO t1 VALUES (1);2646INSERT INTO t1 VALUES (1);
2647COMMIT;
2643ALTER TABLE t1 ENGINE=innodb;2648ALTER TABLE t1 ENGINE=innodb;
2644DROP TABLE t1;2649DROP TABLE t1;
2645CREATE TABLE t1 (id int PRIMARY KEY, f int NOT NULL, INDEX(f)) ENGINE=InnoDB;2650CREATE TABLE t1 (id int PRIMARY KEY, f int NOT NULL, INDEX(f)) ENGINE=InnoDB;
26462651
=== modified file 'plugin/innobase/tests/r/innodb_bug51920.result'
--- plugin/innobase/tests/r/innodb_bug51920.result 2010-10-15 06:47:31 +0000
+++ plugin/innobase/tests/r/innodb_bug51920.result 2011-01-06 13:49:38 +0000
@@ -8,4 +8,5 @@
8SET @thread_id= ID;8SET @thread_id= ID;
9KILL @thread_id;9KILL @thread_id;
10Got one of the listed errors10Got one of the listed errors
11COMMIT;
11DROP TABLE bug51920;12DROP TABLE bug51920;
1213
=== modified file 'plugin/innobase/tests/r/innodb_bug53674.result'
--- plugin/innobase/tests/r/innodb_bug53674.result 2010-11-10 00:53:46 +0000
+++ plugin/innobase/tests/r/innodb_bug53674.result 2011-01-06 13:49:38 +0000
@@ -8,4 +8,5 @@
8select * from bug53674 where a=(select a from bug53674 where a > 1);8select * from bug53674 where a=(select a from bug53674 where a > 1);
9a9a
102102
11commit;
11drop table bug53674;12drop table bug53674;
1213
=== modified file 'plugin/innobase/tests/r/innodb_mysql.result'
--- plugin/innobase/tests/r/innodb_mysql.result 2010-12-08 22:35:56 +0000
+++ plugin/innobase/tests/r/innodb_mysql.result 2011-01-06 13:49:38 +0000
@@ -590,6 +590,7 @@
590CREATE TABLE t2 (a int, b int, primary key (a));590CREATE TABLE t2 (a int, b int, primary key (a));
591BEGIN;591BEGIN;
592INSERT INTO t2 values(100,100);592INSERT INTO t2 values(100,100);
593COMMIT;
593CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;594CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
594ERROR 23000: Duplicate entry '1' for key 'PRIMARY'595ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
595SELECT * from t2;596SELECT * from t2;
596597
=== modified file 'plugin/innobase/tests/r/unsafe_binlog_innodb.result'
--- plugin/innobase/tests/r/unsafe_binlog_innodb.result 2010-09-12 14:34:27 +0000
+++ plugin/innobase/tests/r/unsafe_binlog_innodb.result 2011-01-06 13:49:38 +0000
@@ -58,6 +58,7 @@
58set autocommit = 0;58set autocommit = 0;
59insert into t1 select * from t2;59insert into t1 select * from t2;
60update t1 set b = (select e from t2 where a = d);60update t1 set b = (select e from t2 where a = d);
61COMMIT;
61create table t3(d int not null, e int, primary key(d)) engine = InnoDB62create table t3(d int not null, e int, primary key(d)) engine = InnoDB
62select * from t2;63select * from t2;
63commit;64commit;
6465
=== modified file 'plugin/innobase/tests/t/innodb-semi-consistent.test'
--- plugin/innobase/tests/t/innodb-semi-consistent.test 2010-09-12 14:34:27 +0000
+++ plugin/innobase/tests/t/innodb-semi-consistent.test 2011-01-06 13:49:38 +0000
@@ -42,6 +42,7 @@
42commit;42commit;
43connection a;43connection a;
44select * from t1;44select * from t1;
45commit;
45drop table t1;46drop table t1;
46connection default;47connection default;
47disconnect a;48disconnect a;
4849
=== modified file 'plugin/innobase/tests/t/innodb.test'
--- plugin/innobase/tests/t/innodb.test 2010-12-07 09:12:12 +0000
+++ plugin/innobase/tests/t/innodb.test 2011-01-06 13:49:38 +0000
@@ -228,6 +228,7 @@
228delete from t1;228delete from t1;
229commit;229commit;
230select * from t1;230select * from t1;
231commit;
231drop table t1;232drop table t1;
232233
233#234#
@@ -235,9 +236,9 @@
235#236#
236237
237create table t1 (a integer) engine=innodb;238create table t1 (a integer) engine=innodb;
238start transaction;
239rename table t1 to t2;239rename table t1 to t2;
240create table t1 (b integer) engine=innodb;240create table t1 (b integer) engine=innodb;
241start transaction;
241insert into t1 values (1);242insert into t1 values (1);
242rollback;243rollback;
243drop table t1;244drop table t1;
@@ -260,6 +261,7 @@
260COMMIT;261COMMIT;
261SELECT * FROM t1;262SELECT * FROM t1;
262SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';263SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';
264COMMIT;
263drop table t1;265drop table t1;
264set autocommit=1;266set autocommit=1;
265267
@@ -549,6 +551,7 @@
549set autocommit=0;551set autocommit=0;
550create table t1 (a int not null) engine= innodb;552create table t1 (a int not null) engine= innodb;
551insert into t1 values(1),(2);553insert into t1 values(1),(2);
554commit;
552truncate table t1;555truncate table t1;
553commit;556commit;
554truncate table t1;557truncate table t1;
@@ -1616,6 +1619,7 @@
1616SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;1619SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
1617insert into t1 select * from t2;1620insert into t1 select * from t2;
1618update t1 set b = (select e from t2 where a = d);1621update t1 set b = (select e from t2 where a = d);
1622commit;
1619create table t3(d int not null, e int, primary key(d)) engine=innodb1623create table t3(d int not null, e int, primary key(d)) engine=innodb
1620select * from t2;1624select * from t2;
1621commit;1625commit;
@@ -1810,6 +1814,7 @@
1810CREATE TABLE t1 ( a int ) ENGINE=innodb;1814CREATE TABLE t1 ( a int ) ENGINE=innodb;
1811BEGIN;1815BEGIN;
1812INSERT INTO t1 VALUES (1);1816INSERT INTO t1 VALUES (1);
1817COMMIT;
1813ALTER TABLE t1 ENGINE=innodb;1818ALTER TABLE t1 ENGINE=innodb;
1814DROP TABLE t1;1819DROP TABLE t1;
18151820
18161821
=== modified file 'plugin/innobase/tests/t/innodb_bug51920.test'
--- plugin/innobase/tests/t/innodb_bug51920.test 2010-10-15 12:10:08 +0000
+++ plugin/innobase/tests/t/innodb_bug51920.test 2011-01-06 13:49:38 +0000
@@ -38,5 +38,6 @@
38-- error ER_QUERY_INTERRUPTED,20,238-- error ER_QUERY_INTERRUPTED,20,2
39reap;39reap;
40connection default;40connection default;
41COMMIT;
41DROP TABLE bug51920;42DROP TABLE bug51920;
42-- disconnect con143-- disconnect con1
4344
=== modified file 'plugin/innobase/tests/t/innodb_bug53674.test'
--- plugin/innobase/tests/t/innodb_bug53674.test 2010-11-10 00:53:46 +0000
+++ plugin/innobase/tests/t/innodb_bug53674.test 2011-01-06 13:49:38 +0000
@@ -3,4 +3,5 @@
3start transaction;3start transaction;
4select * from bug53674 for update;4select * from bug53674 for update;
5select * from bug53674 where a=(select a from bug53674 where a > 1);5select * from bug53674 where a=(select a from bug53674 where a > 1);
6commit;
6drop table bug53674;7drop table bug53674;
78
=== modified file 'plugin/myisam/tests/r/mix2_myisam.result'
--- plugin/myisam/tests/r/mix2_myisam.result 2010-12-07 09:12:12 +0000
+++ plugin/myisam/tests/r/mix2_myisam.result 2011-01-06 13:49:38 +0000
@@ -1658,5 +1658,6 @@
1658create TEMPORARY table t1 ( a int ) ENGINE=MyISAM;1658create TEMPORARY table t1 ( a int ) ENGINE=MyISAM;
1659BEGIN;1659BEGIN;
1660INSERT INTO t1 VALUES (1);1660INSERT INTO t1 VALUES (1);
1661COMMIT;
1661ALTER TABLE t1 ENGINE=MyISAM;1662ALTER TABLE t1 ENGINE=MyISAM;
1662DROP TABLE t1;1663DROP TABLE t1;
16631664
=== modified file 'plugin/storage_engine_api_tester/tests/r/transaction.result'
--- plugin/storage_engine_api_tester/tests/r/transaction.result 2010-11-29 07:03:38 +0000
+++ plugin/storage_engine_api_tester/tests/r/transaction.result 2011-01-06 13:49:38 +0000
@@ -39,5 +39,6 @@
39FROM t1_trx39FROM t1_trx
40INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;40INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
41k v41k v
42COMMIT;
42DROP TABLE t1_trx;43DROP TABLE t1_trx;
43DROP TABLE t1_non_trx;44DROP TABLE t1_non_trx;
4445
=== modified file 'plugin/storage_engine_api_tester/tests/t/transaction.test'
--- plugin/storage_engine_api_tester/tests/t/transaction.test 2010-11-29 07:03:38 +0000
+++ plugin/storage_engine_api_tester/tests/t/transaction.test 2011-01-06 13:49:38 +0000
@@ -52,5 +52,6 @@
52FROM t1_trx52FROM t1_trx
53INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;53INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
5454
55COMMIT;
55DROP TABLE t1_trx;56DROP TABLE t1_trx;
56DROP TABLE t1_non_trx;57DROP TABLE t1_non_trx;
5758
=== modified file 'plugin/transaction_log/tests/r/auto_commit.result'
--- plugin/transaction_log/tests/r/auto_commit.result 2010-12-21 20:47:29 +0000
+++ plugin/transaction_log/tests/r/auto_commit.result 2011-01-06 13:49:38 +0000
@@ -6,6 +6,7 @@
6);6);
7INSERT INTO t1 VALUES (1, "I love testing.");7INSERT INTO t1 VALUES (1, "I love testing.");
8INSERT INTO t1 VALUES (2, "I hate testing.");8INSERT INTO t1 VALUES (2, "I hate testing.");
9COMMIT;
9DROP TABLE t1;10DROP TABLE t1;
10SET AUTOCOMMIT= 1;11SET AUTOCOMMIT= 1;
11CREATE TABLE t1 (12CREATE TABLE t1 (
1213
=== modified file 'plugin/transaction_log/tests/r/transaction_log_transaction.result'
--- plugin/transaction_log/tests/r/transaction_log_transaction.result 2010-12-21 20:47:29 +0000
+++ plugin/transaction_log/tests/r/transaction_log_transaction.result 2011-01-06 13:49:38 +0000
@@ -572,6 +572,7 @@
572INSERT INTO t1 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);572INSERT INTO t1 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);
573INSERT INTO t2 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);573INSERT INTO t2 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);
574UPDATE t1 SET b = b*10 WHERE b%2=0;574UPDATE t1 SET b = b*10 WHERE b%2=0;
575COMMIT;
575CREATE TABLE t3 LIKE t1;576CREATE TABLE t3 LIKE t1;
576Check transaction_log_entries577Check transaction_log_entries
577SELECT COUNT(*) FROM DATA_DICTIONARY.TRANSACTION_LOG_ENTRIES;578SELECT COUNT(*) FROM DATA_DICTIONARY.TRANSACTION_LOG_ENTRIES;
578579
=== modified file 'plugin/transaction_log/tests/t/auto_commit.inc'
--- plugin/transaction_log/tests/t/auto_commit.inc 2009-12-11 21:28:10 +0000
+++ plugin/transaction_log/tests/t/auto_commit.inc 2011-01-06 13:49:38 +0000
@@ -16,6 +16,7 @@
16INSERT INTO t1 VALUES (1, "I love testing.");16INSERT INTO t1 VALUES (1, "I love testing.");
17INSERT INTO t1 VALUES (2, "I hate testing.");17INSERT INTO t1 VALUES (2, "I hate testing.");
1818
19COMMIT;
19DROP TABLE t1;20DROP TABLE t1;
2021
21# Try the same thing with auto_commit turned on22# Try the same thing with auto_commit turned on
2223
=== modified file 'plugin/transaction_log/tests/t/transaction_log_transaction.test'
--- plugin/transaction_log/tests/t/transaction_log_transaction.test 2010-10-28 21:31:13 +0000
+++ plugin/transaction_log/tests/t/transaction_log_transaction.test 2011-01-06 13:49:38 +0000
@@ -77,7 +77,7 @@
77INSERT INTO t1 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);77INSERT INTO t1 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);
78INSERT INTO t2 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);78INSERT INTO t2 (b) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(100),(101);
79UPDATE t1 SET b = b*10 WHERE b%2=0;79UPDATE t1 SET b = b*10 WHERE b%2=0;
80# this will cause implicit COMMIT80COMMIT;
81CREATE TABLE t3 LIKE t1;81CREATE TABLE t3 LIKE t1;
8282
83--source ../plugin/transaction_log/tests/t/check_transaction_log.inc83--source ../plugin/transaction_log/tests/t/check_transaction_log.inc
8484
=== modified file 'plugin/utility_functions/tests/r/execute_wait.result'
--- plugin/utility_functions/tests/r/execute_wait.result 2010-12-09 06:44:30 +0000
+++ plugin/utility_functions/tests/r/execute_wait.result 2011-01-06 13:49:38 +0000
@@ -13,14 +13,30 @@
131 1131 1
14SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;14SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;
15TABLE_NAME15TABLE_NAME
16A
17B
18C
19t116t1
20SELECT IF((COUNT(TABLE_NAME) = 3), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();17SELECT IF((COUNT(TABLE_NAME) = 3), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();
21IF((COUNT(TABLE_NAME) = 3), "YES", "NO")18IF((COUNT(TABLE_NAME) = 3), "YES", "NO")
19NO
20DROP TABLE t1;
21CREATE TABLE t1 (A VARCHAR(150));
22SET @execute= "SELECT WAIT('barrier')";
23INSERT INTO t1 VALUES ("COMMIT; CREATE TABLE A (A INT)"), ("COMMIT; CREATE TABLE B (A INT)"), ("CREATE TABLE C (A INT)");
24SELECT A FROM t1 ORDER BY A;
25A
26COMMIT; CREATE TABLE A (A INT)
27COMMIT; CREATE TABLE B (A INT)
28CREATE TABLE C (A INT)
29SELECT EXECUTE(A) WAIT, 1 FROM t1;
30EXECUTE(A) WAIT 1
311 1
321 1
331 1
34SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;
35TABLE_NAME
36A
37B
38t1
39SELECT IF((COUNT(TABLE_NAME) = 2), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();
40IF((COUNT(TABLE_NAME) = 2), "YES", "NO")
22YES41YES
23DROP TABLE A;42DROP TABLE A, B, t1;
24DROP TABLE B;
25DROP TABLE C;
26DROP TABLE t1;
2743
=== modified file 'plugin/utility_functions/tests/t/execute_wait.test'
--- plugin/utility_functions/tests/t/execute_wait.test 2010-12-09 06:44:30 +0000
+++ plugin/utility_functions/tests/t/execute_wait.test 2011-01-06 13:49:38 +0000
@@ -6,7 +6,14 @@
6SELECT EXECUTE(A) WAIT, 1 FROM t1;6SELECT EXECUTE(A) WAIT, 1 FROM t1;
7SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;7SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;
8SELECT IF((COUNT(TABLE_NAME) = 3), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();8SELECT IF((COUNT(TABLE_NAME) = 3), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();
9DROP TABLE A;
10DROP TABLE B;
11DROP TABLE C;
12DROP TABLE t1;9DROP TABLE t1;
10
11CREATE TABLE t1 (A VARCHAR(150));
12SET @execute= "SELECT WAIT('barrier')";
13INSERT INTO t1 VALUES ("COMMIT; CREATE TABLE A (A INT)"), ("COMMIT; CREATE TABLE B (A INT)"), ("CREATE TABLE C (A INT)");
14SELECT A FROM t1 ORDER BY A;
15SELECT EXECUTE(A) WAIT, 1 FROM t1;
16SELECT TABLE_NAME FROM DATA_DICTIONARY.TABLES WHERE TABLE_SCHEMA=SCHEMA() ORDER BY TABLE_NAME;
17SELECT IF((COUNT(TABLE_NAME) = 2), "YES", "NO") FROM DATA_DICTIONARY.TABLES WHERE TABLE_NAME IN ("A", "B", "C") AND TABLE_SCHEMA=SCHEMA();
18DROP TABLE A, B, t1;
19
1320
=== modified file 'tests/include.am'
--- tests/include.am 2011-01-05 04:45:57 +0000
+++ tests/include.am 2011-01-06 13:49:38 +0000
@@ -23,7 +23,7 @@
23GENSCRIPTS = tests/dtr tests/mtr tests/test-run23GENSCRIPTS = tests/dtr tests/mtr tests/test-run
24PRESCRIPTS = tests/test-run.pl tests/stress-test.pl24PRESCRIPTS = tests/test-run.pl tests/stress-test.pl
25PLUGIN_TESTS = $(pandora_plugin_test_list)25PLUGIN_TESTS = $(pandora_plugin_test_list)
26NORMAL_TESTS = main,bool_type,cast,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type,$(PLUGIN_TESTS)26NORMAL_TESTS = main,bool_type,cast,ddl_transactions,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type,$(PLUGIN_TESTS)
27ALL_TESTS = main,big,jp,tamil,regression,$(PLUGIN_TESTS)27ALL_TESTS = main,big,jp,tamil,regression,$(PLUGIN_TESTS)
28noinst_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)28noinst_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)
29CLEANFILES += $(GENSCRIPTS) tests/mtr29CLEANFILES += $(GENSCRIPTS) tests/mtr
3030
=== modified file 'tests/include/mix1.inc'
--- tests/include/mix1.inc 2010-12-07 18:12:07 +0000
+++ tests/include/mix1.inc 2011-01-06 13:49:38 +0000
@@ -653,6 +653,7 @@
653CREATE TABLE t2 (a int, b int, primary key (a));653CREATE TABLE t2 (a int, b int, primary key (a));
654BEGIN;654BEGIN;
655INSERT INTO t2 values(100,100);655INSERT INTO t2 values(100,100);
656COMMIT;
656--error ER_DUP_ENTRY657--error ER_DUP_ENTRY
657CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;658CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
658SELECT * from t2;659SELECT * from t2;
659660
=== modified file 'tests/include/mix2.inc'
--- tests/include/mix2.inc 2010-12-07 09:12:12 +0000
+++ tests/include/mix2.inc 2011-01-06 13:49:38 +0000
@@ -2162,6 +2162,7 @@
2162eval create $temp table t1 ( a int ) ENGINE=$engine_type;2162eval create $temp table t1 ( a int ) ENGINE=$engine_type;
2163BEGIN;2163BEGIN;
2164INSERT INTO t1 VALUES (1);2164INSERT INTO t1 VALUES (1);
2165COMMIT;
2165eval ALTER TABLE t1 ENGINE=$engine_type;2166eval ALTER TABLE t1 ENGINE=$engine_type;
2166DROP TABLE t1;2167DROP TABLE t1;
21672168
21682169
=== modified file 'tests/include/unsafe_binlog.inc'
--- tests/include/unsafe_binlog.inc 2009-08-03 23:01:21 +0000
+++ tests/include/unsafe_binlog.inc 2011-01-06 13:49:38 +0000
@@ -116,6 +116,7 @@
116set autocommit = 0;116set autocommit = 0;
117insert into t1 select * from t2;117insert into t1 select * from t2;
118update t1 set b = (select e from t2 where a = d);118update t1 set b = (select e from t2 where a = d);
119COMMIT;
119eval create table t3(d int not null, e int, primary key(d)) engine = $engine_type120eval create table t3(d int not null, e int, primary key(d)) engine = $engine_type
120select * from t2;121select * from t2;
121commit;122commit;
122123
=== modified file 'tests/r/flush_block_commit.result'
--- tests/r/flush_block_commit.result 2010-08-15 17:21:42 +0000
+++ tests/r/flush_block_commit.result 2011-01-06 13:49:38 +0000
@@ -36,4 +36,5 @@
36show create database test;36show create database test;
37Database Create Database37Database Create Database
38test CREATE DATABASE `test` COLLATE = utf8_general_ci38test CREATE DATABASE `test` COLLATE = utf8_general_ci
39COMMIT;
39drop table t1;40drop table t1;
4041
=== modified file 'tests/r/insert.result'
--- tests/r/insert.result 2010-04-20 18:23:07 +0000
+++ tests/r/insert.result 2011-01-06 13:49:38 +0000
@@ -82,6 +82,7 @@
82select count(*) from t2;82select count(*) from t2;
83count(*)83count(*)
84255008425500
85COMMIT;
85drop table t1,t2,t3;86drop table t1,t2,t3;
86create table t1 (a int, b int);87create table t1 (a int, b int);
87insert into t1 (a,b) values (a,b);88insert into t1 (a,b) values (a,b);
8889
=== modified file 'tests/r/randgen_queries.result'
--- tests/r/randgen_queries.result 2010-12-20 07:54:13 +0000
+++ tests/r/randgen_queries.result 2011-01-06 13:49:38 +0000
@@ -160,4 +160,5 @@
160select COUNT(*) from data_dictionary.tables;160select COUNT(*) from data_dictionary.tables;
161COUNT(*)161COUNT(*)
162####.##.####162####.##.####
163COMMIT;
163DROP TABLE t1;164DROP TABLE t1;
164165
=== modified file 'tests/r/savepoints.result'
--- tests/r/savepoints.result 2010-12-21 02:58:40 +0000
+++ tests/r/savepoints.result 2011-01-06 13:49:38 +0000
@@ -5,6 +5,7 @@
5UPDATE t1 SET id = 2 WHERE id != 2 LIMIT 0;5UPDATE t1 SET id = 2 WHERE id != 2 LIMIT 0;
6SAVEPOINT A;6SAVEPOINT A;
7End Test of Bug 5348067End Test of Bug 534806
8COMMIT;
8DROP TABLE t1;9DROP TABLE t1;
9CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY);10CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY);
10START TRANSACTION;11START TRANSACTION;
@@ -45,6 +46,7 @@
452462
463473
474484
49COMMIT;
48DROP TABLE t1;50DROP TABLE t1;
49Start Test of Bug 54229951Start Test of Bug 542299
50CREATE TABLE t1 (a int,id integer auto_increment,b int,/*Indices*/key (a ),primary key (id)) ENGINE=innodb;52CREATE TABLE t1 (a int,id integer auto_increment,b int,/*Indices*/key (a ),primary key (id)) ENGINE=innodb;
@@ -57,4 +59,5 @@
57INSERT INTO t1 ( a, b ) VALUES ( 1 , 9 );59INSERT INTO t1 ( a, b ) VALUES ( 1 , 9 );
58ROLLBACK TO SAVEPOINT A;60ROLLBACK TO SAVEPOINT A;
59End Test of Bug 54229961End Test of Bug 542299
62COMMIT;
60DROP TABLE t1;63DROP TABLE t1;
6164
=== modified file 'tests/r/select_in_null.result'
--- tests/r/select_in_null.result 2009-10-19 03:26:17 +0000
+++ tests/r/select_in_null.result 2011-01-06 13:49:38 +0000
@@ -6,7 +6,6 @@
6b int,6b int,
7primary key( a )7primary key( a )
8) engine=myisam;8) engine=myisam;
9begin;
10insert into foo( b ) values (1),(1),(1),(1),(1);9insert into foo( b ) values (1),(1),(1),(1),(1);
11create table t2 as select * from foo;10create table t2 as select * from foo;
12insert into foo( b ) select b from t2;11insert into foo( b ) select b from t2;
@@ -23,7 +22,6 @@
23create table t2 as select * from foo;22create table t2 as select * from foo;
24insert into foo( b ) select b from t2;23insert into foo( b ) select b from t2;
25drop table t2;24drop table t2;
26commit;
27explain select * from foo where a in (160000, 160001, 160002);25explain select * from foo where a in (160000, 160001, 160002);
28id select_type table type possible_keys key key_len ref rows Extra26id select_type table type possible_keys key key_len ref rows Extra
291 SIMPLE foo range PRIMARY PRIMARY 4 NULL 3 Using where271 SIMPLE foo range PRIMARY PRIMARY 4 NULL 3 Using where
3028
=== modified file 'tests/r/statement_boundaries.result'
--- tests/r/statement_boundaries.result 2010-10-14 18:58:48 +0000
+++ tests/r/statement_boundaries.result 2011-01-06 13:49:38 +0000
@@ -6,6 +6,7 @@
6SHOW STATUS LIKE 'Handler_commit%';6SHOW STATUS LIKE 'Handler_commit%';
7Variable_name Value7Variable_name Value
8Handler_commit 08Handler_commit 0
9COMMIT;
9DROP SCHEMA IF EXISTS boundaries;10DROP SCHEMA IF EXISTS boundaries;
10Warnings:11Warnings:
11Note 1008 Can't drop schema 'boundaries'; schema doesn't exist12Note 1008 Can't drop schema 'boundaries'; schema doesn't exist
@@ -20,10 +21,10 @@
20SHOW STATUS LIKE 'Handler_commit%';21SHOW STATUS LIKE 'Handler_commit%';
21Variable_name Value22Variable_name Value
22Handler_commit 123Handler_commit 1
23BEGIN;
24DROP SCHEMA IF EXISTS boundaries;24DROP SCHEMA IF EXISTS boundaries;
25Warnings:25Warnings:
26Note 1008 Can't drop schema 'boundaries'; schema doesn't exist26Note 1008 Can't drop schema 'boundaries'; schema doesn't exist
27BEGIN;
27COMMIT;28COMMIT;
28SHOW STATUS LIKE 'Handler_commit%';29SHOW STATUS LIKE 'Handler_commit%';
29Variable_name Value30Variable_name Value
@@ -77,6 +78,7 @@
77SHOW STATUS LIKE 'Handler_commit%';78SHOW STATUS LIKE 'Handler_commit%';
78Variable_name Value79Variable_name Value
79Handler_commit 480Handler_commit 4
81COMMIT;
80drop table commit_test;82drop table commit_test;
81SHOW STATUS LIKE 'Handler_commit%';83SHOW STATUS LIKE 'Handler_commit%';
82Variable_name Value84Variable_name Value
8385
=== modified file 'tests/r/transaction.result'
--- tests/r/transaction.result 2010-02-25 04:27:11 +0000
+++ tests/r/transaction.result 2011-01-06 13:49:38 +0000
@@ -39,5 +39,6 @@
39FROM t1_trx39FROM t1_trx
40INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;40INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
41k v41k v
42COMMIT;
42DROP TABLE t1_trx;43DROP TABLE t1_trx;
43DROP TABLE t1_non_trx;44DROP TABLE t1_non_trx;
4445
=== modified file 'tests/r/trx_isolation_read_committed.result'
--- tests/r/trx_isolation_read_committed.result 2010-10-25 04:18:50 +0000
+++ tests/r/trx_isolation_read_committed.result 2011-01-06 13:49:38 +0000
@@ -30,4 +30,5 @@
30a30a
311311
322322
33COMMIT;
33DROP TABLE t1;34DROP TABLE t1;
3435
=== added directory 'tests/suite/ddl_transactions'
=== removed directory 'tests/suite/ddl_transactions'
=== added directory 'tests/suite/ddl_transactions/r'
=== added file 'tests/suite/ddl_transactions/r/alter_schema.result'
--- tests/suite/ddl_transactions/r/alter_schema.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/alter_schema.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2begin;
3alter schema foo collate = utf8_bin;
4ERROR HY000: Transactional DDL not supported
5commit;
6DROP SCHEMA foo;
07
=== added file 'tests/suite/ddl_transactions/r/alter_table.result'
--- tests/suite/ddl_transactions/r/alter_table.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/alter_table.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,8 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3ALTER TABLE t1 ADD COLUMN b int;
4ERROR HY000: Transactional DDL not supported
5ALTER TABLE t1 DISCARD TABLESPACE;
6ERROR HY000: Transactional DDL not supported
7COMMIT;
8DROP TABLE t1;
09
=== added file 'tests/suite/ddl_transactions/r/create_index.result'
--- tests/suite/ddl_transactions/r/create_index.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/create_index.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3CREATE INDEX foo on t1 (a);
4ERROR HY000: Transactional DDL not supported
5COMMIT;
6DROP TABLE t1;
07
=== added file 'tests/suite/ddl_transactions/r/create_schema.result'
--- tests/suite/ddl_transactions/r/create_schema.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/create_schema.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2DROP SCHEMA foo;
3BEGIN;
4CREATE SCHEMA foo;
5ERROR HY000: Transactional DDL not supported
6COMMIT;
07
=== added file 'tests/suite/ddl_transactions/r/create_table.result'
--- tests/suite/ddl_transactions/r/create_table.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/create_table.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,4 @@
1BEGIN;
2CREATE TABLE t1 (a int);
3ERROR HY000: Transactional DDL not supported
4COMMIT;
05
=== added file 'tests/suite/ddl_transactions/r/drop_index.result'
--- tests/suite/ddl_transactions/r/drop_index.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/drop_index.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int, index a_idx (a));
2BEGIN;
3DROP INDEX a_idx on t1;
4ERROR HY000: Transactional DDL not supported
5commit;
6drop table t1;
07
=== added file 'tests/suite/ddl_transactions/r/drop_schema.result'
--- tests/suite/ddl_transactions/r/drop_schema.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/drop_schema.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2BEGIN;
3DROP SCHEMA foo;
4ERROR HY000: Transactional DDL not supported
5commit;
6DROP SCHEMA foo;
07
=== added file 'tests/suite/ddl_transactions/r/drop_table.result'
--- tests/suite/ddl_transactions/r/drop_table.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/drop_table.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3DROP TABLE t1;
4ERROR HY000: Transactional DDL not supported
5COMMIT;
6DROP TABLE t1;
07
=== added file 'tests/suite/ddl_transactions/r/rename_table.result'
--- tests/suite/ddl_transactions/r/rename_table.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/rename_table.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,8 @@
1CREATE TABLE t1 (a int);
2begin;
3RENAME TABLE t1 to t2;
4ERROR HY000: Transactional DDL not supported
5commit;
6DROP TABLE IF EXISTS t1,t2;
7Warnings:
8Note 1051 Unknown table 't2'
09
=== added file 'tests/suite/ddl_transactions/r/truncate_table.result'
--- tests/suite/ddl_transactions/r/truncate_table.result 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/r/truncate_table.result 2011-01-06 13:49:38 +0000
@@ -0,0 +1,7 @@
1CREATE TABLE t1 (a int);
2insert into t1 values (1),(2),(42);
3BEGIN;
4TRUNCATE TABLE t1;
5ERROR HY000: Transactional DDL not supported
6COMMIT;
7DROP TABLE t1;
08
=== added directory 'tests/suite/ddl_transactions/t'
=== added file 'tests/suite/ddl_transactions/t/alter_schema.test'
--- tests/suite/ddl_transactions/t/alter_schema.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/alter_schema.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2begin;
3--error 1727
4alter schema foo collate = utf8_bin;
5commit;
6DROP SCHEMA foo;
07
=== added file 'tests/suite/ddl_transactions/t/alter_table.test'
--- tests/suite/ddl_transactions/t/alter_table.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/alter_table.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,8 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3--error 1727
4ALTER TABLE t1 ADD COLUMN b int;
5--error 1727
6ALTER TABLE t1 DISCARD TABLESPACE;
7COMMIT;
8DROP TABLE t1;
09
=== added file 'tests/suite/ddl_transactions/t/create_index.test'
--- tests/suite/ddl_transactions/t/create_index.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/create_index.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3--error 1727
4CREATE INDEX foo on t1 (a);
5COMMIT;
6DROP TABLE t1;
07
=== added file 'tests/suite/ddl_transactions/t/create_schema.test'
--- tests/suite/ddl_transactions/t/create_schema.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/create_schema.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2DROP SCHEMA foo;
3BEGIN;
4--error 1727
5CREATE SCHEMA foo;
6COMMIT;
07
=== added file 'tests/suite/ddl_transactions/t/create_table.test'
--- tests/suite/ddl_transactions/t/create_table.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/create_table.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,4 @@
1BEGIN;
2--error 1727
3CREATE TABLE t1 (a int);
4COMMIT;
05
=== added file 'tests/suite/ddl_transactions/t/drop_index.test'
--- tests/suite/ddl_transactions/t/drop_index.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/drop_index.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int, index a_idx (a));
2BEGIN;
3--error 1727
4DROP INDEX a_idx on t1;
5commit;
6drop table t1;
07
=== added file 'tests/suite/ddl_transactions/t/drop_schema.test'
--- tests/suite/ddl_transactions/t/drop_schema.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/drop_schema.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE SCHEMA foo;
2BEGIN;
3--error 1727
4DROP SCHEMA foo;
5commit;
6DROP SCHEMA foo;
07
=== added file 'tests/suite/ddl_transactions/t/drop_table.test'
--- tests/suite/ddl_transactions/t/drop_table.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/drop_table.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int);
2BEGIN;
3--error 1727
4DROP TABLE t1;
5COMMIT;
6DROP TABLE t1;
07
=== added file 'tests/suite/ddl_transactions/t/rename_table.test'
--- tests/suite/ddl_transactions/t/rename_table.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/rename_table.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,6 @@
1CREATE TABLE t1 (a int);
2begin;
3--error 1727
4RENAME TABLE t1 to t2;
5commit;
6DROP TABLE IF EXISTS t1,t2;
07
=== added file 'tests/suite/ddl_transactions/t/truncate_table.test'
--- tests/suite/ddl_transactions/t/truncate_table.test 1970-01-01 00:00:00 +0000
+++ tests/suite/ddl_transactions/t/truncate_table.test 2011-01-06 13:49:38 +0000
@@ -0,0 +1,7 @@
1CREATE TABLE t1 (a int);
2insert into t1 values (1),(2),(42);
3BEGIN;
4--error 1727
5TRUNCATE TABLE t1;
6COMMIT;
7DROP TABLE t1;
08
=== modified file 'tests/t/flush_block_commit.test'
--- tests/t/flush_block_commit.test 2010-11-11 12:52:12 +0000
+++ tests/t/flush_block_commit.test 2011-01-06 13:49:38 +0000
@@ -71,7 +71,7 @@
71begin;71begin;
72select * from t1;72select * from t1;
73show create database test;73show create database test;
7474COMMIT;
75drop table t1;75drop table t1;
7676
77# End of 4.1 tests77# End of 4.1 tests
7878
=== modified file 'tests/t/insert.test'
--- tests/t/insert.test 2010-08-26 21:56:15 +0000
+++ tests/t/insert.test 2011-01-06 13:49:38 +0000
@@ -94,7 +94,6 @@
94create table t2(id2 int not null, t char(12));94create table t2(id2 int not null, t char(12));
95create table t3(id3 int not null, t char(12), index(id3));95create table t3(id3 int not null, t char(12), index(id3));
96disable_query_log;96disable_query_log;
97set autocommit=0;
98begin;97begin;
99let $1 = 100;98let $1 = 100;
100while ($1)99while ($1)
@@ -120,6 +119,7 @@
120insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;119insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
121insert into t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;120insert into t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
122select count(*) from t2;121select count(*) from t2;
122COMMIT;
123drop table t1,t2,t3;123drop table t1,t2,t3;
124124
125#125#
126126
=== modified file 'tests/t/randgen_queries.test'
--- tests/t/randgen_queries.test 2010-07-21 19:15:45 +0000
+++ tests/t/randgen_queries.test 2011-01-06 13:49:38 +0000
@@ -96,5 +96,5 @@
96--replace_column 1 ####.##.####96--replace_column 1 ####.##.####
97--sorted_result97--sorted_result
98select COUNT(*) from data_dictionary.tables;98select COUNT(*) from data_dictionary.tables;
9999COMMIT;
100DROP TABLE t1;100DROP TABLE t1;
101101
=== modified file 'tests/t/savepoints.test'
--- tests/t/savepoints.test 2010-12-21 02:58:40 +0000
+++ tests/t/savepoints.test 2011-01-06 13:49:38 +0000
@@ -12,7 +12,7 @@
12SAVEPOINT A;12SAVEPOINT A;
1313
14--echo End Test of Bug 53480614--echo End Test of Bug 534806
1515COMMIT;
16DROP TABLE t1;16DROP TABLE t1;
1717
18# Let's test the non-edge case for SAVEPOINTS:18# Let's test the non-edge case for SAVEPOINTS:
@@ -62,6 +62,7 @@
6262
63# t1 should have 1,2,3,4 in it.63# t1 should have 1,2,3,4 in it.
64SELECT * FROM t1;64SELECT * FROM t1;
65COMMIT;
65DROP TABLE t1;66DROP TABLE t1;
6667
67# 68#
@@ -81,4 +82,5 @@
81ROLLBACK TO SAVEPOINT A;82ROLLBACK TO SAVEPOINT A;
8283
83--echo End Test of Bug 54229984--echo End Test of Bug 542299
85COMMIT;
84DROP TABLE t1;86DROP TABLE t1;
8587
=== modified file 'tests/t/select_in_null.test'
--- tests/t/select_in_null.test 2009-10-19 03:26:17 +0000
+++ tests/t/select_in_null.test 2011-01-06 13:49:38 +0000
@@ -12,7 +12,6 @@
12 primary key( a )12 primary key( a )
13) engine=myisam;13) engine=myisam;
1414
15begin;
16insert into foo( b ) values (1),(1),(1),(1),(1);15insert into foo( b ) values (1),(1),(1),(1),(1);
17create table t2 as select * from foo;16create table t2 as select * from foo;
18insert into foo( b ) select b from t2;17insert into foo( b ) select b from t2;
@@ -29,7 +28,6 @@
29create table t2 as select * from foo;28create table t2 as select * from foo;
30insert into foo( b ) select b from t2;29insert into foo( b ) select b from t2;
31drop table t2;30drop table t2;
32commit;
3331
34explain select * from foo where a in (160000, 160001, 160002);32explain select * from foo where a in (160000, 160001, 160002);
35explain select * from foo where a in (null, 160000, 160001, 160002);33explain select * from foo where a in (null, 160000, 160001, 160002);
3634
=== modified file 'tests/t/statement_boundaries.test'
--- tests/t/statement_boundaries.test 2010-03-14 20:36:41 +0000
+++ tests/t/statement_boundaries.test 2011-01-06 13:49:38 +0000
@@ -16,10 +16,10 @@
1616
17SHOW STATUS LIKE 'Handler_commit%';17SHOW STATUS LIKE 'Handler_commit%';
1818
19COMMIT;
19DROP SCHEMA IF EXISTS boundaries;20DROP SCHEMA IF EXISTS boundaries;
2021
21# Expect 1 commit count since above DROP SCHEMA22# Expect 1 commit count since above COMMIT before DROP SCHEMA
22# will implicitly call COMMIT.
23#23#
24# When we get transactional DDL, should be 0.24# When we get transactional DDL, should be 0.
25SHOW STATUS LIKE 'Handler_commit%';25SHOW STATUS LIKE 'Handler_commit%';
@@ -38,8 +38,8 @@
38SET AUTOCOMMIT= 1;38SET AUTOCOMMIT= 1;
3939
40SHOW STATUS LIKE 'Handler_commit%';40SHOW STATUS LIKE 'Handler_commit%';
41DROP SCHEMA IF EXISTS boundaries;
41BEGIN;42BEGIN;
42DROP SCHEMA IF EXISTS boundaries;
43COMMIT;43COMMIT;
4444
45SHOW STATUS LIKE 'Handler_commit%';45SHOW STATUS LIKE 'Handler_commit%';
@@ -83,5 +83,6 @@
8383
8484
85SHOW STATUS LIKE 'Handler_commit%';85SHOW STATUS LIKE 'Handler_commit%';
86COMMIT;
86drop table commit_test;87drop table commit_test;
87SHOW STATUS LIKE 'Handler_commit%';88SHOW STATUS LIKE 'Handler_commit%';
8889
=== modified file 'tests/t/transaction.test'
--- tests/t/transaction.test 2010-02-25 04:27:11 +0000
+++ tests/t/transaction.test 2011-01-06 13:49:38 +0000
@@ -52,5 +52,6 @@
52FROM t1_trx52FROM t1_trx
53INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;53INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
5454
55COMMIT;
55DROP TABLE t1_trx;56DROP TABLE t1_trx;
56DROP TABLE t1_non_trx;57DROP TABLE t1_non_trx;
5758
=== modified file 'tests/t/trx_isolation_read_committed.test'
--- tests/t/trx_isolation_read_committed.test 2010-10-25 04:18:50 +0000
+++ tests/t/trx_isolation_read_committed.test 2011-01-06 13:49:38 +0000
@@ -36,6 +36,7 @@
36BEGIN;36BEGIN;
37SELECT * from t1 order by a;37SELECT * from t1 order by a;
3838
39COMMIT;
39DROP TABLE t1;40DROP TABLE t1;
4041
41disconnect a;42disconnect a;
4243
=== modified file 'tests/test-run.pl'
--- tests/test-run.pl 2011-01-05 04:45:57 +0000
+++ tests/test-run.pl 2011-01-06 13:49:38 +0000
@@ -148,7 +148,7 @@
148148
149our $opt_usage;149our $opt_usage;
150our $opt_suites;150our $opt_suites;
151our $opt_suites_default= "main,bool_type,cast,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type"; # Default suites to run151our $opt_suites_default= "main,bool_type,cast,ddl_transactions,flush_tables,identifiers,jp,mysql_compatibility,regression,tamil,time_type,unsigned_integer_type,uuid_type"; # Default suites to run
152our $opt_script_debug= 0; # Script debugging, enable with --script-debug152our $opt_script_debug= 0; # Script debugging, enable with --script-debug
153our $opt_verbose= 0; # Verbose output, enable with --verbose153our $opt_verbose= 0; # Verbose output, enable with --verbose
154154

Subscribers

People subscribed via source and target branches