Commit e962b04b authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com
Browse files

show_check.test fixed cleanup problem

rpl000014.test	fixed bug in testcase
rename.test	fixed cleanup problem
handler.cc	added a comment
sql_class.h	fixed bug in active_transaction() when MySQL was not compiled with transaction support
parent 9ff59511
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
# Test of rename table
#

drop table if exists t1,t2,t3,t4;
drop table if exists t0,t1,t2,t3,t4;
create table t0 SELECT 1,"table 1";
create table t2 SELECT 2,"table 2";
create table t3 SELECT 3,"table 3";
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ change master to master_log_pos=173;
show slave status;
connection master;
show master status;
create table if not exists foo(n int);
drop table if exists foo;
create table foo (n int);
insert into foo values (1),(2),(3);
+1 −0
Original line number Diff line number Diff line
#
# Test of some show commands
#
drop table if exists t1,t2;
create table t1 (a int not null primary key, b int not null,c int not null, key(b,c));
insert into t1 values (1,2,2),(2,2,3),(3,2,4),(4,2,4);
create table t2 type=isam select * from t1;
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
#endif
  if (error && trans == &thd->transaction.all && mysql_bin_log.is_open())
    sql_print_error("Error: Got error during commit;  Binlog is not up to date!");
#endif
#endif // using transactions
  DBUG_RETURN(error);
}

+5 −0
Original line number Diff line number Diff line
@@ -299,9 +299,14 @@ class THD :public ilink {
  }
  inline bool active_transaction()
  {
#ifdef USING_TRANSACTIONS    
    return (transaction.all.bdb_tid != 0 ||
	    transaction.all.innobase_tid != 0 || 
	    transaction.all.gemini_tid != 0);
#else
    return 0;
#endif
    
  }
  inline gptr alloc(unsigned int size) { return alloc_root(&mem_root,size); }
  inline gptr calloc(unsigned int size)