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.

47 lines
1.4 KiB

  1. ##### suite/funcs_1/funcs_1/t/ndb__load.test
  2. # ndb tables should be used
  3. #
  4. # 1. Check if ndb is available
  5. --source include/have_ndb.inc
  6. # 2. Set $engine_type
  7. let $engine_type= ndb;
  8. # Decide, if the objects are to be (re)created
  9. #
  10. # - once at the beginning of a set of testcases ('$NO_REFRESH' <> '' --> TRUE)
  11. # That means all objects have to be (re)created within the current script.
  12. #
  13. # - per every testscript/case ('$NO_REFRESH' = '' --> FALSE)
  14. # That means the current script must not (re)create any object and every
  15. # testscript/case (re)creates only the objects it needs.
  16. eval SET @NO_REFRESH = IF( '$NO_REFRESH' = '', 0, 1);
  17. # FIXME Replace the following, when "if" for mysqltest is available
  18. let $run= `SELECT @NO_REFRESH`;
  19. while ($run)
  20. {
  21. # Create some objects needed in many testcases
  22. USE test;
  23. --source suite/funcs_1/include/ndb_tb1.inc
  24. --source suite/funcs_1/include/ndb_tb2.inc
  25. --source suite/funcs_1/include/ndb_tb3.inc
  26. --source suite/funcs_1/include/ndb_tb4.inc
  27. # The database test1 is needed for the VIEW testcases
  28. --disable_warnings
  29. DROP DATABASE IF EXISTS test1;
  30. --enable_warnings
  31. CREATE DATABASE test1;
  32. USE test1;
  33. --source suite/funcs_1/include/ndb_tb2.inc
  34. USE test;
  35. # These tables are needed for the stored procedure testscases
  36. --source suite/funcs_1/include/sp_tb.inc
  37. let $run= 0;
  38. }