home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000008.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  747 b   |  30 lines  |  [TEXT/ttxt]

  1. #this one assumes we are ignoring updates on table foo, but doing
  2. #the ones on all other tables
  3. source include/master-slave.inc;
  4. connection slave;
  5. use test;
  6. drop table if exists foo;
  7. create table foo (n int);
  8. insert into foo values(4);
  9. connection master;
  10. use test;
  11. drop table if exists foo;
  12. create table foo (n int);
  13. insert into foo values(5);
  14. drop table if exists bar;
  15. create table bar (m int);
  16. insert into bar values(15);
  17. drop table if exists choo;
  18. create table choo (k int);
  19. insert into choo values(55);
  20. save_master_pos;
  21. connection slave;
  22. sync_with_master;
  23. select foo.n,bar.m,choo.k from foo,bar,choo;
  24. connection master;
  25. drop table if exists foo,bar,choo;
  26. save_master_pos;
  27. connection slave;
  28. sync_with_master;
  29. drop table if exists foo,bar,choo;
  30.