You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. --source include/have_innodb.inc
  2. #display current value of innodb_use_sys_malloc
  3. SELECT @@GLOBAL.innodb_use_sys_malloc;
  4. --echo 1 Expected
  5. #try changing it. Should fail.
  6. --error ER_INCORRECT_GLOBAL_LOCAL_VAR
  7. SET @@GLOBAL.innodb_use_sys_malloc=0;
  8. --echo Expected error 'Read only variable'
  9. SELECT @@GLOBAL.innodb_use_sys_malloc;
  10. --echo 1 Expected
  11. #do some stuff to see if it works.
  12. --disable_warnings
  13. drop table if exists t1;
  14. --enable_warnings
  15. create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
  16. insert into t1 values (1),(2),(3),(4),(5),(6),(7);
  17. select * from t1;
  18. drop table t1;
  19. --source include/have_innodb.inc
  20. #display current value of innodb_use_sys_malloc
  21. SELECT @@GLOBAL.innodb_use_sys_malloc;
  22. --echo 1 Expected
  23. #try changing it. Should fail.
  24. --error ER_INCORRECT_GLOBAL_LOCAL_VAR
  25. SET @@GLOBAL.innodb_use_sys_malloc=0;
  26. --echo Expected error 'Read only variable'
  27. SELECT @@GLOBAL.innodb_use_sys_malloc;
  28. --echo 1 Expected
  29. #do some stuff to see if it works.
  30. --disable_warnings
  31. drop table if exists t1;
  32. --enable_warnings
  33. create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
  34. insert into t1 values (1),(2),(3),(4),(5),(6),(7);
  35. select * from t1;
  36. drop table t1;