@@ -719,8 +719,10 @@ void sp_lex_instr::get_query(String *sql_query) const
719
719
// sp_instr_stmt implementation.
720
720
// /////////////////////////////////////////////////////////////////////////
721
721
722
+ #ifdef HAVE_PSI_INTERFACE
722
723
PSI_statement_info sp_instr_stmt::psi_info=
723
724
{ 0 , " stmt" , 0 };
725
+ #endif
724
726
725
727
bool sp_instr_stmt::execute (THD *thd, uint *nextp)
726
728
{
@@ -899,8 +901,10 @@ bool sp_instr_stmt::exec_core(THD *thd, uint *nextp)
899
901
// sp_instr_set implementation.
900
902
// /////////////////////////////////////////////////////////////////////////
901
903
904
+ #ifdef HAVE_PSI_INTERFACE
902
905
PSI_statement_info sp_instr_set::psi_info=
903
906
{ 0 , " set" , 0 };
907
+ #endif
904
908
905
909
bool sp_instr_set::exec_core (THD *thd, uint *nextp)
906
910
{
@@ -948,8 +952,10 @@ void sp_instr_set::print(String *str)
948
952
// sp_instr_set_trigger_field implementation.
949
953
// /////////////////////////////////////////////////////////////////////////
950
954
955
+ #ifdef HAVE_PSI_INTERFACE
951
956
PSI_statement_info sp_instr_set_trigger_field::psi_info=
952
957
{ 0 , " set_trigger_field" , 0 };
958
+ #endif
953
959
954
960
bool sp_instr_set_trigger_field::exec_core (THD *thd, uint *nextp)
955
961
{
@@ -999,8 +1005,10 @@ void sp_instr_set_trigger_field::cleanup_before_parsing(THD *thd)
999
1005
// sp_instr_jump implementation.
1000
1006
// /////////////////////////////////////////////////////////////////////////
1001
1007
1008
+ #ifdef HAVE_PSI_INTERFACE
1002
1009
PSI_statement_info sp_instr_jump::psi_info=
1003
1010
{ 0 , " jump" , 0 };
1011
+ #endif
1004
1012
1005
1013
void sp_instr_jump::print (String *str)
1006
1014
{
@@ -1056,8 +1064,10 @@ void sp_instr_jump::opt_move(uint dst, List<sp_branch_instr> *bp)
1056
1064
// sp_instr_jump_if_not class implementation
1057
1065
// /////////////////////////////////////////////////////////////////////////
1058
1066
1067
+ #ifdef HAVE_PSI_INTERFACE
1059
1068
PSI_statement_info sp_instr_jump_if_not::psi_info=
1060
1069
{ 0 , " jump_if_not" , 0 };
1070
+ #endif
1061
1071
1062
1072
bool sp_instr_jump_if_not::exec_core (THD *thd, uint *nextp)
1063
1073
{
@@ -1150,8 +1160,10 @@ void sp_lex_branch_instr::opt_move(uint dst, List<sp_branch_instr> *bp)
1150
1160
// sp_instr_jump_case_when implementation.
1151
1161
// /////////////////////////////////////////////////////////////////////////
1152
1162
1163
+ #ifdef HAVE_PSI_INTERFACE
1153
1164
PSI_statement_info sp_instr_jump_case_when::psi_info=
1154
1165
{ 0 , " jump_case_when" , 0 };
1166
+ #endif
1155
1167
1156
1168
bool sp_instr_jump_case_when::exec_core (THD *thd, uint *nextp)
1157
1169
{
@@ -1229,8 +1241,10 @@ bool sp_instr_jump_case_when::build_expr_items(THD *thd)
1229
1241
// sp_instr_freturn implementation.
1230
1242
// /////////////////////////////////////////////////////////////////////////
1231
1243
1244
+ #ifdef HAVE_PSI_INTERFACE
1232
1245
PSI_statement_info sp_instr_freturn::psi_info=
1233
1246
{ 0 , " freturn" , 0 };
1247
+ #endif
1234
1248
1235
1249
bool sp_instr_freturn::exec_core (THD *thd, uint *nextp)
1236
1250
{
@@ -1269,8 +1283,10 @@ void sp_instr_freturn::print(String *str)
1269
1283
// sp_instr_hpush_jump implementation.
1270
1284
// /////////////////////////////////////////////////////////////////////////
1271
1285
1286
+ #ifdef HAVE_PSI_INTERFACE
1272
1287
PSI_statement_info sp_instr_hpush_jump::psi_info=
1273
1288
{ 0 , " hpush_jump" , 0 };
1289
+ #endif
1274
1290
1275
1291
bool sp_instr_hpush_jump::execute (THD *thd, uint *nextp)
1276
1292
{
@@ -1333,8 +1349,10 @@ uint sp_instr_hpush_jump::opt_mark(sp_head *sp, List<sp_instr> *leads)
1333
1349
// sp_instr_hpop implementation.
1334
1350
// /////////////////////////////////////////////////////////////////////////
1335
1351
1352
+ #ifdef HAVE_PSI_INTERFACE
1336
1353
PSI_statement_info sp_instr_hpop::psi_info=
1337
1354
{ 0 , " hpop" , 0 };
1355
+ #endif
1338
1356
1339
1357
bool sp_instr_hpop::execute (THD *thd, uint *nextp)
1340
1358
{
@@ -1348,8 +1366,10 @@ bool sp_instr_hpop::execute(THD *thd, uint *nextp)
1348
1366
// sp_instr_hreturn implementation.
1349
1367
// /////////////////////////////////////////////////////////////////////////
1350
1368
1369
+ #ifdef HAVE_PSI_INTERFACE
1351
1370
PSI_statement_info sp_instr_hreturn::psi_info=
1352
1371
{ 0 , " hreturn" , 0 };
1372
+ #endif
1353
1373
1354
1374
bool sp_instr_hreturn::execute (THD *thd, uint *nextp)
1355
1375
{
@@ -1418,8 +1438,10 @@ uint sp_instr_hreturn::opt_mark(sp_head *sp, List<sp_instr> *leads)
1418
1438
// sp_instr_cpush implementation.
1419
1439
// /////////////////////////////////////////////////////////////////////////
1420
1440
1441
+ #ifdef HAVE_PSI_INTERFACE
1421
1442
PSI_statement_info sp_instr_cpush::psi_info=
1422
1443
{ 0 , " cpush" , 0 };
1444
+ #endif
1423
1445
1424
1446
bool sp_instr_cpush::execute (THD *thd, uint *nextp)
1425
1447
{
@@ -1469,8 +1491,10 @@ void sp_instr_cpush::print(String *str)
1469
1491
// sp_instr_cpop implementation.
1470
1492
// /////////////////////////////////////////////////////////////////////////
1471
1493
1494
+ #ifdef HAVE_PSI_INTERFACE
1472
1495
PSI_statement_info sp_instr_cpop::psi_info=
1473
1496
{ 0 , " cpop" , 0 };
1497
+ #endif
1474
1498
1475
1499
bool sp_instr_cpop::execute (THD *thd, uint *nextp)
1476
1500
{
@@ -1495,8 +1519,10 @@ void sp_instr_cpop::print(String *str)
1495
1519
// sp_instr_copen implementation.
1496
1520
// /////////////////////////////////////////////////////////////////////////
1497
1521
1522
+ #ifdef HAVE_PSI_INTERFACE
1498
1523
PSI_statement_info sp_instr_copen::psi_info=
1499
1524
{ 0 , " copen" , 0 };
1525
+ #endif
1500
1526
1501
1527
bool sp_instr_copen::execute (THD *thd, uint *nextp)
1502
1528
{
@@ -1568,8 +1594,10 @@ void sp_instr_copen::print(String *str)
1568
1594
// sp_instr_cclose implementation.
1569
1595
// /////////////////////////////////////////////////////////////////////////
1570
1596
1597
+ #ifdef HAVE_PSI_INTERFACE
1571
1598
PSI_statement_info sp_instr_cclose::psi_info=
1572
1599
{ 0 , " cclose" , 0 };
1600
+ #endif
1573
1601
1574
1602
bool sp_instr_cclose::execute (THD *thd, uint *nextp)
1575
1603
{
@@ -1609,8 +1637,10 @@ void sp_instr_cclose::print(String *str)
1609
1637
// sp_instr_cfetch implementation.
1610
1638
// /////////////////////////////////////////////////////////////////////////
1611
1639
1640
+ #ifdef HAVE_PSI_INTERFACE
1612
1641
PSI_statement_info sp_instr_cfetch::psi_info=
1613
1642
{ 0 , " cfetch" , 0 };
1643
+ #endif
1614
1644
1615
1645
bool sp_instr_cfetch::execute (THD *thd, uint *nextp)
1616
1646
{
@@ -1661,8 +1691,10 @@ void sp_instr_cfetch::print(String *str)
1661
1691
// sp_instr_error implementation.
1662
1692
// /////////////////////////////////////////////////////////////////////////
1663
1693
1694
+ #ifdef HAVE_PSI_INTERFACE
1664
1695
PSI_statement_info sp_instr_error::psi_info=
1665
1696
{ 0 , " error" , 0 };
1697
+ #endif
1666
1698
1667
1699
void sp_instr_error::print (String *str)
1668
1700
{
@@ -1678,8 +1710,10 @@ void sp_instr_error::print(String *str)
1678
1710
// sp_instr_set_case_expr implementation.
1679
1711
// /////////////////////////////////////////////////////////////////////////
1680
1712
1713
+ #ifdef HAVE_PSI_INTERFACE
1681
1714
PSI_statement_info sp_instr_set_case_expr::psi_info=
1682
1715
{ 0 , " set_case_expr" , 0 };
1716
+ #endif
1683
1717
1684
1718
bool sp_instr_set_case_expr::exec_core (THD *thd, uint *nextp)
1685
1719
{
0 commit comments