@@ -1084,7 +1084,7 @@ execute stmt;
1084
1084
1085
1085
alter table t1 drop column b;
1086
1086
execute stmt;
1087
- call p_verify_reprepare_count(0 );
1087
+ call p_verify_reprepare_count(3 );
1088
1088
1089
1089
drop table t1;
1090
1090
@@ -1526,30 +1526,30 @@ drop table t2;
1526
1526
execute stmt;
1527
1527
drop table t2;
1528
1528
execute stmt;
1529
- call p_verify_reprepare_count(0 );
1529
+ call p_verify_reprepare_count(2 );
1530
1530
# Base table with name of table to be created exists
1531
1531
--error ER_TABLE_EXISTS_ERROR
1532
1532
execute stmt;
1533
1533
call p_verify_reprepare_count(1);
1534
1534
--error ER_TABLE_EXISTS_ERROR
1535
1535
execute stmt;
1536
- call p_verify_reprepare_count(0 );
1536
+ call p_verify_reprepare_count(1 );
1537
1537
drop table t2;
1538
1538
# Temporary table with name of table to be created exists
1539
1539
create temporary table t2 (a int);
1540
1540
# Temporary table and base table are not in the same name space.
1541
1541
execute stmt;
1542
- call p_verify_reprepare_count(0 );
1542
+ call p_verify_reprepare_count(1 );
1543
1543
--error ER_TABLE_EXISTS_ERROR
1544
1544
execute stmt;
1545
1545
call p_verify_reprepare_count(1);
1546
1546
drop temporary table t2;
1547
1547
--error ER_TABLE_EXISTS_ERROR
1548
1548
execute stmt;
1549
- call p_verify_reprepare_count(0 );
1549
+ call p_verify_reprepare_count(1 );
1550
1550
drop table t2;
1551
1551
execute stmt;
1552
- call p_verify_reprepare_count(0 );
1552
+ call p_verify_reprepare_count(1 );
1553
1553
drop table t2;
1554
1554
# View with name of table to be created exists
1555
1555
# Attention:
@@ -1564,7 +1564,7 @@ execute stmt;
1564
1564
call p_verify_reprepare_count(1);
1565
1565
--error ER_TABLE_EXISTS_ERROR,9999
1566
1566
execute stmt;
1567
- call p_verify_reprepare_count(0 );
1567
+ call p_verify_reprepare_count(1 );
1568
1568
drop view t2;
1569
1569
drop table t1;
1570
1570
# Table to be used recreated (drop,create) with different layout
@@ -1574,7 +1574,7 @@ call p_verify_reprepare_count(1);
1574
1574
select * from t2;
1575
1575
drop table t2;
1576
1576
execute stmt;
1577
- call p_verify_reprepare_count(0 );
1577
+ call p_verify_reprepare_count(1 );
1578
1578
drop table t2;
1579
1579
# Table to be used has a modified (alter table) layout
1580
1580
alter table t1 add column y decimal(10,3);
@@ -1583,7 +1583,7 @@ call p_verify_reprepare_count(1);
1583
1583
select * from t2;
1584
1584
drop table t2;
1585
1585
execute stmt;
1586
- call p_verify_reprepare_count(0 );
1586
+ call p_verify_reprepare_count(1 );
1587
1587
drop table t1;
1588
1588
deallocate prepare stmt;
1589
1589
create table t1 (a int);
@@ -1592,12 +1592,12 @@ prepare stmt from "create temporary table if not exists t2 as select * from t1";
1592
1592
execute stmt;
1593
1593
drop table t2;
1594
1594
execute stmt;
1595
- call p_verify_reprepare_count(0 );
1595
+ call p_verify_reprepare_count(1 );
1596
1596
execute stmt;
1597
1597
call p_verify_reprepare_count(1);
1598
1598
select * from t2;
1599
1599
execute stmt;
1600
- call p_verify_reprepare_count(0 );
1600
+ call p_verify_reprepare_count(1 );
1601
1601
select * from t2;
1602
1602
drop table t2;
1603
1603
create temporary table t2 (a varchar(10));
@@ -1609,7 +1609,7 @@ create table t1 (x int);
1609
1609
execute stmt;
1610
1610
call p_verify_reprepare_count(1);
1611
1611
execute stmt;
1612
- call p_verify_reprepare_count(0 );
1612
+ call p_verify_reprepare_count(1 );
1613
1613
drop table t1;
1614
1614
drop temporary table t2;
1615
1615
drop table t2;
@@ -1621,23 +1621,23 @@ execute stmt;
1621
1621
call p_verify_reprepare_count(0);
1622
1622
drop table t2;
1623
1623
execute stmt;
1624
- call p_verify_reprepare_count(0 );
1624
+ call p_verify_reprepare_count(1 );
1625
1625
drop table t2;
1626
1626
# Table to be used does not exist
1627
1627
drop table t1;
1628
1628
--error ER_NO_SUCH_TABLE
1629
1629
execute stmt;
1630
- call p_verify_reprepare_count(0 );
1630
+ call p_verify_reprepare_count(1 );
1631
1631
--error ER_NO_SUCH_TABLE
1632
1632
execute stmt;
1633
- call p_verify_reprepare_count(0 );
1633
+ call p_verify_reprepare_count(1 );
1634
1634
# Table to be used recreated (drop,create) with different layout
1635
1635
create table t1 (x char(17));
1636
1636
execute stmt;
1637
1637
call p_verify_reprepare_count(1);
1638
1638
drop table t2;
1639
1639
execute stmt;
1640
- call p_verify_reprepare_count(0 );
1640
+ call p_verify_reprepare_count(1 );
1641
1641
drop table t2;
1642
1642
# Table to be used has a modified (alter table) layout
1643
1643
alter table t1 add column y time;
@@ -1646,7 +1646,7 @@ call p_verify_reprepare_count(1);
1646
1646
select * from t2;
1647
1647
drop table t2;
1648
1648
execute stmt;
1649
- call p_verify_reprepare_count(0 );
1649
+ call p_verify_reprepare_count(1 );
1650
1650
drop table t1;
1651
1651
drop table t2;
1652
1652
deallocate prepare stmt;
@@ -2057,7 +2057,7 @@ drop table t1;
2057
2057
deallocate prepare stmt;
2058
2058
--echo # Intermediate result: number of reprepares matches the number
2059
2059
--echo # of tests
2060
- call p_verify_reprepare_count(17 );
2060
+ call p_verify_reprepare_count(18 );
2061
2061
2062
2062
--echo #
2063
2063
--echo # SQLCOM_ALTER_VIEW
0 commit comments