@@ -219,35 +219,100 @@ mo_version
219219drop database mo_catalog_new_new;
220220drop database mo_catalog_new;
221221drop database if exists test100;
222-
223222create database test100;
224-
225223use test100;
224+ create table table01(col1 int primary key , col2 decimal, col3 char, col4 varchar(20), col5 text, col6 double);
225+ insert into table01 values (1, 2, 'a', '23eiojf', 'r23v324r23rer', 3923.324);
226+ insert into table01 values (2, 3, 'b', '32r32r', 'database', 1111111);
227+ drop table if exists table02;
228+ create table table02 (col1 int unique key, col2 varchar(20));
229+ insert into table02 (col1, col2) values (133, 'database');
230+ drop snapshot if exists sp07;
231+ create snapshot sp07 for table test100 table01;
232+ create database test_1000 clone test100 {snapshot = 'sp07'};
233+ internal error: the snapshot sp07 doesnot contain the table table02
234+ drop database test100;
235+ drop database test_1000;
236+ Can't drop database 'test_1000'; database doesn't exist
237+ drop snapshot sp07;
238+ drop database if exists test101;
239+ create database test101;
240+ use test101;
241+ create table table01(col1 int primary key , col2 decimal, col3 char, col4 varchar(20), col5 text, col6 double);
242+ insert into table01 values (1, 2, 'a', '23eiojf', 'r23v324r23rer', 3923.324);
243+ insert into table01 values (2, 3, 'b', '32r32r', 'database', 1111111);
244+ drop table if exists table02;
245+ create table table02 (col1 int unique key, col2 varchar(20));
246+ insert into table02 (col1, col2) values (133, 'database');
247+ drop snapshot if exists sp08;
248+ create snapshot sp08 for table test100 table01;
249+ internal error: table test100.table01 does not exist
250+ drop database if exists db08;
251+ create database db08;
252+ create table db08.table01 clone test100.table01 {snapshot = 'sp08'};
253+ internal error: find 0 snapshot records by name(sp08), expect only 1
254+ drop database test101;
255+ drop database db08;
256+ drop snapshot sp08;
257+ internal error: snapshot sp08 does not exist
258+ drop database if exists test102;
259+
260+ create database test102;
261+
262+ use test102;
226263
227264create table table01(col1 int primary key , col2 decimal, col3 char, col4 varchar(20), col5 text, col6 double);
228265
229266insert into table01 values (1, 2, 'a', '23eiojf', 'r23v324r23rer', 3923.324);
230267
231268insert into table01 values (2, 3, 'b', '32r32r', 'database', 1111111);
232269
270+ drop database if exists test103;
271+
272+ create database test103;
273+
274+ use test103;
275+
233276drop table if exists table02;
234277
235278create table table02 (col1 int unique key, col2 varchar(20));
236279
237280insert into table02 (col1, col2) values (133, 'database');
238281
239- drop snapshot if exists sp07 ;
282+ drop snapshot if exists sp09 ;
240283
241- create snapshot sp07 for table test100 table01 ;
284+ create snapshot sp09 for database test102 ;
242285
243- create database test_1000 clone test100 {snapshot = 'sp07'} ;
286+ drop database if exists db09 ;
244287
245- drop database test100;
288+ create database db09 clone test103 {snapshot = 'sp09'};
289+ internal error: the snapshot sp09 doesnot contain the table table02
290+ drop database test102;
246291
247- drop database test_1000 ;
292+ drop database test103 ;
248293
249- drop snapshot sp07 ;
294+ drop snapshot sp09 ;
250295
296+ drop account if exists acc02;
297+ create account acc02 admin_name = 'test_account' identified by '111';
298+ drop database if exists test102;
299+ create database test102;
300+ use test102;
301+ create table table01(col1 int primary key , col2 decimal, col3 char, col4 varchar(20), col5 text, col6 double);
302+ insert into table01 values (1, 2, 'a', '23eiojf', 'r23v324r23rer', 3923.324);
303+ insert into table01 values (2, 3, 'b', '32r32r', 'database', 1111111);
304+ drop database if exists test103;
305+ create database test103;
306+ use test103;
307+ drop table if exists table02;
308+ create table table02 (col1 int unique key, col2 varchar(20));
309+ insert into table02 (col1, col2) values (133, 'database');
310+ drop snapshot if exists sp10;
311+ create snapshot sp10 for account acc02;
312+ create database db09 clone test102 {snapshot = 'sp10'};
313+ drop account acc02;
314+ drop snapshot sp10;
315+ drop database db09;
251316drop account if exists acc06;
252317create account acc06 admin_name = 'test_account' identified by '111';
253318drop database if exists test10;
0 commit comments