Bug #81606 Variable-name's typo in sql/item_func.cc
Submitted: 26 May 2016 9:12 Modified: 1 Mar 14:24
Reporter: tsubasa tanaka (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: DML Severity:S3 (Non-critical)
Version:5.1.73, 5.5.49, 5.6.30, 5.7.12 OS:Any
Assigned to: CPU Architecture:Any
Tags: save_security_ctx, save_secutiry_ctx, typo

[26 May 2016 9:12] tsubasa tanaka
Description:
There's a variable "save_secutiry_ctx" which may be type of "save_security_ctx".

How to repeat:
```
$ grep -n "secutiry" mysql-*/sql/item_func.cc
mysql-5.1.73/sql/item_func.cc:6110:    Security_context *save_secutiry_ctx;
mysql-5.1.73/sql/item_func.cc:6111:    res= set_routine_security_ctx(thd, m_sp, false, &save_secutiry_ctx);
mysql-5.1.73/sql/item_func.cc:6113:      m_sp->m_security_ctx.restore_security_context(thd, save_secutiry_ctx);
mysql-5.5.49/sql/item_func.cc:6603:    Security_context *save_secutiry_ctx;
mysql-5.5.49/sql/item_func.cc:6604:    res= set_routine_security_ctx(thd, m_sp, false, &save_secutiry_ctx);
mysql-5.5.49/sql/item_func.cc:6606:      m_sp->m_security_ctx.restore_security_context(thd, save_secutiry_ctx);
mysql-5.6.30/sql/item_func.cc:7059:    Security_context *save_secutiry_ctx;
mysql-5.6.30/sql/item_func.cc:7060:    res= m_sp->set_security_ctx(thd, &save_secutiry_ctx);
mysql-5.6.30/sql/item_func.cc:7062:      m_sp->m_security_ctx.restore_security_context(thd, save_secutiry_ctx);
mysql-5.7.12/sql/item_func.cc:8788:    Security_context *save_secutiry_ctx;
mysql-5.7.12/sql/item_func.cc:8789:    res= m_sp->set_security_ctx(thd, &save_secutiry_ctx);
mysql-5.7.12/sql/item_func.cc:8791:      m_sp->m_security_ctx.restore_security_context(thd, save_secutiry_ctx);
```
[26 May 2016 9:31] Umesh Shastry
Hello  Tanaka-San,

Thank you for the report.

Thanks,
Umesh
[1 Mar 14:24] Paul Dubois
Posted by developer:
 
Fixed in 8.0.17.

Cosmetic change. No changelog entry needed.